CVE-2022-29248

NameCVE-2022-29248
DescriptionGuzzle is a PHP HTTP client. Guzzle prior to versions 6.5.6 and 7.4.3 contains a vulnerability with the cookie middleware. The vulnerability is that it is not checked if the cookie domain equals the domain of the server which sets the cookie via the Set-Cookie header, allowing a malicious server to set cookies for unrelated domains. The cookie middleware is disabled by default, so most library consumers will not be affected by this issue. Only those who manually add the cookie middleware to the handler stack or construct the client with ['cookies' => true] are affected. Moreover, those who do not use the same Guzzle client to call multiple domains and have disabled redirect forwarding are not affected by this vulnerability. Guzzle versions 6.5.6 and 7.4.3 contain a patch for this issue. As a workaround, turn off the cookie middleware.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub advisories/code/issues, web search, more)
ReferencesDSA-5246-1
Debian Bugs1011636

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
guzzle (PTS)bookworm, sid7.4.5-1fixed
mediawiki (PTS)buster1:1.31.16-1+deb10u2fixed
buster (security)1:1.31.16-1+deb10u4fixed
bullseye1:1.35.4-1+deb11u2vulnerable
bullseye (security)1:1.35.8-1~deb11u1fixed
bookworm, sid1:1.35.8-1.1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
guzzlesource(unstable)7.4.4-11011636
mediawikisourcebuster(not affected)
mediawikisourcebullseye1:1.35.8-1~deb11u1DSA-5246-1
mediawikisource(unstable)1:1.35.7-1

Notes

[buster] - mediawiki <not-affected> (Embedded Guzzle copy not present)
https://github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3
https://phabricator.wikimedia.org/T308473
https://gerrit.wikimedia.org/r/c/mediawiki/core/+/807225/
https://lists.wikimedia.org/hyperkitty/list/wikitech-l@lists.wikimedia.org/thread/PIPYDRSHXOYW5DB7X755QDNUV5EZWPWB/

Search for package or bug name: Reporting problems