CVE-2012-5962

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…

published January 31, 2013

CVSS
—
EPSS
37%
Percentile
98.5
In the wild
Unconfirmed
What it is

⚠️ A long DeviceType could trigger chaos! The unique_service_name function in libupnp is vulnerable to a stack-based buffer overflow, allowing remote attackers to execute arbitrary code just by sending a crafted UDP packet! 🔥 Think of it like a restaurant taking a reservation without checking the number of guests — if someone shows up with an unexpectedly large party, they could just take over the whole place! If an attacker exploits this vulnerability, they could run any code they desire on the vulnerable system, meaning they might steal sensitive information, install malicious software, or even take complete control of the device. The consequences could be devastating, especially for connected devices that rely on this library for communication.

Put simply

Think of it like a restaurant taking a reservation without checking the number of guests — if someone shows up with an unexpectedly large party, they could just take over the whole place! This vulnerability occurs in the unique_service_name function in the SSDP parser of libupnp, where a buffer overflow can happen when an overly long DeviceType field is processed. This flaw allows for arbitrary code execution through crafted UDP packets, making it a serious concern for any device using this SDK.

What to do

If an attacker exploits this vulnerability, they could run any code they desire on the vulnerable system, meaning they might steal sensitive information, install malicious software, or even take complete control of the device. The consequences could be devastating, especially for connected devices that rely on this library for communication. To mitigate this vulnerability, ensure you upgrade to the latest version of libupnp (1.9.0 or higher) that has fixed this overflow issue. Additionally, consider implementing input validation to limit the size of incoming DeviceType fields and monitor network traffic for unexpected UDP packets. You've got this! Act now and secure your systems against this sneaky buffer overflow! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.36925 · 98.5th percentile
Published
2013-01-31T21:00Z
EPSS history
Timeline
  • 31 JAN 21:00Z
    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…
    cvelistv5