Netatalk Security Advisory

Subject Root-privileged file tampering through afppasswd
CVE ID# CVE-2026-142060
Severity Moderate
Disclosure Date 2026/12/01
Affected Versions 1.5.0-4.5.2
Summary A local user can append a fixed-format credential record to an existing root-writable file through afppasswd

Description

In affected installations, afppasswd is setuid-root. It uses the real UID to decide whether the caller is an administrator, but does not reject the -a and -p options for a non-root caller before opening the selected file with effective UID 0. If the file contains no entry for the caller’s system username, -a appends and flushes an SRP placeholder record. The later password-verification check rejects that record only after the write.

The argument to -a enables add-user mode; it does not control the appended username for a non-root caller. The record contains the caller’s username, two colons, fixed runs of *, and a newline. A second invocation against the unchanged file finds the disabled entry and does not append another record. The demonstrated primitive is therefore constrained file corruption, not an arbitrary-content write. Data disclosure, privilege escalation, and code execution have not been demonstrated.

Exploitation requires a local unprivileged account, setuid execution enabled for the filesystem containing afppasswd, an existing target file that root can read and write, and no existing line whose username field matches the caller’s account name. Corruption of configuration, credential, or service state files may cause partial denial of service, although availability impact has not been demonstrated. This issue is not directly exploitable over AFP.

Patch Availability

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

CVSS Calculation

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

Workaround

Until upgraded, remove the setuid bit from afppasswd, or ensure setuid execution is disabled for the filesystem containing the binary. Only root can then invoke afppasswd to add or change user passwords.

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.