CVE-2026-34980 OpenPrinting CUPS: Shared PostScript queue lets anonymous Print-Job requests reach `lp` code execution over the network
An attacker can execute arbitrary binaries as the lp user by sending crafted print jobs to a shared PostScript queue in CUPS.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-34980?
CVE-2026-34980 is a medium-severity command injection vulnerability in OpenPrinting cups, published on 3 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems. In versions 2.4.16 and prior, in a network-exposed cupsd with a shared target queue, an unauthorized client can send a Print-Job to that shared PostScript queue without authentication. The server accepts a page-border value supplied as textWithoutLanguage, preserves an embedded newline through option escaping and reparse, and then reparses the resulting second-line PPD: text as a trusted scheduler control record. A follow-up raw print job can therefore make the server execute an attacker-chosen existing binary such as /usr/bin/vim as lp. At time of publication, there are no publicly available patches.
Weakness: CWE-20
Which versions are affected by CVE-2026-34980?
It affects 1 product.
Linux distribution packages (31)
cups AlmaLinux:10 | All versions | 1:2.4.10-18.el10_2 |
cups-client AlmaLinux:10 | All versions | 1:2.4.10-18.el10_2 |
cups-devel AlmaLinux:10 | All versions | 1:2.4.10-18.el10_2 |
cups-filesystem AlmaLinux:10 | All versions | 1:2.4.10-18.el10_2 |
cups-ipptool AlmaLinux:10 | All versions | 1:2.4.10-18.el10_2 |
cups-libs AlmaLinux:10 | All versions | 1:2.4.10-18.el10_2 |
cups-lpd AlmaLinux:10 | All versions | 1:2.4.10-18.el10_2 |
cups-printerapp AlmaLinux:10 | All versions | 1:2.4.10-18.el10_2 |
cups AlmaLinux:8 | All versions | 1:2.2.6-68.el8_10 |
cups-client AlmaLinux:8 | All versions | 1:2.2.6-68.el8_10 |
cups-devel AlmaLinux:8 | All versions | 1:2.2.6-68.el8_10 |
cups-filesystem AlmaLinux:8 | All versions | 1:2.2.6-68.el8_10 |
cups-ipptool AlmaLinux:8 | All versions | 1:2.2.6-68.el8_10 |
cups-libs AlmaLinux:8 | All versions | 1:2.2.6-68.el8_10 |
cups-lpd AlmaLinux:8 | All versions | 1:2.2.6-68.el8_10 |
cups AlmaLinux:9 | All versions | 1:2.3.3op2-39.el9_8 |
cups-client AlmaLinux:9 | All versions | 1:2.3.3op2-39.el9_8 |
cups-devel AlmaLinux:9 | All versions | 1:2.3.3op2-39.el9_8 |
cups-filesystem AlmaLinux:9 | All versions | 1:2.3.3op2-39.el9_8 |
cups-ipptool AlmaLinux:9 | All versions | 1:2.3.3op2-39.el9_8 |
cups-libs AlmaLinux:9 | All versions | 1:2.3.3op2-39.el9_8 |
cups-lpd AlmaLinux:9 | All versions | 1:2.3.3op2-39.el9_8 |
cups-printerapp AlmaLinux:9 | All versions | 1:2.3.3op2-39.el9_8 |
cups Red Hat:enterprise_linux:10.2 | All versions | 1:2.4.10-18.el10_2 |
cups Red Hat:enterprise_linux:8::appstream | All versions | 1:2.2.6-68.el8_10 |
cups Red Hat:enterprise_linux:8::baseos | All versions | 1:2.2.6-68.el8_10 |
cups Red Hat:enterprise_linux:9::appstream | All versions | 1:2.3.3op2-39.el9_8 |
cups Red Hat:enterprise_linux:9::baseos | All versions | 1:2.3.3op2-39.el9_8 |
cups Rocky Linux:10 | All versions | 1:2.4.10-18.el10_2 |
cups Rocky Linux:8 | All versions | 1:2.2.6-68.el8_10 |
cups Rocky Linux:9 | All versions | 1:2.3.3op2-39.el9_8 |
Products include Openprinting Cups.
How do I fix CVE-2026-34980?
No fix published yet.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-34980 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34980 exists.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in OpenPrinting cups
- CVE-2025-58060 cups has Authentication bypass with AuthType Negotiate
- CVE-2026-34978 Path traversal in cups
- CVE-2025-58364 cups: Remote DoS via null dereference
- CVE-2025-61915 OpenPrinting CUPS vulnerable to stack based out-of-bound write
- CVE-2026-55480 CUPS copy_model() creates a predictable PPD tempfile without O_EXCL/O_NOFOLLOW (symlink TOCTOU, lp → root)
Sources
Also known as ALPINE-CVE-2026-34980, ALSA-2026:36733, ALSA-2026:39302, ALSA-2026:39316, AZL-81816, BELL-CVE-2026-34980 and 25 more.