CVE-2013-0249
highpriority · attend · 48EPSS 0.216 · 98 %ileexploit · PoCDEEURUUSEPSS · scored 2026-10-27
Stack-based buffer overflow in the Curl_sasl_create_digest_md5_message function in lib/curl_sasl.c in curl and libcurl 7.26.0 through 7.28.1, when negotiating SASL DIGEST-MD5 authentication, allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via a long string in the realm parameter in a (1) POP3, (2) SMTP or (3) IMAP message.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.8–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
- EDB-24487cURL - Buffer Overflow (PoC)PoC · exploit_db
affected products (12)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2023-1659cURL: Schwachstelle ermöglicht Ausführen beliebigen Programmcodes mit den Rechten des DienstesDeutsch2013-02-07csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann eine Schwachstelle in cURL ausnutzen, um beliebigen Programmcode mit den Rechten des Dienstes auszuführen.
- CURL-CVE-2013-0249SASL buffer overflow2013-02-06vendor · osvUS
libcurl is vulnerable to a buffer overflow vulnerability when communicating with one of the protocols POP3, SMTP or IMAP. When negotiating SASL DIGEST-MD5 authentication, the function `Curl_sasl_create_digest_md5_message()` uses the data provided from the server without doing the proper length checks and that data is then appended to a local fixed-size buffer on the stack. This vulnerability can be exploited by someone who is in control of a server that a libcurl based program is accessing with POP3, SMTP or IMAP. For applications that accept user provided URLs, it is also thinkable that a malicious user would feed an application with a URL to a server hosting code targeting this flaw. This vulnerability can be used for remote code execution (RCE) on vulnerable systems. Both curl the command line tool and applications using the libcurl library are vulnerable.
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (38)
External citations — patches, advisories, analysis.
- http://blog.volema.com/curl-rce.htmlcnnvd
- http://curl.haxx.se/docs/adv_20130206.htmlcnnvd
- http://lists.fedoraproject.org/pipermail/package-announce/2013-February/099140.htmlcnnvd
- http://nakedsecurity.sophos.com/2013/02/10/anatomy-of-a-vulnerability-curl-web-download-toolkit-holed-by-authentication-bug/cnnvd
- http://packetstormsecurity.com/files/120147/cURL-Buffer-Overflow.htmlcnnvd
- http://packetstormsecurity.com/files/120170/Slackware-Security-Advisory-curl-Updates.htmlcnnvd
- http://secunia.com/advisories/52103cnnvd
- http://www.exploit-db.com/exploits/24487cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan