CVE-2026-142085: Netatalk 4.0.0 before 4.6.1 Stack Buffer Overflow via Malicious PAP Printer Status
Netatalk 4.0.0 before 4.6.1 contains an out-of-bounds write vulnerability in the pap client (bin/pap/pap.c), which uses the printer-supplied status length byte as a signed char in memcpy() into a 1024-byte stack buffer without validating it. A malicious or compromised PAP printer can return a status response with a length byte of 0x80 or higher, which converts to a huge copy length and overflows the stack when a user runs pap against that printer.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to exploitation?
Users of Netatalk versions 4.0.0 through versions before 4.6.1 are exposed when they run the pap client against a malicious or compromised PAP printer.
What does an attacker need to exploit this issue?
The attacker needs control of, or the ability to compromise, a PAP printer that the user queries with pap. The printer must return a crafted status response whose length byte is 0x80 or higher.
Is this triggered by the default Netatalk service configuration?
The issue is in the pap client executable and is triggered when a user runs pap against the affected printer. The provided information does not indicate that it can be triggered solely by a network service running in its default configuration.
What can be done if upgrading is not immediately possible?
Do not run the pap client against untrusted printers, and remove or isolate printers suspected of being compromised. Limit PAP printer use to trusted devices until an upgrade to 4.6.1 is possible.