Description
Integer underflow in the asn1_get_string function in the SNMP back end (backend/snmp.c) for CUPS 1.2 through 1.3.4 allows remote attackers to execute arbitrary code via a crafted SNMP response that triggers a stack-based buffer overflow.
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.3.5-1 | — |
| Debian 13 | cups | 1.3.5-1 | — |
| Debian 12 | cups | 1.3.5-1 | — |
| Debian 4.0 | cupsys | 1.2.7-4etch2 | DSA-1437-1 |
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
- Common UNIX Printing System 1.2/1.3 SNMP - 'asn1_get_string()' Remote Buffer Overflow EDB-30898 · dos · Nov 6, 2007 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- DSA-1437-1 cupsys Debian Security (DSA / DLA) · Mar 9, 2026
References
- http://www.cups.org/str.php?L2589
- cups-asn1getstring-bo(39101) vdb-entry
- ADV-2007-4238 vdb-entry
- TA07-352A third-party-advisory
- 28129 third-party-advisory
- SUSE-SR:2008:002 vendor-advisory
- 28441 third-party-advisory
- 28136 third-party-advisory
- 28113 third-party-advisory
- 28200 third-party-advisory
- USN-563-1 vendor-advisory
- GLSA-200712-14 vendor-advisory
- 26910 vdb-entry
- SUSE-SA:2008:002 vendor-advisory
- FEDORA-2008-0322 vendor-advisory
- APPLE-SA-2007-12-17 vendor-advisory
- 28676 third-party-advisory
- DSA-1437 vendor-advisory
- http://docs.info.apple.com/article.html?artnum=307179
- 28386 third-party-advisory
- http://bugs.gentoo.org/show_bug.cgi?id=201570
- MDVSA-2008:036 vendor-advisory
- 28636 third-party-advisory
- macos-snmp-bo(39097) vdb-entry
- ADV-2007-4242 vdb-entry
- 26917 vdb-entry