CVE-2021-28861 Details
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."
A vulnerability allowing open redirection has been identified in Python versions 3.x through 3.10, as well as in PyPy3 prior to 7.3.9_p9. The issue arises in the HTTP server module, specifically in 'lib/http/server.py', where the server fails to properly handle multiple leading slashes in the URI path. This oversight can lead to information disclosure by redirecting users to unintended locations. The vulnerability is particularly exploitable when the server is configured to serve a directory that contains sensitive files, such as the '.ssh' directory.
Users can upgrade to Python versions 3.8.15_p3, 3.9.15_p3, 3.10.8_p3, 3.11.0_p2, or 3.12.0_alpha1_p2. For PyPy3 users, version 7.3.9_p9 should be installed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 17, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | [email protected] |
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| python python | >= 3.0.0, < 3.7.14 >= 3.8.0, < 3.8.14 >= 3.9.0, < 3.9.14 >= 3.10.0, < 3.10.6 3.11.0 alpha1 3.11.0 alpha2 3.11.0 alpha3 3.11.0 alpha4 3.11.0 alpha5 3.11.0 alpha6 3.11.0 alpha7 3.11.0 beta1 3.11.0 beta2 3.11.0 beta3 |
CPE
Remediation
| |
| fedoraproject fedora | 35 36 37 |
CPE
Remediation
| |
Change History
29 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 14, 2026 | CVE Modified | [email protected] |
| Oct 14, 2026 | CVE Modified | CVE |
| Oct 14, 2026 | CVE Modified | siemens-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 17, 2025 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Nov 21, 2024 | CVE Modified | CVE |
| Aug 3, 2024 | CVE Modified | [email protected] |
| May 17, 2024 | CVE Modified | [email protected] |
| May 14, 2024 | CVE Modified | [email protected] |
| Apr 11, 2024 | CVE Modified | [email protected] |
| Mar 21, 2024 | CVE Modified | [email protected] |
| Nov 7, 2023 | CVE Modified | [email protected] |
| May 3, 2023 | CVE Modified | [email protected] |
| Dec 9, 2022 | Modified Analysis | [email protected] |
| Nov 14, 2022 | CVE Modified | [email protected] |
| Nov 9, 2022 | CVE Modified | [email protected] |
| Oct 28, 2022 | CVE Modified | [email protected] |
| Oct 28, 2022 | CVE Modified | [email protected] |
| Oct 24, 2022 | CVE Modified | [email protected] |
| Oct 20, 2022 | CVE Modified | [email protected] |
| Oct 20, 2022 | CVE Modified | [email protected] |
| Oct 4, 2022 | Modified Analysis | [email protected] |
| Oct 1, 2022 | CVE Modified | [email protected] |
| Sep 27, 2022 | CVE Modified | [email protected] |
| Sep 22, 2022 | CVE Modified | [email protected] |
| Aug 25, 2022 | CVE Modified | [email protected] |
| Aug 24, 2022 | Initial Analysis | [email protected] |