CVE-2012-5958 in the critical feed json
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 Devic…
published 2013-01-31 13 y ago modified 2026-06-16 4 mo ago also EUVD-2012-5832
- cvss
- 10.0
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 83.2%
- EPSS 83.2% chance of exploitation in 30 days, percentile 99.6%
- public exploits
- 4
- Metasploit, Exploit-DB
Summary
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.
Patch / fix
- kb.cert.org/vuls/id/922681 advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2012-5958 updated cvss 6.8
libupnp: Multiple stack-based buffer overflows in unique_service_name() by processing specially-crafted SSDP request (VU#922681)
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- First public exploit (Metasploit exploit/multi/upnp/libupnp_ssdp_overflow)
- Published
Exploit prediction
83.22% chance of exploitation in the next 30 days, higher than 99.6% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- Metasploit exploit/multi/upnp/libupnp_ssdp_overflow Portable UPnP SDK unique_service_name() Remote Code Execution metasploit exploit, normal rank, 2013-01-29
- Metasploit auxiliary/scanner/upnp/ssdp_msearch UPnP SSDP M-SEARCH Information Discovery metasploit auxiliary, normal rank
- EDB-49119 libupnp 1.6.18 - Stack-based buffer overflow (DoS) dos, 2020-11-27
- EDB-24455 Portable UPnP SDK - 'unique_service_name()' Remote Code Execution (Metasploit) remote, 2013-02-05
- securityfocus.com http://www.securityfocus.com/bid/57602 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Classification
- Weakness
-
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
References
-
kb.cert.org
/vuls/id/922681
third-party-advisory, patch, us-government-resource
-
securityfocus.com
/bid/57602
vdb-entry, exploit
-
tools.cisco.com
/security/center/content/CiscoSecurityAdvisory/cisco-sa-20130129-upnp
vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2013:098
vendor-advisory
-
debian.org
/security/2013/dsa-2615
vendor-advisory
-
debian.org
/security/2013/dsa-2614
vendor-advisory
-
lists.opensuse.org
/opensuse-updates/2013-02/msg00013.html
vendor-advisory
- tsd.dlink.com.tw /temp/PMD/12960/DSR-150N_A2_Release_Notes_FW_v1.05B64_WW.pdf
- community.rapid7.com /servlet/JiveServlet/download/2150-1-16596/SecurityFlawsUPnP.pdf
- tsd.dlink.com.tw /temp/PMD/12879/DSR-500_500N_1000_1000N_A1_Release_Notes_FW_v1.08B77_WW.pdf
- tsd.dlink.com.tw /temp/PMD/12966/DSR-150_A1_A2_Release_Notes_FW_v1.08B44_WW.pdf
- tsd.dlink.com.tw /temp/PMD/13039/DSR-250_250N_A1_A2_Release_Notes_FW_v1.08B44_WW_RU.pdf
- community.rapid7.com /servlet/servlet.FileDownload?file=00P1400000cCaFb
- pupnp.sourceforge.net /ChangeLog
- community.rapid7.com /community/infosec/blog/2013/01/29/security-flaws-in-universal-plug-and-play-unplug-dont-play
- tenable.com /security/research/tra-2017-10
- wiki.mageia.org /en/Support/Advisories/MGASA-2013-0037
- packetstormsecurity.com /files/160242/libupnp-1.6.18-Denial-Of-Service.html
Sources
- CVE List CVE-2012-5958
- NVD CVE-2012-5958
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.