CVE-2022-0391: Input Validation

Published Apr 18, 2021
·
Updated

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 attacker to input a crafted URL, leading to injection attacks.

Other sources

Python could provide weaker than expected security, cause by a improper input validation by the urllib.parse module. By sending a specially-crafted request using \r and \n characters in the URL path. An attacker could exploit this vulnerability to perform injection attack or launch further attacks on the system.

IBM

Python urllib.parse does not sanitize URLs containing ASCII newline and tabs.

Reference: https://bugs.python.org/issue43882

Red Hat

Affected Software

40 affected componentsFixes available
redhat/python3<0:3.6.8-47.el8_6
0:3.6.8-47.el8_6
redhat/rh-python38-babel<0:2.7.0-12.el7
0:2.7.0-12.el7
redhat/rh-python38-python<0:3.8.11-2.el7
0:3.8.11-2.el7
redhat/rh-python38-python-cryptography<0:2.8-5.el7
0:2.8-5.el7
redhat/rh-python38-python-jinja2<0:2.10.3-6.el7
0:2.10.3-6.el7
redhat/rh-python38-python-lxml<0:4.4.1-7.el7
0:4.4.1-7.el7
redhat/rh-python38-python-pip<0:19.3.1-2.el7
0:19.3.1-2.el7
redhat/rh-python38-python-urllib3<0:1.25.7-7.el7
0:1.25.7-7.el7
redhat/python27-python<0:2.7.18-4.el7
0:2.7.18-4.el7
redhat/python<3.10.0
3.10.0
redhat/python<3.9.5
3.9.5
redhat/python<3.8.11
3.8.11
redhat/python<3.7.11
3.7.11
redhat/python<3.6.14
3.6.14
Python Python<3.6.14
Python Python>=3.7.0<3.7.11
Python Python>=3.8.0<3.8.11
Python Python>=3.9.0<3.9.5
Python Python=3.10.0-alpha1
Python Python=3.10.0-alpha2
Python Python=3.10.0-alpha3
Python Python=3.10.0-alpha4
Python Python=3.10.0-alpha5
Python Python=3.10.0-alpha6
NetApp Active Iq Unified Manager Vsphere
NetApp Hci
NetApp Management Services For Element Software
NetApp ONTAP Select Deploy administration utility
NetApp Solidfire\, Enterprise Sds \& Hci Storage Node
NetApp Hci Compute Node
Fedoraproject Fedora=34
Fedoraproject Fedora=35
Oracle HTTP Server=12.2.1.3.0
Oracle HTTP Server=12.2.1.4.0
Oracle ZFS Storage Appliance Kit=8.8
debian/pypy3<=7.3.5+dfsg-2+deb11u2
7.3.5+dfsg-2+deb11u47.3.11+dfsg-2+deb12u37.3.19+dfsg-2
debian/python2.7
2.7.18-8+deb11u1
debian/python3.9<=3.9.2-1
3.9.2-1+deb11u3
IBM Cognos Analytics 11.2.x<=IBM Cognos Analytics 11.2.x
IBM Cognos Analytics 11.1.x<=IBM Cognos Analytics 11.1.x

Event History

Apr 18, 2021
CVE Published
12:00 AM
Jan 27, 2022
Data Sourced
via Red Hat·06:02 PM
DescriptionSeverityAffected Software
Feb 9, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·11:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 15, 2024
Data Sourced
via Launchpad·12:45 PM
Description
Sep 13, 2024
Data Sourced
via Ubuntu·12:55 PM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-0391?

CVE-2022-0391 is a vulnerability in Python that allows characters like '\r' and '\n' in the URL path, resulting in weaker than expected security.

2

What is the severity of CVE-2022-0391?

CVE-2022-0391 has a severity score of 7.5 (High).

3

How does CVE-2022-0391 affect Python?

CVE-2022-0391 affects Python versions up to 3.10.0 and allows improper input validation in the urllib.parse module.

4

How can I fix CVE-2022-0391?

To fix CVE-2022-0391, upgrade to Python version 3.10.0 or apply the appropriate remedy provided by Red Hat.

5

Where can I find more information about CVE-2022-0391?

You can find more information about CVE-2022-0391 in the references provided: [link1], [link2].

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203