CVE-2012-5958: libupnp - Buffer Overflow
- Cve: CVE-2012-5958
- Name: libupnp - Buffer Overflow
- 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 UDP packet with a crafted string that is not properly handled after a certain pointer subtraction.
- Impact: Remote attackers can execute arbitrary code on the affected system, potentially leading to full system compromise.
- Remediation: Update to version 1.6.18 or later.
- Vulnerability type: buffer_overflow
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 10
- Cvss vector: CVSS:2.0/AV:N/AC:L/Au:N/C:C/I:C/A:C
- Epss score: 0.83216
- Epss percentile: 0.99685
- Assignee: [email protected]
- Published at: 2013-01-31T21:55:01Z
- Age in days: 5045
- Modified at: 2026-06-16T23:47:37Z
- Patch available: yes
- Public exploits total: 4
- References total: 20
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2012-5958
- Nvd status: modified
- Checked, none or zero: nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer |
Known exploited entries
| List | Added date | Due date | Ransomware use |
|---|---|---|---|
| vulncheck | 2018-07-13 | — | no |
Public exploits
| Url | Source | Added date |
|---|---|---|
| http://www.securityfocus.com/bid/57602 | nvd | 2013-01-31 |
| https://github.com/hmrumman777-beep/NetAudit-IoT | poc-in-github | 2026-03-23 |
| https://github.com/lochiiconnectivity/vulnupnp | poc-in-github | 2013-04-14 |
| https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/upnp/libupnp_ssdp_overflow.rb | metasploit | 2013-01-29 |
References
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| libupnp_project:libupnp | <= 1.6.17, = 1.6.16, = 1.6.15, = 1.6.14, = 1.6.13, = 1.6.12, = 1.6.11, = 1.6.10, = 1.6.9, = 1.6.8, = 1.6.7, = 1.6.6, = 1.6.5, = 1.6.4, = 1.6.3, = 1.6.2, = 1.6.1, = 1.6.0, = 1.4.7, = 1.4.6, = 1.4.5, = 1.4.4, = 1.4.3, = 1.4.2, = 1.4.1, = 1.4.0 | no | nvd | /v1/products/libupnp_project/libupnp |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Known exploited by: vulncheck
- Vulncheck known exploited since: 2018-07-13
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 4
- Public exploit first date: 2013-01-29
- Remote: yes
- Checked, none or zero: known exploited, initial access, authentication required
- Not known: known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts