curl: libcurl wrongly allows cookies to be set for Top Level Domains (TLDs) if thehost name is provided with a trailing dot...
CVE-2022-27779 is fixed in 10 products on 1 platform, first by DEBIAN-CVE-2022-27779, released June 2, 2022. It is not reported as exploited. Patch Radar priority: Routine.
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.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| curl · Debian 12.15 (bookworm) | 7.83.1-1 | DEBIAN-CVE-2022-27779 | Jun 2, 2022 |
| curl · Debian 13.5 (trixie) | 7.83.1-1 | DEBIAN-CVE-2022-27779 | Jun 2, 2022 |
| curl · Debian 14 | 7.83.1-1 | DEBIAN-CVE-2022-27779 | Jun 2, 2022 |
| curl · amzn 2023 | 7.87.0-2.amzn2023.0.2 | ALAS2023-2023-083 | Feb 17, 2023 |
| curl-debuginfo · amzn 2023 | 7.87.0-2.amzn2023.0.2 | ALAS2023-2023-083 | Feb 17, 2023 |
| curl-debugsource · amzn 2023 | 7.87.0-2.amzn2023.0.2 | ALAS2023-2023-083 | Feb 17, 2023 |
| curl-minimal · amzn 2023 | 7.87.0-2.amzn2023.0.2 | ALAS2023-2023-083 | Feb 17, 2023 |
| curl-minimal-debuginfo · amzn 2023 | 7.87.0-2.amzn2023.0.2 | ALAS2023-2023-083 | Feb 17, 2023 |
| libcurl · amzn 2023 | 7.87.0-2.amzn2023.0.2 | ALAS2023-2023-083 | Feb 17, 2023 |
| libcurl-debuginfo · amzn 2023 | 7.87.0-2.amzn2023.0.2 | ALAS2023-2023-083 | Feb 17, 2023 |
| libcurl-devel · amzn 2023 | 7.87.0-2.amzn2023.0.2 | ALAS2023-2023-083 | Feb 17, 2023 |
| libcurl-minimal · amzn 2023 | 7.87.0-2.amzn2023.0.2 | ALAS2023-2023-083 | Feb 17, 2023 |
| libcurl-minimal-debuginfo · amzn 2023 | 7.87.0-2.amzn2023.0.2 | ALAS2023-2023-083 | Feb 17, 2023 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.