{"id":"CVE-2022-27779","details":"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.","aliases":["CURL-CVE-2022-27779"],"modified":"2026-08-12T03:51:21.269794293Z","published":"2022-06-01T00:00:00Z","related":["openSUSE-SU-2024:12062-1"],"database_specific":{"cna_assigner":"hackerone","cwe_ids":["CWE-201"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/27xxx/CVE-2022-27779.json","unresolved_ranges":[{"extracted_events":[{"introduced":"Fixed in 7.83.1"},{"last_affected":"Fixed in 7.83.1"}],"source":"AFFECTED_FIELD"}]},"references":[{"type":"WEB","url":"https://hackerone.com/reports/1553301"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/27xxx/CVE-2022-27779.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-27779"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202212-01"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20220609-0009/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/curl/curl","events":[{"introduced":"64db5c575d9c5536bd273a890f50777ad1ca7c13"},{"fixed":"462196e6b4a47f924293a0e26b8e9c23d37ac26f"}],"database_specific":{"extracted_events":[{"introduced":"7.82.0"},{"fixed":"7.83.1"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:*"}}],"versions":["curl-7_83_0","curl-7_82_0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-27779.json"}}],"schema_version":"1.9.0"}