CWE
119
Advisory Published
Updated

CVE-2012-5958: Buffer Overflow

First published: Thu Jan 31 2013(Updated: )

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.

Credit: cret@cert.org

Affected SoftwareAffected VersionHow to fix
libupnp<=1.6.17
libupnp=1.4.0
libupnp=1.4.1
libupnp=1.4.2
libupnp=1.4.3
libupnp=1.4.4
libupnp=1.4.5
libupnp=1.4.6
libupnp=1.4.7
libupnp=1.6.0
libupnp=1.6.1
libupnp=1.6.2
libupnp=1.6.3
libupnp=1.6.4
libupnp=1.6.5
libupnp=1.6.6
libupnp=1.6.7
libupnp=1.6.8
libupnp=1.6.9
libupnp=1.6.10
libupnp=1.6.11
libupnp=1.6.12
libupnp=1.6.13
libupnp=1.6.14
libupnp=1.6.15
libupnp=1.6.16

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2012-5958?

    CVE-2012-5958 is classified as a critical vulnerability due to the potential for remote code execution.

  • How do I fix CVE-2012-5958?

    To mitigate CVE-2012-5958, you should upgrade to libupnp version 1.6.18 or later.

  • What are the potential impacts of CVE-2012-5958?

    The exploitation of CVE-2012-5958 can lead to complete system compromise and unauthorized access to sensitive data.

  • Which versions of libupnp are affected by CVE-2012-5958?

    Versions of libupnp prior to 1.6.18, including all versions from 1.4.0 through 1.6.17, are affected by CVE-2012-5958.

  • Who can be affected by CVE-2012-5958?

    Any system running an affected version of libupnp that exposes UDP services could potentially be targeted by attackers exploiting CVE-2012-5958.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203