
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-28861 affects Python versions 3.x through 3.10, specifically in the lib/http/server.py module. The vulnerability is an open redirection flaw due to no protection against multiple forward slashes (/) at the beginning of URI paths, which could lead to information disclosure. This issue is disputed as the http.server.html documentation explicitly states that the server is not recommended for production use and only implements basic security checks (NVD).
The vulnerability exists in Python's SimpleHTTPServer module where there is no validation for multiple forward slashes at the beginning of a URL path. When a URL contains multiple leading slashes (e.g., //attacker.com/path), the server's redirect mechanism can be exploited to cause an open redirect. The issue has a CVSS v3.1 Base Score of 7.4 (HIGH) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N (NVD).
If exploited, this vulnerability could allow an attacker to craft malformed URIs that trigger open redirections to arbitrary domains. This could potentially lead to information disclosure or phishing attacks by redirecting users to malicious websites (Python Issue).
The vulnerability has been patched in various Python versions. The fix involves implementing proper validation of URL paths to prevent multiple leading slashes from causing unintended redirections. Users should upgrade to patched versions: Python 3.9.14+, 3.10.8+, or newer releases. As a general security practice, it's recommended not to use http.server in production environments as stated in the documentation (Python PR).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."