CVE-2012-5958
Stack-based buffer overflow in the unique_service_name function in ssdp/ssdp_server.c in the SSDP...
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.
Exploit likelihood
What each source reports
NVD Score used
10.0
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.
- Record
CVE-2012-5958- CVSS 2.0
- 10.0 High
AV:N/AC:L/Au:N/C:C/I:C/A:C - Weakness
- CWE-119
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2012-5958- Updated
- 2026-11-02
EUVDEUVD-2012-5832 No score
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.
- Record
EUVD-2012-5832- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-mpm3-m3f6-fx5w No score
Stack-based buffer overflow in the unique_service_name function in ssdp/ssdp_server.c in the SSDP...
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.
- Record
GHSA-mpm3-m3f6-fx5w- Weakness
- CWE-119
- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10300-1 No score
libupnp-devel-1.6.19-1.8 on GA media
These are all security issues fixed in the libupnp-devel-1.6.19-1.8 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10300-1- Updated
- 2026-11-02
Affected products
Affected packages
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | Portable UPnP SDK - 'unique_service_name()' Remote Code Execution (Metasploit) | 2013-02-05 |
| Exploit-DB | libupnp 1.6.18 - Stack-based buffer overflow (DoS) | 2020-11-27 |
| Metasploit | UPnP SSDP M-SEARCH Information Discovery | |
| Metasploit | Portable UPnP SDK unique_service_name() Remote Code Execution | 2013-01-29 |
| PoC in GitHub | hmrumman777-beep/NetAudit-IoT | 2026-03-23 |
| PoC in GitHub | lochiiconnectivity/vulnupnp | 2013-04-14 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, Metasploit, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2012-5958 is a high vulnerability (CVSS 10.0) in Libupnp Project Libupnp, published January 31, 2013. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 83.2%, the 99th percentile. Fixed in libupnp 1:1.6.6-5+squeeze1.
References
tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20130129-upnp
mandriva.com/security/advisories?name=MDVSA-2013:098
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
debian.org/security/2013/dsa-2615
Show 22 moreShow less
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
debian.org/security/2013/dsa-2614
securityfocus.com/bid/57602
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
kb.cert.org/vuls/id/922681
tenable.com/security/research/tra-2017-10
lists.opensuse.org/opensuse-updates/2013-02/msg00013.html
wiki.mageia.org/en/Support/Advisories/MGASA-2013-0037
packetstormsecurity.com/files/160242/libupnp-1.6.18-Denial-Of-Service.html
nvd.nist.gov/vuln/detail/CVE-2012-5958
github.com/advisories/GHSA-mpm3-m3f6-fx5w
suse.com/security/cve/CVE-2012-5958
suse.com/security/cve/CVE-2012-5959
suse.com/security/cve/CVE-2012-5960
suse.com/security/cve/CVE-2012-5961
suse.com/security/cve/CVE-2012-5962
suse.com/security/cve/CVE-2012-5963
suse.com/security/cve/CVE-2012-5964
suse.com/security/cve/CVE-2012-5965