CVE-2012-5958
CriticalExploitedPublic exploitlibupnp: Multiple stack-based buffer overflows in unique_service_name() by processing specially-crafted SSDP request (VU#922681)
Published Jan 29, 2013 · Updated Mar 9, 2026 · Also known as DEBIAN-CVE-2012-5958, DEBIAN-CVE-2012-5959, DEBIAN-CVE-2012-5960, DEBIAN-CVE-2012-5961, DEBIAN-CVE-2012-5962, DEBIAN-CVE-2012-5963, DEBIAN-CVE-2012-5964, DEBIAN-CVE-2012-5965, DSA-2614-1, DSA-2615-1
Key Facts
Patch immediately- CVE-2012-5958 is a critical-severity vulnerability (CVSS 10.0 v2) affecting Libupnp (Libupnp Project), libupnp4 (debian), libupnp6-32bit (suse) and 2 more products.
- It is exploited in the wild, listed in Industry KEV feed since Jul 13, 2018. Public exploit code is available.
- EPSS estimates a 83% probability of exploitation in the next 30 days.
- Fixed versions are available, including Libupnp 1:1.6.6-5+squeeze1, Libupnp 1.6.17, libupnp-devel 1.6.19-1.8.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
CVSS v2
10.0
AV:N/AC:L/Au:N/C:C/I:C/A:C
EPSS (30-day exploit likelihood)
83%
Higher than 99.6% of all scored CVEs
Exploited in the wild
Yes
1 catalog listing
Public exploit code
Available
Proof-of-concept or weaponized module
Get the full CVE-2012-5958 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
Description
Stack-based buffer overflow in the unique_service_name function in ssdp/ssdp_server.c in the SSDP parser in the portable SDK for UPnP Devices (aka libupnp, formerly the Intel SDK for UPnP devices) before 1.6.18 allows remote attackers to execute arbitrary code via a UDP packet with a crafted string that is not properly handled after a certain pointer subtraction.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| Industry KEV feed | Jul 13, 2018 | n/a | Not reported |
Required action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Affected Products
31 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| LibupnpLibupnp Project | 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.4.7 | 1.6.17 |
| libupnp4debian | See advisory | 1.8.0~svn20100507-1+squeeze1 |
| libupnp6-32bitsuse | See advisory | 1.6.19-1.8 |
| libupnp6suse | See advisory | 1.6.19-1.8 |
| libupnp-develsuse | See advisory | 1.6.19-1.8 |
Patched Releases
Libupnp
1:1.6.6-5+squeeze1, 1.6.17
libupnp-devel
1.6.19-1.8
libupnp4
1.8.0~svn20100507-1+squeeze1
libupnp6
1.6.19-1.8
libupnp6-32bit
1.6.19-1.8
Timeline
Publicly disclosed
Jan 29, 2013
Added to Industry KEV feed
Jul 13, 2018
Last updated
Mar 9, 2026
Weakness Type
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
- CWE-121 Stack-based Buffer Overflow
References
- patchVU#922681
- exploitMSF libupnp_ssdp_overflow.rb
- exploitExploitDB-24455
- exploitExploitDB-49119
- exploitVulnCheck exploitation report
FAQ
Common Questions.
Stack-based buffer overflow in the unique_service_name function in ssdp/ssdp_server.c in the SSDP parser in the portable SDK for UPnP Devices (aka libupnp, formerly the Intel SDK for UPnP devices) before 1.6.18 allows remote attackers to execute arbitrary code via a UDP packet with a crafted string that is not properl…
Affected: Libupnp (Libupnp Project) versions 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.4.7; libupnp4 (debian); libupnp6-32bit (suse), among others. The full list is in the CVE brief.
It is exploited in the wild, listed in Industry KEV feed since Jul 13, 2018.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including Libupnp 1:1.6.6-5+squeeze1, Libupnp 1.6.17, libupnp-devel 1.6.19-1.8.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2012-5958 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo