Description
The tailMatch function in cookie.c in cURL and libcurl before 7.30.0 does not properly match the path domain when sending cookies, which allows remote attackers to steal cookies via a matching suffix in the domain of a URL.
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-2.1 | — |
| Debian 13 | curl | 7.29.0-2.1 | — |
| Debian 12 | curl | 7.29.0-2.1 | — |
| Debian 6.0 | curl | 7.21.0-2.1+squeeze3 | DSA-2660-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 6 | curl +2 | 7.19.7-36.el6_4 | RHSA-2013:0771 |
| RHEL 5 | curl +1 | 7.15.5-16.el5_9 | RHSA-2013:0771 |
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:0771 Red Hat Security Advisory: curl security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-2660-1 curl - cookie leak vulnerability 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-1658 cURL: Schwachstelle ermöglicht Offenlegung von Informationen BSI CERT-Bund (WID) · Jul 4, 2023
References
- http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.html
- MDVSA-2013:151 vendor-advisory
- 92316 vdb-entry
- DSA-2660 vendor-advisory
- FEDORA-2013-6766 vendor-advisory
- USN-1801-1 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=950577
- FEDORA-2013-6780 vendor-advisory
- FEDORA-2013-5618 vendor-advisory
- FEDORA-2013-5598 vendor-advisory
- APPLE-SA-2013-10-22-3 vendor-advisory
- http://curl.haxx.se/docs/adv_20130412.html
- openSUSE-SU-2013:0879 vendor-advisory
- https://wiki.mageia.org/en/Support/Advisories/MGASA-2013-0121
- 59058 vdb-entry
- 53044 third-party-advisory
- RHSA-2013:0771 vendor-advisory
- 53051 third-party-advisory
- FEDORA-2013-7813 vendor-advisory
- FEDORA-2013-7797 vendor-advisory
- 53097 third-party-advisory
- openSUSE-SU-2013:0876 vendor-advisory
- https://github.com/bagder/curl/commit/2eb8dcf26cb37f09cffe26909a646e702dbcab66