CVE-2026-142087: Netatalk 4.5.0 before 4.6.1 Root File Permission Change via Symlinked SQLite CNID Database
Netatalk 4.5.0 before 4.6.1 contains an improper link resolution vulnerability in cnidsqliteopen() in libatalk/cnid/sqlite/cnidsqlite.c, which creates the CNID database directory world-writable with the sticky bit and then, as root, calls chmod() with mode 0666 on the predictable database, WAL, and shared-memory paths, following symbolic links. Local users can pre-create a symbolic link at one of these paths so that Netatalk makes an arbitrary root-owned file world-readable and world-writable, potentially leading to privilege escalation.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
A local user who can pre-create symbolic links at the predictable CNID SQLite database, WAL, or shared-memory paths can exploit it. The affected directory is world-writable with the sticky bit, enabling local users to place those links.
What level of access is required for exploitation?
The attacker needs local access and the ability to create a symbolic link at one of the predictable CNID database-related paths before Netatalk performs the root-level chmod() operation. No remote exploitation path is described.
What is the impact if exploitation succeeds?
Netatalk can follow the attacker-controlled symbolic link while running as root and change the linked target file's permissions to 0666. This makes an arbitrary root-owned file world-readable and world-writable, which may enable privilege escalation.
Which versions are affected?
Netatalk 4.5.0 through versions before 4.6.1 are affected. Version 4.6.1 is identified as the release containing the fix.