Netatalk Security Advisory
| Subject | Root-privileged file deletion through a symlinked .AppleDouble directory |
|---|---|
| CVE ID# | CVE-2026-142059 |
| Severity | Moderate |
| Disclosure Date | 2026/12/01 |
| Affected Versions | 2.1.0-4.5.2 |
| Summary | dbd follows a symlinked .AppleDouble directory and can delete files outside an AFP volume during a root-run repair |
Description
The dbd CNID maintenance utility opens an AFP volume’s .AppleDouble directory
and enters it with chdir() without rejecting symbolic links. During a repair run,
read_addir() removes entries that have no matching file in the parent directory.
An attacker who can replace .AppleDouble with a symlink can direct this cleanup
into a directory outside the volume. Because dbd runs as root, it can delete
regular files and symlinks there despite the attacker’s lack of access to the
target directory. After leaving the symlink target, subsequent processing can
also continue outside the configured volume.
Exploitation requires raw filesystem access to the same server-side directory
used by the AFP volume, such as local shell, SFTP, or NFS access. The attacker
must be able to replace a .AppleDouble entry in a directory that dbd scans.
Ordinary AFP write access alone does not provide this capability because AFP
clients cannot directly access .AppleDouble. The payload activates only when
an administrator runs dbd in repair mode, manually or through a separately
configured task. Normal AFP operation does not invoke dbd automatically.
The demonstrated impact is deletion of files outside the AFP volume, potentially corrupting protected configuration or application state and causing denial of service. Confidentiality impact, arbitrary file-content modification, and code execution have not been demonstrated.
Patch Availability
Upgrade to Netatalk 4.6.0 or later, which includes the fix. Source builds can apply CVE-2026-142059.patch.
CVSS Calculation
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N (5.2)
Workaround
Until upgraded, avoid running dbd in repair mode on volumes where untrusted
users can modify the backing filesystem namespace. Use dbd -s for read-only
scanning. Before any repair run, verify that .AppleDouble entries in the
volume are directories rather than symlinks.
Credits
Vulnerability reported by:
Pavel Kohout of Aisle Research
Patch developed by:
Daniel Markstedt of the Netatalk team
References
Go back to the Security Policy.