CVE-2012-5958 is a stack-based buffer overflow in the unique_service_name() function of libupnp, the Portable SDK for UPnP Devices, before 1.6.18. A single crafted SSDP packet to UDP port 1900 can run code without credentials. NVD scores it 10.0, and CERT/CC, Cisco and Siemens advisories name affected cameras, routers, endpoints and building-automation web servers.
Vulnerability summary
CVSS base score
10
Critical severity
EPSS score (FIRST)
83.2%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2012-5958 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| Portable SDK for UPnP Devices (libupnp, pupnp) | cpe:2.3:a:libupnp_project:libupnp:*:*:*:*:*:*:*:* | through 1.6.17 per NVD; CERT/CC lists Intel SDK 1.2 and Portable SDK 1.2.1a to 1.8.0; fixed in 1.6.18 |
| Axis network cameras and video products (libupnp 1.6.17 or earlier) | — | firmware before 5.50.2, fixed in 5.50.2; AXIS P135x series fixed in 5.40.19 (Axis statement in CERT/CC VU#922681) |
| Cisco TelePresence C Series Endpoints, TelePresence System EX Series, TelePresence SX20 | — | listed as vulnerable in cisco-sa-20130129-upnp revision 1.2 (2013-02-13); no fixed release named in the advisory |
| Siemens OZW772, OZW672, OZW775 and OZS164 building-automation web servers | — | OZW772 firmware before V5.10 and OZW672 before V5.00 (fixed in those versions); OZW775 V3.01 and earlier and OZS164 V2.00 and earlier have no firmware fix, mitigate or migrate (Siemens SSA-963338) |
| Synology DiskStation Manager (libupnp 1.6.6) | — | all DSM versions before DSM 4.2 (Synology statement in CERT/CC VU#922681) |
What does this mean for affected devices?
CVE-2012-5958 is a classic buffer overflow (CWE-119) in unique_service_name() in ssdp/ssdp_server.c. NVD's record says the stack-based overflow in the SSDP parser of libupnp "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". NVD scores it 10.0 under CVSS v2, vector AV:N/AC:L/Au:N/C:C/I:C/A:C, a Primary score from NVD itself; the record has no CVSS v3 score. NVD's configuration marks libupnp releases through 1.6.17 as vulnerable (NVD).
Which devices did the 2013 disclosure name?
The bug came out of a Rapid7 scan of Internet-facing UPnP devices and was published on 2013-01-29 in CERT/CC Vulnerability Note VU#922681, together with CVE-2012-5959 to CVE-2012-5965. CERT/CC says Intel SDK 1.2 and Portable SDK 1.2.1a to 1.8.0 carry "at least three remotely exploitable buffer overflows in the unique_service_name() function, which is called to process incoming SSDP requests on UDP port 1900", and that libupnp 1.6.18 fixes them. The note's vendor list is where the device angle sits. Axis says its products shipped libupnp 1.6.17 or earlier with UPnP on by default, fixed in firmware 5.50.2 (5.40.19 for the AXIS P135x series). Synology says DSM before 4.2 used libupnp 1.6.6 in Media Server, Surveillance Station and other packages. Sony lists the STR-DA3700ES and STR-DA5700ES AV receivers.
Cisco's advisory cisco-sa-20130129-upnp lists TelePresence C Series Endpoints, TelePresence System EX Series and TelePresence SX20 as vulnerable, and lists RV-series routers, WAP4400N and AP541N access points, the PVC2300 camera and the NSS300 storage line under investigation. Siemens ProductCERT SSA-963338 covers the OT side: OZW772 and OZW672 web servers for remote monitoring of heating and air-conditioning controllers, fixed in firmware V5.10 and V5.00. OZW775 (V3.01 and earlier) and OZS164 (V2.00 and earlier) get no firmware fix; Siemens advises migrating to OZW672 or OZW772, or blocking UDP 1900 at the border and switching off UPnP advertisement.
Is CVE-2012-5958 exploited?
It is not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). FIRST EPSS gives it 0.8322, the 99.7th percentile, in the 2026-11-16 dataset (CISA KEV, FIRST EPSS). An EPSS score this high on a 2013 bug shows that old libupnp builds are still reachable; our KEV and EPSS prioritisation guide explains why a missing KEV listing does not make it low priority.
How do you fix it in firmware?
Move libupnp to 1.6.18 or later; today that means the current pupnp release, since the 1.6.x line is long out of support. Where a device cannot be updated, follow CERT/CC: block untrusted hosts from UDP port 1900 and disable UPnP if the product does not need it. Our MiniUPnPd and UPnP vulnerabilities guide shows how to tell libupnp from MiniUPnPd or a vendor stack by its SERVER string in a firmware image, and our memory corruption guide covers the code-level fix class. CVE-2012-5965 is the DeviceType overflow from the same CERT/CC note, and CVE-2020-12695 (CallStranger) is a later UPnP protocol flaw that affects the same kinds of devices.
Evidence
- Stack-based overflow in unique_service_name in ssdp/ssdp_server.c, libupnp before 1.6.18, crafted UDP packet; NVD CVSS v2 10.0 Primary AV:N/AC:L/Au:N/C:C/I:C/A:C; CWE-119; CPE through 1.6.17; published 2013-01-31. — NVD
- VU#922681 published 2013-01-29; Intel SDK 1.2 and Portable SDK 1.2.1a-1.8.0 affected; 1.6.18 fixes; Axis fixed in 5.50.2 (P135x 5.40.19); Synology DSM before 4.2 libupnp 1.6.6; Sony STR-DA3700ES and STR-DA5700ES; CVE-2012-5958 to CVE-2012-5965. — CERT/CC VU#922681
- Vulnerable: TelePresence C Series, EX Series, SX20; under investigation: RV routers, WAP4400N, AP541N, PVC2300, NSS300 and others; revision 1.2 of 2013-02-13. — Cisco cisco-sa-20130129-upnp
- OZW772 < V5.10, OZW672 < V5.00, OZW775 <= V3.01, OZS164 <= V2.00 affected; fixes OZW772 V5.10, OZW672 V5.00; migrate or mitigate others; V1.2 of 2014-06-13. — Siemens SSA-963338
- Not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). — CISA KEV
- EPSS 0.83216 (99.68th percentile), dataset 2026-11-16, read 2026-11-17. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Which libupnp versions does CVE-2012-5958 affect?
NVD marks libupnp releases through 1.6.17 as vulnerable, and CERT/CC lists Intel SDK 1.2 and Portable SDK 1.2.1a to 1.8.0 as carrying the unique_service_name() overflows; libupnp 1.6.18 fixes them (per NVD and CERT/CC VU#922681).
Which devices were named as affected by CVE-2012-5958?
CERT/CC's vendor list names Axis products before firmware 5.50.2, Synology DSM before 4.2 and Sony's STR-DA3700ES and STR-DA5700ES receivers. Cisco lists TelePresence C Series, EX Series and SX20, and Siemens names its OZW and OZS building-automation web servers (per CERT/CC VU#922681, Cisco cisco-sa-20130129-upnp and Siemens SSA-963338).
Does an attacker need credentials to exploit CVE-2012-5958?
No. The overflow is reached by a single crafted UDP packet to the SSDP service on port 1900, with no authentication, which is why NVD scores it 10.0 under CVSS v2 (per NVD and CERT/CC VU#922681).
Is CVE-2012-5958 known to be exploited?
It is not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). FIRST EPSS gives it 0.8322, the 99.7th percentile, in the 2026-11-16 dataset (per CISA KEV and FIRST EPSS).
What can I do if the device firmware cannot be updated?
Block untrusted hosts from UDP port 1900 and turn UPnP off where the product does not need it. Siemens gives the same advice for OZW775 and OZS164, which received no firmware fix (per CERT/CC VU#922681 and Siemens SSA-963338).
Questions about this page?