SQL injection in cURL - CVE-2012-0036

 

SQL injection in cURL - CVE-2012-0036

Published: April 13, 2012 / Updated: July 28, 2020


Vulnerability identifier: #VU32824
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2012-0036
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to read and manipulate data.

curl and libcurl 7.2x before 7.24.0 do not properly consider special characters during extraction of a pathname from a URL, which allows remote attackers to conduct data-injection attacks via a crafted URL, as demonstrated by a CRLF injection attack on the (1) IMAP, (2) POP3, or (3) SMTP protocol.


Affected software

cURL
Ubuntu
curl (Alpine package)
libcurl3-gnutls (Ubuntu package)
libcurl3 (Ubuntu package)
libcurl3-nss (Ubuntu package)

How to mitigate CVE-2012-0036

Install update from vendor's website.

cURL - update to 7.24.0
curl (Alpine package) - update to 7.24.0-r0
libcurl3-gnutls (Ubuntu package) - addressed in versions 7.21.0-1ubuntu1.3, 7.21.3-1ubuntu1.5, 7.21.6-3ubuntu3.2
libcurl3 (Ubuntu package) - addressed in versions 7.21.0-1ubuntu1.3, 7.21.3-1ubuntu1.5, 7.21.6-3ubuntu3.2
libcurl3-nss (Ubuntu package) - addressed in versions 7.21.3-1ubuntu1.5, 7.21.6-3ubuntu3.2

External References

Related Security Bulletins