{"id":"CVE-2012-5958","published":"2013-01-31T21:00:00Z","modified":"2024-08-06T21:21:28Z","title":"Stack-based buffer overflow in the unique_service_name function in ssdp/ssdp_server.c in the SSDP parser in the…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"A stack-based buffer overflow in the unique_service_name function in ssdp/ssdp_server.c, part of the SSDP parser in the portable SDK for UPnP Devices (libupnp), affects versions before 1.6.18. An attacker who can send a crafted UDP packet to the affected service can trigger the overflow and execute arbitrary code, with no authentication or user interaction indicated.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-23T07:16:20Z"},"cvss":null,"epss":{"score":0.83216,"percentile":0.99676,"date":"2026-10-28","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2018-07-13","exploitedFirstSeen":"2018-07-13","ransomware":false,"evidence":[{"url":"https://www.trendmicro.com/en_us/research/18/g/vpnfilter-affected-devices-still-riddled-with-19-vulnerabilities.html","date":"2018-07-13"},{"url":"https://www.researchgate.net/publication/348602660_An_analysis_of_the_use_of_CVEs_by_IoT_malware","date":"2020-12-01"}],"evidenceTotal":2,"provenance":"source"},"exploited":true,"otx":{"pulseCount":3,"pulses":[{"name":"ripe.arin.enom.cpanel.cpcalendar.iana.networksolutions.02050.webdisk.webmail.","url":"https://otx.alienvault.com/pulse/69fdc02bea1e4ec923b01688","created":"2026-05-08"},{"name":"pulse2","url":"https://otx.alienvault.com/pulse/662edc10a9158fb6cbe169ee","created":"2024-04-28"},{"name":"MUI programu Microsoft Office Access (w języku angielskim) zostało użyte do wysłania złośliwego oprogramowania na serwer w Czechach jest to pierwszy tego typu atak na komputer.                     e","url":"https://otx.alienvault.com/pulse/6608aaf7ca0e965e593ed1d4","created":"2024-03-31"}],"provenance":"machine"},"cwes":[],"references":[{"url":"http://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20130129-upnp","tags":["vendor-advisory","x_refsource_CISCO"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2013:098","tags":["vendor-advisory","x_refsource_MANDRIVA"]},{"url":"http://tsd.dlink.com.tw/temp/PMD/12960/DSR-150N_A2_Release_Notes_FW_v1.05B64_WW.pdf","tags":["x_refsource_CONFIRM"]},{"url":"https://community.rapid7.com/servlet/JiveServlet/download/2150-1-16596/SecurityFlawsUPnP.pdf","tags":["x_refsource_MISC"]},{"url":"http://tsd.dlink.com.tw/temp/PMD/12879/DSR-500_500N_1000_1000N_A1_Release_Notes_FW_v1.08B77_WW.pdf","tags":["x_refsource_CONFIRM"]},{"url":"http://www.debian.org/security/2013/dsa-2615","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://tsd.dlink.com.tw/temp/PMD/12966/DSR-150_A1_A2_Release_Notes_FW_v1.08B44_WW.pdf","tags":["x_refsource_CONFIRM"]},{"url":"http://tsd.dlink.com.tw/temp/PMD/13039/DSR-250_250N_A1_A2_Release_Notes_FW_v1.08B44_WW_RU.pdf","tags":["x_refsource_CONFIRM"]},{"url":"http://www.debian.org/security/2013/dsa-2614","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://www.securityfocus.com/bid/57602","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://community.rapid7.com/servlet/servlet.FileDownload?file=00P1400000cCaFb","tags":["x_refsource_MISC"]},{"url":"http://pupnp.sourceforge.net/ChangeLog","tags":["x_refsource_CONFIRM"]},{"url":"https://community.rapid7.com/community/infosec/blog/2013/01/29/security-flaws-in-universal-plug-and-play-unplug-dont-play","tags":["x_refsource_MISC"]},{"url":"http://www.kb.cert.org/vuls/id/922681","tags":["third-party-advisory","x_refsource_CERT-VN"]},{"url":"https://www.tenable.com/security/research/tra-2017-10","tags":["x_refsource_MISC"]},{"url":"http://lists.opensuse.org/opensuse-updates/2013-02/msg00013.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://wiki.mageia.org/en/Support/Advisories/MGASA-2013-0037","tags":["x_refsource_CONFIRM"]},{"url":"http://packetstormsecurity.com/files/160242/libupnp-1.6.18-Denial-Of-Service.html","tags":["x_refsource_MISC"]}],"techniques":[{"id":"T1133","name":"External Remote Services","tactics":["initial-access","persistence"],"provenance":"source","basis":"ctid-cve","bases":["ctid-cve"],"basisDetail":"CTID attack_to_cve (Phase 1)","mappingType":"uncategorized","evidence":[],"confidence":"low","confidenceNote":"CTID attack_to_cve Phase 1 \"Uncategorized\" mapping (not staged by impact)"},{"id":"T1203","name":"Exploitation for Client Execution","tactics":["execution"],"provenance":"source","basis":"ctid-cve","bases":["ctid-cve"],"basisDetail":"CTID attack_to_cve (Phase 1)","mappingType":"uncategorized","evidence":[],"confidence":"low","confidenceNote":"CTID attack_to_cve Phase 1 \"Uncategorized\" mapping (not staged by impact)"}],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2012-5832","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2012-5832","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":24455,"url":"https://www.exploit-db.com/exploits/24455","title":"Portable UPnP SDK - 'unique_service_name()' Remote Code Execution (Metasploit)","type":"remote","platform":"unix","date":"2013-02-05","verified":true,"provenance":"source"},{"id":49119,"url":"https://www.exploit-db.com/exploits/49119","title":"libupnp 1.6.18 - Stack-based buffer overflow (DoS)","type":"dos","platform":"linux","date":"2020-11-27","verified":false,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":2,"earliest":"2013-02-05"},"pocGithub":{"count":2,"skipped":0,"earliest":"2013-04-14","earliestUrl":"https://github.com/lochiiconnectivity/vulnupnp","repos":[{"name":"lochiiconnectivity/vulnupnp","url":"https://github.com/lochiiconnectivity/vulnupnp","stars":1,"created":"2013-04-14"},{"name":"hmrumman777-beep/NetAudit-IoT","url":"https://github.com/hmrumman777-beep/NetAudit-IoT","stars":0,"created":"2026-03-23"}]},"metasploit":[{"name":"Portable UPnP SDK unique_service_name() Remote Code Execution","module":"exploit/multi/upnp/libupnp_ssdp_overflow","type":"exploit","disclosureDate":"2013-01-29","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/upnp/libupnp_ssdp_overflow.rb"},{"name":"UPnP SSDP M-SEARCH Information Discovery","module":"auxiliary/scanner/upnp/ssdp_msearch","type":"auxiliary","disclosureDate":null,"url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/upnp/ssdp_msearch.rb"}],"first":{"date":"2013-01-29","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/upnp/libupnp_ssdp_overflow.rb"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/160242/libupnp-1.6.18-Denial-Of-Service.html"],"flow":[{"stage":"related","techniques":["T1133","T1203"],"provenance":"source","lowConfidence":true}],"timeline":[{"date":"2013-01-29","kind":"exploit-public","label":"First public exploit: Metasploit; later: Exploit-DB 2013-02-05, PoC-in-GitHub 2013-04-14","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/upnp/libupnp_ssdp_overflow.rb","provenance":"source"},{"date":"2013-01-31","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2012-5958","provenance":"source"},{"date":"2018-07-13","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://www.trendmicro.com/en_us/research/18/g/vpnfilter-affected-devices-still-riddled-with-19-vulnerabilities.html","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":61.3,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 3030 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.94,"detail":"percentile 0.9968"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 Exploit-DB entries; 1 NVD exploit link; 2 PoC-in-GitHub repos; 2 Metasploit modules"},{"name":"Mentioned in OTX pulses","points":1.37,"detail":"3 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}