CVE-2022-27779: Medium severity haxx curl vulnerability
libcurl wrongly allows cookies to be set for Top Level Domains (TLDs) if thehost name is provided with a trailing dot.curl can be told to receive and send cookies. curl's "cookie engine" can bebuilt with or without Public Suffix Listawareness. If PSL support not provided a more rudimentary check exists to atleast prevent cookies from being set on TLDs. This check was broken if thehost name in the URL uses a trailing dot.This can allow arbitrary sites to set cookies that then would get sent to adifferent and unrelated site or domain.
Other sources
libcurl wrongly allows cookies to be set for Top Level Domains (TLDs) if thehost name is provided with a trailing dot.curl can be told to receive and send cookies. curl's "cookie engine" can bebuilt with or without Public Suffix Listawareness. If PSL support not provided, a more rudimentary check exists to atleast prevent cookies from being set on TLDs. This check was broken if thehost name in the URL uses a trailing dot.This can allow arbitrary sites to set cookies that then would get sent to adifferent and unrelated site or domain.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/curlto a version that resolves this vulnerability.Fixed in 7.88.1-10+deb12u15Fixed in 7.88.1-10+deb12u5Fixed in 8.14.1-2+deb13u5Fixed in 8.14.1-2+deb13u7Fixed in 8.22.0-1Fixed in 8.23.0-1 - Upgrade
Upgrade
alpine/curlto a version that resolves this vulnerability.Fixed in 7.83.1-r0 - Upgrade
Upgrade
debian/curlto a version that resolves this vulnerability.Fixed in 7.83.1-1
Event History
Frequently Asked Questions
What is CVE-2022-27779?
CVE-2022-27779 is a vulnerability in libcurl that allows cookies to be set for Top Level Domains (TLDs) if the host name is provided with a trailing dot.
What is the severity of CVE-2022-27779?
CVE-2022-27779 has a severity rating of 5.3 (medium).
Which software is affected by CVE-2022-27779?
The software affected by CVE-2022-27779 includes Haxx Curl version 7.82.0 to 7.83.1.
How can I fix CVE-2022-27779?
To fix CVE-2022-27779, upgrade to a version of Haxx Curl that is not vulnerable.
Where can I find more information about CVE-2022-27779?
You can find more information about CVE-2022-27779 in the following references: [HackerOne](https://hackerone.com/reports/1553301), [Gentoo Security](https://security.gentoo.org/glsa/202212-01), [NetApp Security Advisory](https://security.netapp.com/advisory/ntap-20220609-0009/)