# CVE-2022-27779: cookie for trailing dot TLD

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.79%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-05-11T08:00:00.000Z
- Modified: 2026-11-02T19:17:48.440Z
- Also known as: CURL-CVE-2022-27779
- Weaknesses: CWE-201
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: hackerone

## 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.

(As written by CVE List.)

## Affected

- https://github.com/curl/curl: Fixed in 7.83.1
- https://github.com/curl/curl.git: from 7.82.0 before 7.83.1; from b27ad8e1d3e68eb3214fcbb398ca436873aa7c67 before 7e92d12b4e6911f424678a133b19de670e183a59
- haxx curl: from 7.82.0 before 7.83.1
- netapp hci_bootstrap_os: no versions given
- netapp clustered_data_ontap: no versions given
- netapp solidfire,_enterprise_sds_&_hci_storage_node: no versions given
- netapp solidfire_&_hci_management_node: no versions given
- netapp hci_compute_node: no versions given
- netapp h410s_firmware: no versions given
- netapp h700s_firmware: no versions given
- netapp h500s_firmware: no versions given
- netapp h300s_firmware: no versions given
- splunk universal_forwarder: from 8.2.0 before 8.2.12; from 9.0.0 before 9.0.6; 9.1.0

## Every score

- curl: rating Medium
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://hackerone.com/reports/1553301> (exploit, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20220609-0009/> (third-party-advisory)
- <https://security.gentoo.org/glsa/202212-01> (third-party-advisory, vendor-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>

## Sources

- CVE List: [CVE-2022-27779](https://www.cve.org/CVERecord?id=CVE-2022-27779), CVE Terms of Use, modified 2026-11-02
- curl: [CURL-CVE-2022-27779](https://osv.dev/vulnerability/CURL-CVE-2022-27779), MIT, modified 2026-10-25
- NVD: [CVE-2022-27779](https://nvd.nist.gov/vuln/detail/CVE-2022-27779), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2022-27779 · Whole record: https://cve.day/CVE-2022-27779.json · Rebuilt by cve.day 2026-11-25T22:58:12.041Z
