CVE-2021-28861
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
https://github.com/python/cpythonbefore 4dc2cae3abd75f386374d0635d00443b897d0672, before 5715382d3a89ca118ce2e224d8c69550d21fe51b, before 8a34afd55258c721e446d6de4a70353c39a24148, before defaa2b19a9a01c79c1d5641a8aa179bb10ead3f, before e2e8847bf52f4a81490653c6d13b7e3821b2c2bePython Software Foundation
python pythonfrom 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.0NVD
fedoraproject fedora35, 36, 37NVD
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.6Bitnami 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.6Bitnami 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.6Bitnami Vulnerability Database

All scores

CISA-ADP6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
NVD7.4high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-601

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

https://bugs.python.org/issue43223advisory, issue-tracking, vendor-advisory
https://github.com/python/cpython/pull/93879advisory, patch, third-party-advisory
https://github.com/python/cpython/pull/24848advisory, patch, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OKYE2DOI2X7WZXAWTQJZAXYIWM37HDCY/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5LTSPFIULY2GZJN3QYNFVM4JSU6H4D6J/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S7G66SRWUM36ENQ3X6LAIG7HAB27D4XJ/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DISZAFSIQ7IAPAEQTC7G2Z5QUA2V2PSW/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QLE5INSVJUZJGY5OJXV6JREXWD7UDHYN/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HPX4XHT2FGVQYLY2STT2MRVENILNZTTU/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X46T4EFTIBXZRYTGASBDEZGYJINH2OWV/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KRGKPYA5YHIXQAMRIXO5DSCX7D4UUW4Q/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I3MQT5ZE3QH5PVDJMERTBOCILHK35CBE/vendor-advisory, web

Sources

SourceRecordLicence
CVE ListCVE-2021-28861 changed 2026-10-14CVE Terms of Use
Python Software FoundationPSF-2022-5 changed 2025-10-09CC-BY-4.0
NVDCVE-2021-28861 changed 2026-10-14Public domain
Bitnami Vulnerability DatabaseBIT-LIBPYTHON-2021-28861 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-2021-28861 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-MIN-2021-28861 changed 2026-09-08Apache-2.0