#VU43133 Stack-based buffer overflow in libupnp - CVE-2012-5958

 

#VU43133 Stack-based buffer overflow in libupnp - CVE-2012-5958

Published: January 31, 2013 / Updated: June 17, 2021


Vulnerability identifier: #VU43133
Vulnerability risk: High
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A/U:Amber
CVE-ID: CVE-2012-5958
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vulnerable software:
libupnp
Software vendor:
pupnp.sourceforge.net

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the unique_service_name function in ssdp/ssdp_server.c in the SSDP parser when processing a UDP packet with a crafted string that is not properly handled after a certain pointer subtraction. Per CERT's advisory additional products may be affected: http://www.kb.cert.org/vuls/id/922681 "Hundreds of vendors have used the libupnp library in their products, many of which are acting as the home routers for consumer networks. A remote unauthenticated attacker can trigger stack-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Remediation

Cybersecurity Help is currently unaware of any official solution to address this vulnerability.

External links