CVE-2012-5965 Memory corruption in n/a

Critical 10.0 Published Updated

Remote attackers can execute arbitrary code via a stack-based buffer overflow in the libupnp SSDP parser using a malicious UDP packet.

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-5965?

CVE-2012-5965 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) 1.3.1 allows remote attackers to execute arbitrary code via a long DeviceType (aka urn device) field in a UDP packet.

Weakness: CWE-119

Which versions are affected by CVE-2012-5965?

It affects 1 product.

Products include Portable Sdk for Upnp Project Portable Sdk for Upnp.

How do I fix CVE-2012-5965?

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-5965 being exploited?

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

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as GHSA-hq6m-8fcw-g2rc.

Is CVE-2012-5965 in your software?

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

Check your SBOMs for free