CVE-2007-5849: Integer underflow in the asn1_get_string function in the SNMP back end (backend/snmp.c) for CUPS 1.2 through 1
CVE-2007-5849 is a high-severity flaw (CVSS 9.3) affecting cups. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 4%: very likely to be exploited
- Public exploit reference
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 9.3 (High) |
| EPSS exploit chance | 13.6% (top 4%) |
| CISA exploited list | No |
| Weakness | CWE-189 |
| Published | 2007-12-19 |
| Last modified | 2026-06-16 |
Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2007-5849?
cups: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2007-5849 being exploited?
CVE-2007-5849 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2007-5849 affect?
CVE-2007-5849 affects cups. Severity is high (CVSS 9.3). 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.
How urgent is CVE-2007-5849?
Priority 62/100. Critical severity; EPSS top 4%: very likely to be exploited; Public exploit reference
Related CVEs
- CVE-2026-61702 MEDIUM 5.3 UPGRADE OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems
- CVE-2026-39316 MEDIUM 4.0 UPGRADE OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems
- CVE-2026-41079 MEDIUM 4.3 UPGRADE OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems
- CVE-2026-39314 MEDIUM 4.0 UPGRADE OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems
- CVE-2026-107885 LOW 3.3 UPGRADE OpenPrinting CUPS through 2.4.20 contains a resource-exhaustion vulnerability in the submission-timeout handli