Executive summary
CVE-2026-142086 is an improper link-resolution vulnerability in Netatalk, the file server that provides Apple Filing Protocol (AFP) services. Versions 3.1.2 before 4.6.1 contain a flaw in delete_vetoed_files() in etc/afpd/filedir.c that can allow an authenticated AFP user to trigger file deletion outside the configured volume.
The affected routine uses stat() while classifying directory entries for deletion-veto processing. Because stat() resolves symbolic links, the routine may mistake a veto-matching symlink for the directory it points to and recursively remove files from that target. Netatalk 4.6.1 is the fixed version identified in the advisory.
The issue is conditional rather than universally exploitable. It requires an authenticated AFP account, a writable volume with delete veto files enabled, permission to create a symlink with a matching name, and a directory outside the volume that the Netatalk service account can access. The available source does not report a public exploit, active exploitation, or a CVSS vector.
Affected systems
- Product: Netatalk
- Affected versions: 3.1.2 before 4.6.1
- Fixed version: 4.6.1
- Vulnerable function:
delete_vetoed_files()
- Vulnerable source file:
etc/afpd/filedir.c
- Required access: Authenticated AFP user
- Configuration condition: The affected volume must have delete veto files enabled
- Write condition: The user must be able to create a symbolic link within that volume
Systems exposing AFP shares to less-trusted users warrant particular attention when veto patterns are enabled. Deployments without the delete veto feature, or environments in which users cannot create symbolic links, do not satisfy the documented exploitation path.
Technical analysis
The delete-veto mechanism scans directory entries for names covered by configured patterns and removes matching entries. During that process, delete_vetoed_files() classifies entries with stat(). Unlike a link-aware classification operation such as lstat(), stat() follows symbolic links and returns information about the linked target.
That distinction creates a path-confusion condition. If an AFP user creates a symbolic link with a name matching an active veto pattern, the vulnerable routine can treat the link target as the matching directory. Recursive processing then continues into that target, which may reside outside the intended AFP volume. Files beneath the target are deleted using the privileges of the Netatalk service account.
The resulting impact is an integrity violation crossing the share boundary: the operation is not limited to entries physically contained within the AFP volume. Its practical severity depends on the service account's filesystem permissions and the sensitivity of files accessible through the symlink target.
Exploitation prerequisites
The documented attack path requires all of the following conditions:
- The attacker has a valid AFP account.
- The account can write to an AFP volume where delete veto files are enabled.
- The account can create a symbolic link whose name matches a configured veto pattern.
- The symlink points to a directory outside the volume.
- The Netatalk service account has permission to delete files in that external directory.
The supplied context contains no exploit code, exploitation-maturity designation, CVSS vector, or evidence of threat-actor activity. Accordingly, there is no basis in the source material to characterize the vulnerability as actively exploited or as having a confirmed impact score.
Security impact
The primary consequence is unauthorized recursive file deletion. An attacker may be able to remove files beyond the nominal boundary of an AFP share, provided the Netatalk service account can access them. Potential consequences include loss of application data, configuration files, user content, or other files reachable by the service.
The attack does not inherently demonstrate arbitrary read access, code execution, or privilege escalation. It also cannot bypass the operating-system permissions of the Netatalk service account. Those boundaries remain important controls on the ultimate blast radius.
Mitigation
Upgrading to Netatalk 4.6.1 is the concrete fix identified by the advisory for CVE-2026-142086.
Where an immediate upgrade is not possible, compensating controls include:
- Disabling delete veto files on volumes accessible by users who are not trusted with filesystem-cleanup behavior outside the share.
- Restricting authenticated AFP access to accounts that are appropriately trusted for each share.
- Running Netatalk under a service account with the minimum filesystem permissions required for its operation.
- Monitoring AFP volumes for newly created symbolic links whose names match configured veto patterns.
- Monitoring the Netatalk host for unexpected recursive deletion activity associated with the afpd process.
- Applying file-integrity monitoring outside AFP volume roots to identify unauthorized removals.
- Using filesystem mount controls that restrict symlink traversal where the host and filesystem support them.
These compensating controls can reduce exposure or limit impact, but they do not replace the Netatalk 4.6.1 upgrade.
Expert insight
The important issue is not the mere presence of symbolic links in AFP shares, but a trust-boundary error in cleanup logic. The routine intends to delete entries matching configured names inside a volume, yet link-following behavior allows that intent to extend to an external directory. This makes configuration-specific risk assessments important: the same Netatalk version can have materially different exposure depending on veto rules, symlink permissions, authenticated-user trust, and the privileges of the service account.
The reported behavior also illustrates why service-account privilege boundaries remain a meaningful final layer of defense. Even when a file server contains application-level path-validation flaws, limiting the service account's reach can prevent a share-level compromise from becoming a host-wide data-loss event.
Actionable recommendations
- Upgrade Netatalk deployments running version 3.1.2 before 4.6.1 to Netatalk 4.6.1 or later.
- Inventory AFP volumes and identify those where delete veto files are enabled.
- Review which authenticated users can create symbolic links in each affected volume.
- Audit the Netatalk service account's filesystem access, particularly outside intended AFP volume roots.
- Search for suspicious veto-matching symbolic links and unexpected afpd-related deletion activity.
- Apply least privilege and filesystem containment controls until affected systems can be upgraded.
Conclusion
CVE-2026-142086 represents a meaningful integrity risk for Netatalk deployments that combine delete veto functionality with user-controlled symlink creation. Its real-world impact is configuration-dependent, but successful exploitation can extend destructive file operations beyond the intended AFP volume. Netatalk 4.6.1 provides the identified correction, making that release the central mitigation for this vulnerability.