Vulnerabilities · 2023 · Python
CVE-2023-32681
Python Requests vulnerability
Requests is a HTTP library. Since Requests 2.3.0, Requests has been leaking Proxy-Authorization headers to destination servers when redirected to an HTTPS endpoint. This is a product of how we use `rebuild_proxies` to reattach the `Proxy-Authorization` header to requests. For HTTP connections sent through the tunnel, the proxy will identify the header in the request itself and remove it prior to forwarding to the destination server. However when sent over HTTPS, the `Proxy-Authorization` header must be sent in the CONNECT request as the proxy has no visibility into the tunneled request. This results in Requests forwarding proxy credentials to the destination server unintentionally, allowing a malicious actor to potentially exfiltrate sensitive information. This issue has been patched in version 2.31.0.
Affected products
Requests, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python Requests runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/psf/requests/security/advisories/GHSA-j8r2-6x86-q33q · Vendor Advisory
- github.com/psf/requests/commit/74ea7cf7a6a27a4eeb2ae24e162bcc942a6706d5 · Patch
- lists.fedoraproject.org/archives/list/[email protected]/message/AW7 · Third Party Advisory
- github.com/psf/requests/releases/tag/v2.31.0
- lists.debian.org/debian-lts-announce/2023/06/msg00018.html
- lists.fedoraproject.org/archives/list/[email protected]/message/KOY
- security.gentoo.org/glsa/202309-08
- nvd.nist.gov/vuln/detail/CVE-2023-32681
- nvd.nist.gov/vuln/detail/CVE-2023-32681
- cve.org/CVERecord?id=CVE-2023-32681
More vulnerabilities in Python products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.