python: Improper Neutralization of Special Elements in Output Used by a Downstream Component
CVE-2022-0391 is a high-severity improper neutralization of special elements in output used by a downstream component vulnerability in python, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. There is no confirmed exploitation so far. EPSS estimates a 8.54% chance of exploitation within 30 days, which is in the top 4.86% of all scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update SIMATIC S7-1500 CPU 1518-4 PN/DP MFP to V3.1.5 or a later version.
- Update SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP to V3.1.5 or a later version.
- Update SIPLUS S7-1500 CPU 1518-4 PN/DP MFP to V3.1.5 or a later version.
- Read the advisory on bugs.python.org for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Python | python | Not specified in the record | Not stated |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 up to, but not including, V3.1.5 | V3.1.5 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.0 up to, but not including, V3.1.5 | V3.1.5 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 up to, but not including, V3.1.5 | V3.1.5 |
| NetApp | Active Iq Unified Manager | Not specified in the record | Not stated |
| NetApp | Hci | Not specified in the record | Not stated |
| NetApp | Management Services For Element Software | Not specified in the record | Not stated |
| NetApp | Ontap Select Deploy Administration Utility | Not specified in the record | Not stated |
| NetApp | Solidfire, Enterprise Sds & Hci Storage Node | Not specified in the record | Not stated |
| NetApp | Hci Compute Node | Not specified in the record | Not stated |
| Fedora Project | Fedora | 34; 35 | Not stated |
| Oracle | HTTP Server | 12.2.1.3.0; 12.2.1.4.0 | Not stated |
| Oracle | Zfs Storage Appliance Kit | 8.8 | Not stated |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- NoneNo data is disclosed.
- Integrity
- HighData or code can be modified at will.
- Availability
- NoneAvailability is not affected.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.5 | High | NVD |
| CVSS 3.1 | 7.5 | High | CISA (ADP) |
| CVSS 2.0 | 5.0 | Medium | NVD |
Official description
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. This flaw affects Python versions prior to 3.10.0b1, 3.9.5, 3.8.11, 3.7.11 and 3.6.14.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Neutralization of Special Elements in Output Used by a Downstream Component
The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
How developers prevent this class of flaw
- Programming languages and supporting technologies might be chosen which are not subject to these issues.
- Utilize an appropriate mix of allowlist and denylist parsing to filter control-plane syntax from all input.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- bugs.python.org/issue43882Exploit, Issue Tracking
Patches and release notes
- oracle.com/security-alerts/cpuapr2022.htmlThird Party Advisory
Third-party and government advisories
- security.netapp.com/advisory/ntap-20220225-0009/Third Party Advisory
Other references
- lists.debian.org/debian-lts-announce/2023/09/msg00022.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CSD2YBXP3ZF44E44QMII…
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UDBDBAU6HUPZHISBOART…
- security.gentoo.org/glsa/202305-02
- lists.debian.org/debian-lts-announce/2024/11/msg00024.html
- lists.debian.org/debian-lts-announce/2025/03/msg00013.html
- cert-portal.siemens.com/productcert/html/ssa-398330.html
Other vulnerabilities in python
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
Recent Improper Neutralization of Special Elements in Output Used by a Downstream Component vulnerabilities
- 8.8 High severity
- 9.8 Critical severity
- 8.8 High severity
- 7.5 High severity
- 9.8 Critical severity
- 9.8 Critical severity
Oracle WebLogic Server, Injection Exploited
Spotted an error? Tell us.