CVE-2026-142086: Netatalk 3.1.2 before 4.6.1 File Deletion Outside AFP Volume via Vetoed Directory Symlink
Netatalk 3.1.2 before 4.6.1 contains an improper link resolution vulnerability in deletevetoedfiles() in etc/afpd/filedir.c, which classifies directory entries with stat() and so recursively enters a veto-matching symbolic link to a directory, deleting every file in the link target. Authenticated AFP users on a volume with delete veto files enabled can create a veto-matching symlink to a directory outside the volume and delete its parent to remove files there with the privileges of the Netatalk service.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Netatalkto a version that resolves this vulnerability.Fixed in 4.6.1
Event History
Frequently Asked Questions
Who is exposed to this issue?
Netatalk deployments from 3.1.2 before 4.6.1 are exposed when an AFP volume has delete veto files enabled and authenticated AFP users can create symbolic links and delete their parent directory on that volume.
What does an attacker need to exploit it?
An attacker needs valid AFP authentication and access to a volume configured with delete veto files enabled. They must create a veto-matching symbolic link to a directory outside the volume, then delete the symlink's parent directory.
What is the impact of successful exploitation?
The vulnerable cleanup routine can recursively delete every file in the directory targeted by the symbolic link, including files outside the AFP volume. Deletion occurs with the privileges of the Netatalk service.
What can be done if upgrading is not immediately possible?
Disable delete veto files on affected AFP volumes where possible. Also restrict AFP access so untrusted authenticated users cannot create the required symbolic links and delete their parent directories.