Skip to content
OpenAdvisories
Unscored CVE-2022-27779 EUVD-2022-32274GHSA-r5c3-3mf2-x8c7

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 r…

Published Jun 1, 2022 · Updated Nov 2, 2026 · 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.

Affected products

VendorProductAffectedFixed
— https://github.com/curl/curl Fixed in 7.83.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 curl 7.83.1-1 —
Debian 13 curl 7.83.1-1 —
Debian 12 curl 7.83.1-1 —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed curl 7.83.1-1.1 openSUSE-SU-2024:12062-1
ReleasePackageFixed inAdvisory
Alpine v3.24 curl 7.83.1-r0 —
Alpine v3.23 curl 7.83.1-r0 —
Alpine v3.22 curl 7.83.1-r0 —
Alpine v3.21 curl 7.83.1-r0 —
Alpine v3.20 curl 7.83.1-r0 —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 curl 7.83.1-r0 —
Alpine v3.18 curl 7.83.1-r0 —
Alpine v3.17 curl 7.83.1-r0 —
Alpine v3.16 curl 7.83.1-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 curl +4 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) curl 7.83.1-1 —

Advisories 8

References