Description
Heap-based buffer overflow in the curl_easy_unescape function in lib/escape.c in cURL and libcurl 7.7 through 7.30.0 allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted string ending in a "%" (percent) character.
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.31.0-1 | — |
| Debian 13 | curl | 7.31.0-1 | — |
| Debian 12 | curl | 7.31.0-1 | — |
| Debian 7 | curl | 7.26.0-1+wheezy3 | DSA-2713-1 |
| Debian 6.0 | curl | 7.21.0-2.1+squeeze4 | DSA-2713-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 6 | curl +2 | 7.19.7-37.el6_4 | RHSA-2013:0983 |
| RHEL 5 | curl +1 | 7.15.5-17.el5_9 | RHSA-2013:0983 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | curl | 7.51.0-1.1 | openSUSE-SU-2024:10303-1 |
Advisories 4
- RHSA-2013:0983 Red Hat Security Advisory: curl security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-2713-1 curl - heap overflow Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10303-1 curl-7.51.0-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-1657 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/ovmbulletinjul2016-3090546.html
- http://www.oracle.com/technetwork/topics/security/cpujul2015-2367936.html
- openSUSE-SU-2013:1133 vendor-advisory
- RHSA-2013:0983 vendor-advisory
- https://github.com/bagder/curl/commit/192c4f788d48f82c03e9cef40013f34370e90737
- 60737 vdb-entry
- USN-1894-1 vendor-advisory
- DSA-2713 vendor-advisory
- http://curl.haxx.se/docs/adv_20130622.html