REDHAT-BUG-2529207: Low severity curl libcurl vulnerability
When libpsl support is enabled, libcurl fails to enforce the Public Suffix List boundary check when processing a Set-Cookie header where the Domain attribute explicitly matches an origin host that is itself a public suffix (e.g., Domain=co.uk set by co.uk).
Instead of coercing it into a strict host-only cookie, libcurl saves the cookie with wildcard domain scope (.co.uk). Consequently, the cookie is inappropriately included in subsequent outbound requests or HTTP redirects to arbitrary sibling subdomains under the same public suffix (e.g., attacker.co.uk).
Affected Software
Event History
Frequently Asked Questions
Which deployments are affected?
Deployments using libcurl with libpsl support enabled are affected when processing a Set-Cookie header from an origin host that is itself a public suffix and whose Domain attribute explicitly matches that host.
What conditions are required for the cookie to be sent beyond its origin host?
The affected cookie must be saved with wildcard domain scope, such as .co.uk. It can then be included in later requests or HTTP redirects to sibling subdomains under that public suffix, such as attacker.co.uk.
How can I identify whether this behavior occurred?
Inspect libcurl's stored cookies after receiving a Set-Cookie header with a Domain value matching a public-suffix origin. Affected handling saves the cookie with a wildcard domain scope, for example .co.uk, rather than as a strict host-only cookie.