CVE-2021-41945
9.1critical
Improper Input Validation in httpx
- Severity
- 9.1critical CVSS:3.1 by NVD
- Exploit likelihood
- 2.12% (higher than 82% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-h8pj-cxx2-jfg2PYSEC-2022-183
Description
Encode OSS httpx < 0.23.0 is affected by improper input validation in `httpx.URL`, `httpx.Client` and some functions using `httpx.URL.copy_with`.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| httpx (PyPI) | before 0.23.0, before 0.20.0 | GitHub Advisory Database, PyPA Advisory Database |
| encode httpx | before 0.23.0 | NVD |
All scores
| GitHub | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| NVD | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | 6.4medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:N |
Classification
What each source says
CVE List
Encode OSS httpx < 0.23.0 is affected by improper input validation in `httpx.URL`, `httpx.Client` and some functions using `httpx.URL.copy_with`.
GitHub Advisory Database
Encode OSS httpx <=1.0.0.beta0 is affected by improper input validation in httpx.URL, httpx.Client and some functions using httpx.URL.copy_with.
NVD (es)
Encode OSS httpx anterior a la versión 0.23.0 se ve afectado por una validación de entrada inadecuada en `httpx.URL`, `httpx.Client` y algunas funciones que utilizan `httpx.URL.copy_with`.
References
| https://gist.github.com/lebr0nli/4edb76bbd3b5ff993cf44f2fbce5e571 | exploit, third-party-advisory, web | |
| https://github.com/encode/httpx | package, product, third-party-advisory, web | |
| https://github.com/encode/httpx/discussions/1831 | exploit, issue-tracking, third-party-advisory, web | |
| https://github.com/encode/httpx/issues/2184 | exploit, issue-tracking, report, third-party-advisory, web | |
| https://github.com/encode/httpx/releases/tag/0.23.0 | release-notes, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-41945 | advisory | |
| https://github.com/encode/httpx/pull/2185 | web | |
| https://github.com/encode/httpx/pull/2185/commits/e3c495a32c63d8aa7f1bcf3b7b27ee1a0ff428e1 | web | |
| https://github.com/encode/httpx/commit/e9b0c85dd4f4e4469c57c4b38e5101fd12081b5c | web | |
| https://github.com/advisories/GHSA-h8pj-cxx2-jfg2 | advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/httpx/PYSEC-2022-183.yaml | web | |
| http://encode.com | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41945 changed 2026-07-09 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-h8pj-cxx2-jfg2 changed 2025-02-13 | CC-BY-4.0 |
| NVD | CVE-2021-41945 changed 2026-07-09 | Public domain |
| PyPA Advisory Database | PYSEC-2022-183 changed 2023-11-08 | CC-BY-4.0 |