CVE-2012-5958 Memory corruption in n/a

Critical 10.0 Published Updated

Remote attackers can execute arbitrary code via crafted UDP packets due to a stack-based buffer overflow in the libupnp SSDP parser.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2012-5958?

CVE-2012-5958 is a critical memory corruption vulnerability in n/a, published on 31 Jan 2013. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-119

Which versions are affected by CVE-2012-5958?

It affects 1 product.

Products include Libupnp Project Libupnp.

How do I fix CVE-2012-5958?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2012-5958 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-5958 exists.

Public exploit code: 2 Metasploit modules, 2 Exploit-DB entries and 2 proofs of concept on GitHub.

Sources

Also known as GHSA-mpm3-m3f6-fx5w.

Is CVE-2012-5958 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free