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.

Severity (CVSS NVD)5.3Medium
Exploit odds (30 days)2.8%top 13.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.20curl7.83.1-r0ALPINE-CVE-2022-27779
Alpine:v3.21curl7.83.1-r0ALPINE-CVE-2022-27779
Alpine:v3.22curl7.83.1-r0ALPINE-CVE-2022-27779
Alpine:v3.23curl7.83.1-r0ALPINE-CVE-2022-27779
Alpine:v3.24curl7.83.1-r0ALPINE-CVE-2022-27779
Debian:12curl7.83.1-1DEBIAN-CVE-2022-27779
Debian:13curl7.83.1-1DEBIAN-CVE-2022-27779
Debian:14curl7.83.1-1DEBIAN-CVE-2022-27779

Affected products (as reported)

VendorProductVersions
n/a https://github.com/curl/curl Fixed in 7.83.1

Weakness: CWE-201

References