Description
Buffer overflow in the ParseCommand function in hpgl-input.c in the hpgltops program for CUPS 1.1.22 allows remote attackers to execute arbitrary code via a crafted HPGL file.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | cups | 1.1.22-2 | — |
| Debian 13 | cups | 1.1.22-2 | — |
| Debian 12 | cups | 1.1.22-2 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 4 | cups +2 | 1:1.1.22-0.rc1.9.6 | RHSA-2005:053 |
| RHEL 3 | cups +2 | 1:1.1.17-13.3.22 | RHSA-2005:013 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- CUPS 1.1.x - '.HPGL' File Processor Buffer Overflow EDB-24977 · remote · Dec 15, 2004 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- RHSA-2005:053 Red Hat Security Advisory: CUPS security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2005:013 Red Hat Security Advisory: cups security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
References
- RHSA-2005:013 vendor-advisory
- http://tigger.uic.edu/~jlongs2/holes/cups.txt
- oval:org.mitre.oval:def:10620 vdb-entry signature
- cups-parsecommand-hpgl-bo(18604) vdb-entry
- MDKSA-2005:008 vendor-advisory
- RHSA-2005:053 vendor-advisory
- USN-50-1 vendor-advisory
- GLSA-200412-25 vendor-advisory