CVE-2012-5958

Exp

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.

Published: 2013-01-31 Last update: 2026-04-29 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2012-5958 is rated High Exploit Risk (89.2/100): CVSS Critical severity, with high exploitation likelihood (EPSS 87.95%, 99th percentile). Core evidence: 3 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2012-5958

EDB-ID Source Kind Published Link
49119 exploit_db edb 2020-11-27 Exploit-DB ↗
24455 exploit_db edb 2013-02-05 Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2012-5958

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-05-17 88.62% 87.95% -0.67%
2 2026-03-24 88.70% 88.62% -0.08%
3 2026-01-11 88.70%

Full EPSS history (12 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2012-5958

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
10.0 2.0 HIGH
AV:N/AC:L/Au:N/C:C/I:C/A:C Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:C)
Complete confidentiality impact.
Integrity impact (I:C)
Complete integrity impact.
Availability impact (A:C)
Complete availability impact.
10.0 10.0 [email protected]

Weakness enumeration for CVE-2012-5958

OS Trackers for CVE-2012-5958

vendor priority summary link
gentoo high CVE-2012-5958: 1 GLSA(s) (201403-06), 1 atom(s) (net-libs/libupnp); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2012-5958
redhat high https://access.redhat.com/security/cve/CVE-2012-5958
ubuntu medium CVE-2012-5958 medium priority: Ubuntu including 2 source packages (libupnp, libupnp4), 16 status rows across 8 suites (hardy, lucid, oneiric, precise, quantal, raring, saucy, upstream): released 9, not-affected 4, ignored 2, DNE 1. https://ubuntu.com/security/CVE-2012-5958

NVD evaluator notes for CVE-2012-5958

Impact: Per CERT's advisory additional products may be affected: http://www.kb.cert.org/vuls/id/922681 "Hundreds of vendors have used the libupnp library in their products, many of which are acting as the home routers for consumer networks. Any application linking to libupnp is likely to be affected"

Affected software / configurations for CVE-2012-5958

Vendor Product Version Raw CPE
libupnp_project libupnp <= 1.6.17 cpe:2.3:a:libupnp_project:libupnp:*:*:*:*:*:*:*:*
libupnp_project libupnp 1.4.0 cpe:2.3:a:libupnp_project:libupnp:1.4.0:*:*:*:*:*:*:*
libupnp_project libupnp 1.4.1 cpe:2.3:a:libupnp_project:libupnp:1.4.1:*:*:*:*:*:*:*
libupnp_project libupnp 1.4.2 cpe:2.3:a:libupnp_project:libupnp:1.4.2:*:*:*:*:*:*:*
libupnp_project libupnp 1.4.3 cpe:2.3:a:libupnp_project:libupnp:1.4.3:*:*:*:*:*:*:*
libupnp_project libupnp 1.4.4 cpe:2.3:a:libupnp_project:libupnp:1.4.4:*:*:*:*:*:*:*
libupnp_project libupnp 1.4.5 cpe:2.3:a:libupnp_project:libupnp:1.4.5:*:*:*:*:*:*:*
libupnp_project libupnp 1.4.6 cpe:2.3:a:libupnp_project:libupnp:1.4.6:*:*:*:*:*:*:*
libupnp_project libupnp 1.4.7 cpe:2.3:a:libupnp_project:libupnp:1.4.7:*:*:*:*:*:*:*
libupnp_project libupnp 1.6.0 cpe:2.3:a:libupnp_project:libupnp:1.6.0:*:*:*:*:*:*:*
libupnp_project libupnp 1.6.1 cpe:2.3:a:libupnp_project:libupnp:1.6.1:*:*:*:*:*:*:*
libupnp_project libupnp 1.6.2 cpe:2.3:a:libupnp_project:libupnp:1.6.2:*:*:*:*:*:*:*
libupnp_project libupnp 1.6.3 cpe:2.3:a:libupnp_project:libupnp:1.6.3:*:*:*:*:*:*:*
libupnp_project libupnp 1.6.4 cpe:2.3:a:libupnp_project:libupnp:1.6.4:*:*:*:*:*:*:*
libupnp_project libupnp 1.6.5 cpe:2.3:a:libupnp_project:libupnp:1.6.5:*:*:*:*:*:*:*
libupnp_project libupnp 1.6.6 cpe:2.3:a:libupnp_project:libupnp:1.6.6:*:*:*:*:*:*:*
libupnp_project libupnp 1.6.7 cpe:2.3:a:libupnp_project:libupnp:1.6.7:*:*:*:*:*:*:*
libupnp_project libupnp 1.6.8 cpe:2.3:a:libupnp_project:libupnp:1.6.8:*:*:*:*:*:*:*
libupnp_project libupnp 1.6.9 cpe:2.3:a:libupnp_project:libupnp:1.6.9:*:*:*:*:*:*:*
libupnp_project libupnp 1.6.10 cpe:2.3:a:libupnp_project:libupnp:1.6.10:*:*:*:*:*:*:*
libupnp_project libupnp 1.6.11 cpe:2.3:a:libupnp_project:libupnp:1.6.11:*:*:*:*:*:*:*
libupnp_project libupnp 1.6.12 cpe:2.3:a:libupnp_project:libupnp:1.6.12:*:*:*:*:*:*:*
libupnp_project libupnp 1.6.13 cpe:2.3:a:libupnp_project:libupnp:1.6.13:*:*:*:*:*:*:*
libupnp_project libupnp 1.6.14 cpe:2.3:a:libupnp_project:libupnp:1.6.14:*:*:*:*:*:*:*
libupnp_project libupnp 1.6.15 cpe:2.3:a:libupnp_project:libupnp:1.6.15:*:*:*:*:*:*:*
libupnp_project libupnp 1.6.16 cpe:2.3:a:libupnp_project:libupnp:1.6.16:*:*:*:*:*:*:*

References for CVE-2012-5958

URL Tags
http://lists.opensuse.org/opensuse-updates/2013-02/msg00013.html
http://packetstormsecurity.com/files/160242/libupnp-1.6.18-Denial-Of-Service.html
http://pupnp.sourceforge.net/ChangeLog
http://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20130129-upnp
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
http://www.debian.org/security/2013/dsa-2614
http://www.debian.org/security/2013/dsa-2615
http://www.kb.cert.org/vuls/id/922681 Patch US Government Resource
http://www.mandriva.com/security/advisories?name=MDVSA-2013:098
http://www.securityfocus.com/bid/57602 Exploit
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
cvelogic Threat Intelligence