CVE-2022-27779

MEDIUM

curl 7.82.0-7.83.0 - Cookie Injection for Top-Level Domains via Trailing Dot Bypass

Title source: llm
STIX 2.1

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.

References (3)

Core 3
Core References
Third Party Advisory vendor-advisory
https://security.gentoo.org/glsa/202212-01
Exploit, Third Party Advisory
https://hackerone.com/reports/1553301

Scores

CVSS v3 5.3
EPSS 0.0024
EPSS Percentile 47.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Details

CWE
CWE-201
Status published
Products (12)
haxx/curl 7.82.0 - 7.83.1
netapp/clustered_data_ontap
netapp/h300s_firmware
netapp/h410s_firmware
netapp/h500s_firmware
netapp/h700s_firmware
netapp/hci_bootstrap_os
netapp/hci_compute_node
netapp/solidfire\,_enterprise_sds_\&_hci_storage_node
netapp/solidfire_\&_hci_management_node
... and 2 more
Published Jun 02, 2022
Tracked Since Feb 18, 2026