6.5medium
http.server: Open Redirection if the URL path starts with //
- Severity
- 6.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 2.84% (higher than 87% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- PSF-2022-5BIT-LIBPYTHON-2021-28861BIT-PYTHON-2021-28861BIT-PYTHON-MIN-2021-28861
Description
Python 3.x through 3.10 has an open redirection vulnerability in lib/http/server.py due to no protection against multiple (/) at the beginning of URI path which may leads to information disclosure. NOTE: this is disputed by a third party because the http.server.html documentation page states "Warning: http.server is not recommended for production. It only implements basic security checks."
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| https://github.com/python/cpython | before 4dc2cae3abd75f386374d0635d00443b897d0672, before 5715382d3a89ca118ce2e224d8c69550d21fe51b, before 8a34afd55258c721e446d6de4a70353c39a24148, before defaa2b19a9a01c79c1d5641a8aa179bb10ead3f, before e2e8847bf52f4a81490653c6d13b7e3821b2c2be | Python Software Foundation |
| python python | from 3.0.0 before 3.7.14, from 3.8.0 before 3.8.14, from 3.9.0 before 3.9.14, from 3.10.0 before 3.10.6, 3.11.0 | NVD |
| fedoraproject fedora | 35, 36, 37 | NVD |
| libpython (Bitnami) | from 3.0.0 before 3.7.14, from 3.8.0 before 3.8.14, from 3.9.0 before 3.9.14, from 3.10.0 before 3.10.6 | Bitnami Vulnerability Database |
| python (Bitnami) | from 3.0.0 before 3.7.14, from 3.8.0 before 3.8.14, from 3.9.0 before 3.9.14, from 3.10.0 before 3.10.6 | Bitnami Vulnerability Database |
| python-min (Bitnami) | from 3.0.0 before 3.7.14, from 3.8.0 before 3.8.14, from 3.9.0 before 3.9.14, from 3.10.0 before 3.10.6 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| NVD | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Python 3.x through 3.10 has an open redirection vulnerability in lib/http/server.py due to no protection against multiple (/) at the beginning of URI path which may leads to information disclosure. NOTE: this is disputed by a third party because the http.server.html documentation page states "Warning: http.server is not recommended for production. It only implements basic security checks."
NVD (es)
** EN DISPUTA ** Python versiones 3.x hasta la versión 3.10, presenta una vulnerabilidad de redireccionamiento abierto en el archivo lib/http/server.py debido a una falta de protección contra múltiples (/) al principio de la ruta URI que puede conllevar a una divulgación de información. NOTA: esto es discutido por un tercero porque la página de documentación http.server.html dice "Advertencia: http.server no se recomienda para producción. Sólo implementa controles de seguridad básicos".
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-28861 changed 2026-10-14 | CVE Terms of Use |
| Python Software Foundation | PSF-2022-5 changed 2025-10-09 | CC-BY-4.0 |
| NVD | CVE-2021-28861 changed 2026-10-14 | Public domain |
| Bitnami Vulnerability Database | BIT-LIBPYTHON-2021-28861 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PYTHON-2021-28861 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PYTHON-MIN-2021-28861 changed 2026-09-08 | Apache-2.0 |