# CVE-2021-28861: http.server: Open Redirection if the URL path starts with //

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.84%, higher than 87% of CVEs (2026-12-01)
- Published: 2022-08-23T00:00:00.000Z
- Modified: 2026-10-14T12:17:11.267Z
- Also known as: PSF-2022-5, BIT-LIBPYTHON-2021-28861, BIT-PYTHON-2021-28861, BIT-PYTHON-MIN-2021-28861
- Weaknesses: CWE-601
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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."

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- https://github.com/python/cpython: before 4dc2cae3abd75f386374d0635d00443b897d0672; before 5715382d3a89ca118ce2e224d8c69550d21fe51b; before 8a34afd55258c721e446d6de4a70353c39a24148; before defaa2b19a9a01c79c1d5641a8aa179bb10ead3f; before e2e8847bf52f4a81490653c6d13b7e3821b2c2be
- 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
- fedoraproject fedora: 35; 36; 37
- 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
- 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
- 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

## Every score

- CISA-ADP: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://bugs.python.org/issue43223> (advisory, issue-tracking, vendor-advisory)
- <https://github.com/python/cpython/pull/93879> (advisory, patch, third-party-advisory)
- <https://github.com/python/cpython/pull/24848> (advisory, 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)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2TRINJE3INWDVIHIABW4L2NP3RUSK7BJ/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WXF6MQ74HVIDDSR5AE2UDR24I6D4FEPC/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IFGV7P2PYFBMK32OKHCAC2ZPJQV5AUDF/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TZEPOPUFC42KXXSLFPZ47ZZRGPOR7SQE/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5OABQ5CMPQETJLFHROAXDIDXCMDTNVYG/> (vendor-advisory, web)
- <https://security.gentoo.org/glsa/202305-02> (vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html> (web)
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00024.html> (web)
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- <https://access.redhat.com/security/cve/CVE-2021-28861> (advisory)
- <https://github.com/python/cpython/issues/87389> (report)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-28861> (web)

## Sources

- CVE List: [CVE-2021-28861](https://www.cve.org/CVERecord?id=CVE-2021-28861), CVE Terms of Use, modified 2026-10-14
- Python Software Foundation: [PSF-2022-5](https://osv.dev/vulnerability/PSF-2022-5), CC-BY-4.0, modified 2025-10-09
- NVD: [CVE-2021-28861](https://nvd.nist.gov/vuln/detail/CVE-2021-28861), Public domain, modified 2026-10-14
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2021-28861](https://osv.dev/vulnerability/BIT-LIBPYTHON-2021-28861), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PYTHON-2021-28861](https://osv.dev/vulnerability/BIT-PYTHON-2021-28861), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2021-28861](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2021-28861), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-28861 · Whole record: https://cve.day/CVE-2021-28861.json · Rebuilt by cve.day 2026-11-25T22:58:07.766Z
