Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | curl | 7.29.0-1 | — |
| Debian 13 | curl | 7.29.0-1 | — |
| Debian 12 | curl | 7.29.0-1 | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | curl | 7.51.0-1.1 | openSUSE-SU-2024:10303-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- cURL - Buffer Overflow (PoC) EDB-24487 · dos · Feb 11, 2013
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- openSUSE-SU-2024:10303-1 curl-7.51.0-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-1659 cURL: Schwachstelle ermöglicht Ausführen beliebigen Programmcodes mit den Rechten des Dienstes BSI CERT-Bund (WID) · Jul 4, 2023
References
- http://www.oracle.com/technetwork/topics/security/cpujul2015-2367936.html
- http://packetstormsecurity.com/files/120170/Slackware-Security-Advisory-curl-Updates.html
- 57842 vdb-entry
- APPLE-SA-2013-10-22-3 vendor-advisory
- 24487 exploit
- USN-1721-1 vendor-advisory
- FEDORA-2013-2098 vendor-advisory
- 1028093 vdb-entry
- 89988 vdb-entry
- http://packetstormsecurity.com/files/120147/cURL-Buffer-Overflow.html
- http://blog.volema.com/curl-rce.html
- http://curl.haxx.se/docs/adv_20130206.html
- http://nakedsecurity.sophos.com/2013/02/10/anatomy-of-a-vulnerability-curl-web-download-toolkit-holed-by-authentication-bug/