Heap-based buffer overflow in libcurl - CVE-2013-2174

 

Heap-based buffer overflow in libcurl - CVE-2013-2174

Published: September 1, 2022


Vulnerability identifier: #VU66916
CSH Severity: High
CVSS v4: 9.3 [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]
CVE-ID: CVE-2013-2174
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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

The vulnerability exists due to a boundary error in the "curl_easy_unescape" function. A remote attacker can pass specially crafted data to the application, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

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


Affected software

libcurl
Modular Switchgear Monitoring (MSM)
Debian Linux
Ubuntu
Slackware Linux
libcurl3-gnutls (Ubuntu package)
libcurl3 (Ubuntu package)
curl (Debian package)
libcurl3-nss (Ubuntu package)
curl

How to mitigate CVE-2013-2174

Install update from vendor's website.

libcurl - update to 7.31.0
libcurl3-gnutls (Ubuntu package) - addressed in versions 7.19.7-1ubuntu1.3, 7.22.0-3ubuntu4.2, 7.27.0-1ubuntu1.3, 7.29.0-1ubuntu3.1
libcurl3 (Ubuntu package) - addressed in versions 7.19.7-1ubuntu1.3, 7.22.0-3ubuntu4.2, 7.27.0-1ubuntu1.3, 7.29.0-1ubuntu3.1
curl (Debian package) - addressed in versions 7.21.0-2.1+squeeze4, 7.26.0-1+wheezy3
libcurl3-nss (Ubuntu package) - addressed in versions 7.22.0-3ubuntu4.2, 7.27.0-1ubuntu1.3, 7.29.0-1ubuntu3.1
curl - addressed in versions 7.19.6, 7.20.1, 7.21.4, 7.29.0

External References

Related Security Bulletins