---
id: CVE-2022-27779
title: >-
  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
summary: >-
  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](h…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'
cwe:
  - CWE-201
vendor: haxx
product: curl
affected:
  - 'curl >= 7.82.0, < 7.83.1'
  - hci_bootstrap_os
  - clustered_data_ontap
  - 'solidfire,_enterprise_sds_&_hci_storage_node'
  - solidfire_&_hci_management_node
  - hci_compute_node
  - h410s_firmware
  - h700s_firmware
  - h500s_firmware
  - h300s_firmware
  - 'universal_forwarder >= 8.2.0, < 8.2.12'
  - 'universal_forwarder >= 9.0.0, < 9.0.6'
  - universal_forwarder = 9.1.0
patched:
  - curl 7.83.1
  - universal_forwarder 9.0.6
published: '2022-06-02'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T17:17:37.080'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-27779'
references:
  - url: 'https://hackerone.com/reports/1553301'
    label: support@hackerone.com
  - url: 'https://security.gentoo.org/glsa/202212-01'
    label: support@hackerone.com
  - url: 'https://security.netapp.com/advisory/ntap-20220609-0009/'
    label: support@hackerone.com
  - url: 'https://hackerone.com/reports/1553301'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.gentoo.org/glsa/202212-01'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20220609-0009/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-398330.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.02725
epssPercentile: 0.85777
ingestedAt: '2026-10-14T17:44:53.596Z'
---

## Overview

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

- `curl >= 7.82.0, < 7.83.1`
- `hci_bootstrap_os`
- `clustered_data_ontap`
- `solidfire,_enterprise_sds_&_hci_storage_node`
- `solidfire_&_hci_management_node`
- `hci_compute_node`
- `h410s_firmware`
- `h700s_firmware`
- `h500s_firmware`
- `h300s_firmware`
- `universal_forwarder >= 8.2.0, < 8.2.12`
- `universal_forwarder >= 9.0.0, < 9.0.6`
- `universal_forwarder = 9.1.0`

## Remediation

Upgrade past the affected range:

- `curl 7.83.1`
- `universal_forwarder 9.0.6`
