CVE-2012-5958
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.
Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
83.216%
chance of exploitation in the next 30 days
higher than 99.7% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 2
Nuclei templates: 0
Exploit-DB: 2
Weakness
- CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
Timeline
- 2013-01-31Published by the CNA21:00 UTC
- 2013-02-05First Exploit-DB entry (EDB-ID 24455)5 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 24455 | remote | unix | 2013-02-05 | yes |
| EDB-ID 49119 | dos | linux | 2020-11-27 | no |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| libupnp_project libupnp | 1.4.0no fix listed1.4.1no fix listed1.4.2no fix listed1.4.3no fix listed1.4.4no fix listed(+21 more) | not listednot listednot listednot listednot listed |
References
- http://www.kb.cert.org/vuls/id/922681
- http://lists.opensuse.org/opensuse-updates/2013-02/msg00013.html
- http://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20130129-upnp
- http://www.debian.org/security/2013/dsa-2614
- http://www.debian.org/security/2013/dsa-2615
- http://www.mandriva.com/security/advisories?name=MDVSA-2013:098
- http://www.securityfocus.com/bid/57602
- http://packetstormsecurity.com/files/160242/libupnp-1.6.18-Denial-Of-Service.html
- http://pupnp.sourceforge.net/ChangeLog
- http://tsd.dlink.com.tw/temp/PMD/12879/DSR-500_500N_1000_1000N_A1_Release_Notes_FW_v1.08B77_WW.pdf
- http://tsd.dlink.com.tw/temp/PMD/12960/DSR-150N_A2_Release_Notes_FW_v1.05B64_WW.pdf
- http://tsd.dlink.com.tw/temp/PMD/12966/DSR-150_A1_A2_Release_Notes_FW_v1.08B44_WW.pdf
- http://tsd.dlink.com.tw/temp/PMD/13039/DSR-250_250N_A1_A2_Release_Notes_FW_v1.08B44_WW_RU.pdf
- https://community.rapid7.com/community/infosec/blog/2013/01/29/security-flaws-in-universal-plug-and-play-unplug-dont-play
- https://community.rapid7.com/servlet/JiveServlet/download/2150-1-16596/SecurityFlawsUPnP.pdf
- https://community.rapid7.com/servlet/servlet.FileDownload?file=00P1400000cCaFb
- https://wiki.mageia.org/en/Support/Advisories/MGASA-2013-0037
- https://www.tenable.com/security/research/tra-2017-10
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2012-5958'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2012-5958'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2012-5958'curl 'https://api.contrastcyber.com/cve_products/CVE-2012-5958'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).