Vulnerability · Published Jun 1, 2022 · Assigned by hackerone
CVE-2022-27779
Medium 5.3
In plain English
A medium-severity security flaw in https://github.com/curl/curl. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.8% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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 List](https://publicsuffix.org/)awareness. 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | curl | 7.83.1-r0 | ALPINE-CVE-2022-27779 |
| Alpine:v3.21 | curl | 7.83.1-r0 | ALPINE-CVE-2022-27779 |
| Alpine:v3.22 | curl | 7.83.1-r0 | ALPINE-CVE-2022-27779 |
| Alpine:v3.23 | curl | 7.83.1-r0 | ALPINE-CVE-2022-27779 |
| Alpine:v3.24 | curl | 7.83.1-r0 | ALPINE-CVE-2022-27779 |
| Debian:12 | curl | 7.83.1-1 | DEBIAN-CVE-2022-27779 |
| Debian:13 | curl | 7.83.1-1 | DEBIAN-CVE-2022-27779 |
| Debian:14 | curl | 7.83.1-1 | DEBIAN-CVE-2022-27779 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/curl/curl | Fixed in 7.83.1 |
Weakness: CWE-201