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…
Check your servers for CVE-2012-5959
The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2012-5959 affects a package, with the command that installs the fix. The free plan covers one server and does not need a credit card.
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.
Exploitation
EPSS 75.7%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.6% of all scored CVEs. Scores of 27 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2012-5959 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2012-5959RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2012-5959Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2012-5959
trivy image --scanners vuln IMAGE | grep CVE-2012-5959
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server or read how to install the agent.
References
Advisories
- 20130129 Portable SDK for UPnP Devices Contains Buffer Overflow Vulnerabilities tools.cisco.com · vendor advisory
- MDVSA-2013:098 mandriva.com · vendor advisory
- http://tsd.dlink.com.tw/temp/PMD/12960/DSR-150N_A2_Release_Notes_FW_v1.05B64_WW.pdf tsd.dlink.com.tw
- http://tsd.dlink.com.tw/temp/PMD/12879/DSR-500_500N_1000_1000N_A1_Release_Notes_FW_v1.08B77_WW.pdf tsd.dlink.com.tw
- DSA-2615 debian.org · vendor advisory
- http://tsd.dlink.com.tw/temp/PMD/12966/DSR-150_A1_A2_Release_Notes_FW_v1.08B44_WW.pdf tsd.dlink.com.tw
- http://tsd.dlink.com.tw/temp/PMD/13039/DSR-250_250N_A1_A2_Release_Notes_FW_v1.08B44_WW_RU.pdf tsd.dlink.com.tw
- DSA-2614 debian.org · vendor advisory
- http://pupnp.sourceforge.net/ChangeLog pupnp.sourceforge.net
- VU#922681 kb.cert.org · third party advisory
- openSUSE-SU-2013:0255 lists.opensuse.org · vendor advisory
- https://wiki.mageia.org/en/Support/Advisories/MGASA-2013-0037 wiki.mageia.org
Other references
- https://community.rapid7.com/servlet/JiveServlet/download/2150-1-16596/SecurityFlawsUPnP.pdf community.rapid7.com
- 57602 securityfocus.com · vdb entry
- https://community.rapid7.com/servlet/servlet.FileDownload?file=00P1400000cCaFb community.rapid7.com
- https://community.rapid7.com/community/infosec/blog/2013/01/29/security-flaws-in-universal-plug-and-play-unplug-dont-play community.rapid7.com
- https://www.tenable.com/security/research/tra-2017-10 tenable.com
Source: the record CVE-2012-5959 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse