Netatalk Security Advisory

Subject File deletion outside an AFP volume via vetoed directory symlink
CVE ID# CVE-2026-142086
Severity Medium
Disclosure Date 2026/12/04
Affected Versions 3.1.2-4.6.0
Summary An authenticated AFP user can cause afpd to delete files outside an exported volume through a veto-matching symlink

Description

When afp_delete() in etc/afpd/filedir.c cannot remove a nonempty directory, it calls delete_vetoed_files() to remove entries covered by the volume’s veto files rule. The cleanup function classifies each entry with stat(), which follows symbolic links. A veto-matching symlink to a directory is therefore treated as a directory rather than a symlink (CWE-59).

The function recursively enters that directory. Once inside a vetoed entry, it treats every child as vetoed and removes regular files with netatalk_unlink(). The traversal is not confined to the AFP volume root. An authenticated AFP user can place a veto-matching symlink to a directory outside the exported volume, then delete the symlink’s parent to trigger cleanup.

Exploitation requires a volume with a matching veto files rule and delete veto files = yes, plus an external target whose contents the Netatalk service account can remove. Files outside the share can be destroyed with the daemon’s effective OS permissions. Confidentiality is not directly affected. Loss of service data or service interruption is possible if the daemon can delete the affected files.

Patch Availability

Upgrade to Netatalk 4.6.1 or later, which includes the fix. Source builds can apply CVE-2026-142086.patch.

CVSS Calculation

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:N/SI:H/SA:N (6.3)

Workaround

Until upgraded, disable automatic deletion of vetoed files on affected AFP volumes:

[Volume]
delete veto files = no

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.