CVE-2022-27779 Other in https://github.com/curl/curl

Medium 5.3 Published Updated

Attackers can set cookies for top-level domains via trailing dots, allowing cookie theft or session hijacking across unrelated sites.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-27779?

CVE-2022-27779 is a medium-severity vulnerability in Haxx Curl, published on 1 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-201

Which versions are affected by CVE-2022-27779?

It affects 11 products.

Products include Haxx Curl, Netapp Clustered Data Ontap, Netapp H300s Firmware, Netapp H410s Firmware, Netapp H500s Firmware, Netapp H700s Firmware and 5 more.

How do I fix CVE-2022-27779?

Upgrade to a fixed version.

Is CVE-2022-27779 being exploited?

There is no known exploitation of CVE-2022-27779 in the wild and no public exploit code.

All Haxx Curl vulnerabilities

Sources

Also known as ALPINE-CVE-2022-27779, AZL-9908, CLEANSTART-2026-UF88826, CURL-CVE-2022-27779, DEBIAN-CVE-2022-27779, GHSA-r5c3-3mf2-x8c7.

Is CVE-2022-27779 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free