What happened
Netatalk is free, open-source software for Linux and other Unix-like systems that turns an ordinary server or NAS into a file server for Apple computers. It uses the AFP protocol (Apple Filing Protocol) and is often used, for example, as a Time Machine backup target. A flaw tracked as CVE-2026-62318 was found in its login code, specifically in the DHX2 and DHX2-PAM module of the afpd service.
The Netatalk developers published a security advisory on GitHub on September 11, 2026 and fixed the bug in version 4.5.1. That release also fixes three other vulnerabilities (CVE-2026-62319, CVE-2026-62320 and CVE-2026-62321), and the developers encourage all users to upgrade. The entry was added to the US National Vulnerability Database (NVD) on November 20, 2026.
An attacker without a password can send the server crafted login messages and repeatedly crash the processes that handle connections. Neither the US agency CISA nor ENISA’s European Vulnerability Database (EUVD) has confirmed exploitation in the wild. The developers do not mention any attacks either.
Why it is dangerous
These are use-after-free and double-free bugs, meaning the program uses memory it has already released, then releases it a second time. Picture a cloakroom that takes back your ticket when you collect your coat but forgets to void it. Show the same ticket again and the attendant reaches for a hook that now belongs to someone else. Netatalk behaves similarly: one login step can be repeated even though the server has already freed the memory holding a secret value.
According to the developers’ advisory, the attacker needs no valid credentials, no access to files and no action from any user. All it takes is network access to the AFP service, by default on TCP port 548, and the DHX2 or DHX2PAM module being enabled. If that port is reachable from the internet, anyone can attack it.
The demonstrated impact is a reliable pre-login crash of the afpd process handling the connection. The main process keeps running and starts new afpd processes, but an attacker can keep crashing them over and over. Code execution has not been demonstrated. The advisory’s authors add, however, that this is memory corruption before login in a process running as root, a class of bug that can lead to remote code execution.
CVSS rates severity on a scale from 0 to 10. The NVD entry lists 9.3 under CVSS 4.0, assigned by GitHub. After an independent assessment, the Netatalk developers list a lower rating of 8.7 under CVSS 4.0 (High) in their advisory. Their vector counts only the impact on availability, not on data confidentiality or integrity.
The flaw is not in the CISA KEV catalog, where CISA lists vulnerabilities with confirmed exploitation. EPSS estimates the likelihood of exploitation within the next 30 days. As of November 23, 2026 it stood at 1.28%, higher than roughly 71% of vulnerabilities but still a low figure.
Who is affected
Netatalk 2.0.0 through 4.5.0 is affected, and NVD lists the same range. The bug was confirmed directly on version 4.5.0. Only servers with DHX2 or DHX2PAM enabled in the authentication module list (uam list) are vulnerable.
Netatalk typically runs on Linux and BSD servers and on NAS devices used as shared storage or Time Machine backup targets for Macs. You will find it in design studios, newsrooms, schools and offices that work on Apple computers. Some NAS devices have it built in, switched on by an option such as “AFP” or “Apple File Service”.
You are not affected if:
- You do not use Netatalk and share files only over SMB or NFS.
- You already run Netatalk 4.5.1.
- Neither DHX2 nor DHX2PAM is in your
uam list. According to the developers, the attack requires one of them, but upgrading is still a good idea. - It is just a Mac acting as a client. The server is vulnerable, not the computer connecting to it.
How to check if you are affected
All the commands below only read information and change nothing. Run them on the server where Netatalk is running. First, find the version:
afpd -V
netatalk -V
dpkg -l | grep -i netatalk # Debian, Ubuntu
rpm -q netatalk # RHEL, Rocky, Fedora, openSUSE
Next, check whether DHX2 is enabled. In versions 3.x and 4.x, look for the uam list line in afp.conf (usually /etc/netatalk/afp.conf or /usr/local/etc/afp.conf). In the old 2.x branch it is the -uamlist option in afpd.conf. If the line is missing, the default applies, which you can look up for your version in man afp.conf.
grep -i 'uam list' /etc/netatalk/afp.conf /usr/local/etc/afp.conf 2>/dev/null
grep -i 'uamlist' /etc/netatalk/afpd.conf /usr/local/etc/netatalk/afpd.conf 2>/dev/null
ss -tln | grep ':548'
The last command shows whether the server is listening on TCP port 548. On your router or firewall, check that this port is not forwarded from the internet. On NAS devices, the firmware version and AFP service status are in the admin interface, usually under file services.
How to fix it
The fixed version is Netatalk 4.5.1. The developers do not list a separate fix for the older 2.x and 3.x branches, so if you run one of them, plan a move to 4.5.1. Linux distributions sometimes backport fixes into their own packages under an older version number, so check your distribution’s security notices. The flaw is not in the CISA KEV catalog, so CISA has not set a mandatory remediation deadline.
- List every server and NAS device running Netatalk or an AFP service.
- Start with those whose TCP port 548 is reachable from the internet or from untrusted networks such as guest Wi-Fi.
- Upgrade to 4.5.1 through your distribution’s package manager, through a firmware update from your NAS vendor, or by building from the
netatalk-4.5.1.tar.xzsource archive following the instructions in the GitHub release. A Webmin module,netatalk-4.5.1.wbm.gz, is also available. - After upgrading, restart the Netatalk service and confirm with
afpd -Vthat the new version is running.
If you cannot upgrade right away, the Netatalk developers recommend these temporary measures:
- If operationally possible, remove DHX2 and DHX2PAM from the
uam list. Test the change first to make sure clients can still log in. - Restrict access to TCP port 548 to trusted machines only, for example with a firewall rule. This port should never be reachable from the internet.
- Watch the logs for repeated failed DHX2 logins and frequent crashes of
afpdprocesses.
In the longer term, consider whether you still need AFP at all. Apple treats it as deprecated, and current versions of macOS prefer SMB file sharing.
What if you may already be compromised
The demonstrated impact of this flaw is crashing server processes, not breaking into the server. The developers have not published specific indicators of compromise. They do, however, recommend checking logs for repeated failed DHX2 login attempts and frequent crashes of afpd processes.
journalctl -u netatalk --no-pager | grep -iE 'killed by signal|double free|corruption|abort|dhx2'
zgrep -ihE 'afpd.*(killed by signal|double free|corruption|abort|dhx2)' /var/log/syslog* /var/log/messages* 2>/dev/null | tail -n 200
coredumpctl list afpd
The first two commands search the system journal and older, compressed log files for afpd crashes and memory corruption errors. The last one lists saved core dumps if the system uses systemd-coredump. If Netatalk writes to its own log file (the log file option in afp.conf), search that too.
If you find a series of crashes, work out which IP addresses the connections came from and whether you recognise them. The process runs as root and code execution cannot be fully ruled out. If anything looks suspicious, also check for unknown user accounts, new SSH keys, unfamiliar scheduled tasks (cron) and processes that do not belong on the server.
Bring in a specialist if port 548 was reachable from the internet and the logs show repeated crashes from unknown addresses, or if you find anything suspicious from the list above. Back up the logs before making changes and consider disconnecting the server from the network.