CVE-2007-5849

CUPS <1.3.4 - Remote Code Execution

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2007-5849. PoCs published by wei_wang.

AI-analyzed exploit summary This exploit targets a buffer overflow vulnerability in CUPS (Common UNIX Printing System) versions prior to 1.3.5. It sends a malformed SNMP packet with an overly large community name length to trigger the overflow, potentially allowing remote code execution.

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.

Exploits (1)

exploitdb WORKING POC VERIFIED
by wei_wang · perldoslinux
https://www.exploit-db.com/exploits/30898

This exploit targets a buffer overflow vulnerability in CUPS (Common UNIX Printing System) versions prior to 1.3.5. It sends a malformed SNMP packet with an overly large community name length to trigger the overflow, potentially allowing remote code execution.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Theoretical
Target: CUPS 1.2 and 1.3, prior to 1.3.5
No auth needed
Prerequisites: Network access to the target system · CUPS SNMP backend enabled
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (26)

Core 26
Core References
Various Sources x_refsource_confirm
http://www.cups.org/str.php?L2589
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/39101
Vendor Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/4238
US Government Resource third-party-advisory x_refsource_cert
http://www.us-cert.gov/cas/techalerts/TA07-352A.html
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/28129
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/28441
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/28136
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/28113
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/28200
Vendor Advisory vendor-advisory x_refsource_ubuntu
http://www.ubuntu.com/usn/usn-563-1
Third Party Advisory vendor-advisory x_refsource_gentoo
http://www.gentoo.org/security/en/glsa/glsa-200712-14.xml
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/26910
Mailing List vendor-advisory x_refsource_apple
http://lists.apple.com/archives/security-announce/2007/Dec/msg00002.html
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/28676
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2007/dsa-1437
Vendor Advisory x_refsource_confirm
http://docs.info.apple.com/article.html?artnum=307179
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/28386
Issue Tracking x_refsource_confirm
http://bugs.gentoo.org/show_bug.cgi?id=201570
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDVSA-2008:036
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/28636
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/39097
Vendor Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/4242
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/26917

Scores

EPSS 0.1361
EPSS Percentile 96.0%

Details

CWE
CWE-189
Status published
Products (5)
easy_software_products/cups 1.2.4
easy_software_products/cups 1.2.9
easy_software_products/cups 1.2.10
easy_software_products/cups 1.2.12
easy_software_products/cups 1.3.3
Published Dec 19, 2007
Tracked Since Feb 18, 2026