Vulnerability advisory
CVE-2022-31043
Fix failure to strip Authorization header on HTTP downgrade in Guzzle
Also known as BIT-drupal-2022-31042BIT-drupal-2022-31043CVE-2022-31042DRUPAL-CORE-2022-011GHSA-f2wf-25xc-69c9GHSA-w248-ffj2-4v5q
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/drupal/drupal ↗ | |
| 943ecef3c0bc9822338252a7df6419aeb9253c9d to before 3428eb70b1bdc73e804a7c8888002e95a26f9bdd | 3428eb70b1bdc73e804a7c8888002e95a26f9bdd |
| 698ee686c23de8c97d7e0601cf745b220d54f4e1 to before 8aa96cad6c076e0a6bd98671997a3ba3e198f99d | 8aa96cad6c076e0a6bd98671997a3ba3e198f99d |
| 40027dbb751a02b9e8812344cc54f4e9b9aa84eb through 6affc053d61ab4b1a54582eca67f29de95e3bbc8 | No fix listed |
| GIT github.com/guzzle/guzzle ↗ | |
| All commits before 724562fa861e21a4071c652c8a159934e4f05592 | 724562fa861e21a4071c652c8a159934e4f05592 |
| 414c24961042f6616fb43e23fa69a785f9fc053e to before e3ff079b22820c2029d4c2a87796b6a0b8716ad8 | e3ff079b22820c2029d4c2a87796b6a0b8716ad8 |
Also listed as affected (150)
| |
Description
Guzzle is an open source PHP HTTP client. In affected versions Authorization headers on requests are sensitive information. On making a request using the https scheme to a server which responds with a redirect to a URI with the http scheme, we should not forward the Authorization header on. This is much the same as to how we don't forward on the header if the host changes. Prior to this fix, https to http downgrades did not result in the Authorization header being removed, only changes to the host. Affected Guzzle 7 users should upgrade to Guzzle 7.4.4 as soon as possible. Affected users using any earlier series of Guzzle should upgrade to Guzzle 6.5.7 or 7.4.4. Users unable to upgrade may consider an alternative approach which would be to use their own redirect middleware. Alternately users may simply disable redirects all together if redirects are not expected or required.
References
- Webwww.drupal.org/sa-core-2022-011 ↗
- Webwww.rfc-editor.org/rfc/rfc9110.html#name-redirection-3xx ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31043.json ↗
- Advisorygithub.com/guzzle/guzzle/security/advisories/GHSA-w248-ffj2-4v5q ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-31043 ↗
- Advisorywww.debian.org/security/2022/dsa-5246 ↗
- Fixgithub.com/guzzle/guzzle/commit/e3ff079b22820c2029d4c2a87796b6a0b8716ad8 ↗