CVE Catalog

CVE-2022-27779

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

High risk
2.79%

86th percentile - higher than 86% of all known CVEs

Summary

libcurl wrongly allows cookies to be set for Top Level Domains (TLDs) if the host name is provided with a trailing dot. The built-in rudimentary check fails in this case when Public Suffix List support is not available. As a result, arbitrary sites can set cookies that would then be sent to a different and unrelated site or domain.

Risk Assessment

An attacker could exploit this to set cookies for top-level domains, potentially leading to session data leakage or violation of isolation between sites. This may result in session hijacking or other cross-site attacks.

Recommendation

Update libcurl to a version containing the fix for this vulnerability. If possible, enable Public Suffix List support in curl's cookie engine.

Other vulnerabilities in libcurl

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS