CVE-2022-27779

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-27779
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-27779.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-27779
Aliases
Downstream
Related
Published
2022-06-02T14:15:44Z
Modified
2025-10-21T07:02:06.720003Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
[none]
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 Listawareness. 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.

References

Affected packages

Git / github.com/curl/curl

Affected ranges

Type
GIT
Repo
https://github.com/curl/curl
Events

Affected versions

Other

curl-7_82_0
curl-7_83_0