CVE-2007-5849: Stack Buffer Overflow via Integer Underflow in CUPS SNMP Backend
- Vendor
- Easy Software Products
CVE-2007-5849 is an integer underflow vulnerability in the asn1_get_string function within the SNMP backend (backend/snmp.c) of CUPS versions 1.2 through 1.3.4. A remote attacker can exploit this by sending a specially crafted SNMP response, causing the integer underflow and leading to a stack-based buffer overflow, which may allow execution of arbitrary code.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary code with the privileges of the CUPS process, potentially leading to full system compromise on affected systems.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, restrict SNMP access to trusted hosts only, and consider disabling the SNMP backend if not required. Monitor network traffic for suspicious SNMP responses targeting CUPS.
Remediation
Patch, then assume compromise.
Upgrade CUPS to a version later than 1.3.4 where the vulnerability has been patched. Ensure all systems using CUPS are updated to a secure version.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2007-5849 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2007-5849 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2007-5849?
- As of Oct 16, 2026, Mallory has not confirmed a public exploit for CVE-2007-5849. 1 candidate exploit record is not yet analyzed.
- Is there a patch for CVE-2007-5849?
- Upgrade CUPS to a version later than 1.3.4 where the vulnerability has been patched. Ensure all systems using CUPS are updated to a secure version.
- What products are affected by CVE-2007-5849?
- Easy Software Products Cups.
- How severe is CVE-2007-5849?
- CVE-2007-5849 has a CVSS v2 score of 9.3 (Critical) and an EPSS score of 13.6% (97th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.