CVE Catalog

CVE-2022-0391

High
Published: Translated: NVD NIST

Summary

A flaw was found in Python's urllib.parse module where the urlparse method does not sanitize input, allowing characters like ' ' and ' ' in the URL path. This can lead to CRLF injection attacks.

Risk Assessment

An attacker can exploit this vulnerability to inject malicious HTTP headers or manipulate server responses, potentially leading to session hijacking, user redirection, or other injection attacks.

Recommendation

Update Python to a patched version (e.g., Python 3.10.3 or later) immediately. As a workaround, manually sanitize input before passing it to urlparse.

Other vulnerabilities in Python

See all
Original NVD description (English source)

A flaw was found in Python, specifically within the urllib.parse module. This module helps break Uniform Resource Locator (URL) strings into components. The issue involves how the urlparse method does not sanitize input and allows characters like '\r' and '\n' in the URL path. This flaw allows an at

Vulnerability data from NVD (NIST) · CISA KEV · EPSS