Skip to main content

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

CVE-2022-0391

Severity High
Score 7.5/10

Summary

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 through 3.6.13, 3.7.0 through 3.7.10, 3.8.0 through 3.8.10, 3.9.0 through 3.9.4, and 3.10.0 through v3.10.0a7.

  • LOW
  • NETWORK
  • HIGH
  • UNCHANGED
  • NONE
  • NONE
  • NONE
  • NONE

CWE-74 - Injection

Listed as the number one web application security risk on the 'OWASP Top Ten', injection attacks are widespread and dangerous, especially in legacy applications. Injection attacks are a class of vulnerabilities in which an attacker injects untrusted data into a web application that gets processed by an interpreter, altering the program's execution. This can result in data loss/theft, loss of data integrity, denial of service, and even compromising the entire system.

Advisory Timeline

  • Published