PT-2023-4571 · Python+11 · Python+11
Yebo Cao
·
Published
2023-02-17
·
Updated
2025-11-07
·
CVE-2023-24329
CVSS v2.0
7.8
High
| Vector | AV:N/AC:L/Au:N/C:N/I:C/A:N |
Name of the Vulnerable Software and Affected Versions
Python versions prior to 3.11.4
Description
A critical issue in the urllib.parse component of Python allows attackers to bypass blocklisting methods by supplying a URL that starts with blank characters, enabling domain filter bypass, file reads, and command execution. This flaw could be exploited to bypass security restrictions, potentially leading to arbitrary file reads and command execution. The estimated number of potentially affected devices worldwide is not specified. There is no information about real-world incidents where this issue was exploited.
Recommendations
For Python versions prior to 3.11.4, update to version 3.11.4 or later to resolve the issue. As a temporary workaround, consider using the
strip() function before parsing URLs to remove leading blank characters. Restrict access to the vulnerable urllib.parse component to minimize the risk of exploitation. Avoid using URLs that start with blank characters in the affected API endpoints until the issue is resolved.Exploit
Fix
RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Ibm Aix
Linuxmint
Python
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu