OESA-2022-1566

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2022-1566
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2022-1566.json
JSON Data
https://api.test.osv.dev/v1/vulns/OESA-2022-1566
Upstream
Published
2022-03-07T11:03:36Z
Modified
2025-08-12T05:10:16.726482Z
Summary
python3 security update
Details

Python combines remarkable power with very clear syntax. It has modules, classes, exceptions, very high level dynamic data types, and dynamic typing. There are interfaces to many system calls and libraries, as well as to various windowing systems. New built-in modules are easily written in C or C++ (or other languages, depending on the chosen implementation). Python is also usable as an extension language for applications written in other languages that need easy-to-use scripting or automation interfaces.

Security Fix(es):

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.(CVE-2022-0391)

An attacker could exploit this vulnerability to set up a malicious FTP server that could trick an FTP client into connecting back to a given IP address and port. This can cause the FTP client to scan the port.(CVE-2021-4189)

Database specific
{
    "severity": "Medium"
}
References

Affected packages

openEuler:20.03-LTS-SP1 / python3

Package

Name
python3
Purl
pkg:rpm/openEuler/python3&distro=openEuler-20.03-LTS-SP1

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.7.9-20.oe1

Ecosystem specific

{
    "src": [
        "python3-3.7.9-20.oe1.src.rpm"
    ],
    "x86_64": [
        "python3-debugsource-3.7.9-20.oe1.x86_64.rpm",
        "python3-devel-3.7.9-20.oe1.x86_64.rpm",
        "python3-debuginfo-3.7.9-20.oe1.x86_64.rpm",
        "python3-3.7.9-20.oe1.x86_64.rpm",
        "python3-debug-3.7.9-20.oe1.x86_64.rpm"
    ],
    "aarch64": [
        "python3-devel-3.7.9-20.oe1.aarch64.rpm",
        "python3-debuginfo-3.7.9-20.oe1.aarch64.rpm",
        "python3-debugsource-3.7.9-20.oe1.aarch64.rpm",
        "python3-debug-3.7.9-20.oe1.aarch64.rpm",
        "python3-3.7.9-20.oe1.aarch64.rpm"
    ],
    "noarch": [
        "python3-help-3.7.9-20.oe1.noarch.rpm"
    ]
}

openEuler:20.03-LTS-SP2 / python3

Package

Name
python3
Purl
pkg:rpm/openEuler/python3&distro=openEuler-20.03-LTS-SP2

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.7.9-19.oe1

Ecosystem specific

{
    "src": [
        "python3-3.7.9-19.oe1.src.rpm"
    ],
    "x86_64": [
        "python3-debugsource-3.7.9-19.oe1.x86_64.rpm",
        "python3-devel-3.7.9-19.oe1.x86_64.rpm",
        "python3-debuginfo-3.7.9-19.oe1.x86_64.rpm",
        "python3-3.7.9-19.oe1.x86_64.rpm",
        "python3-debug-3.7.9-19.oe1.x86_64.rpm"
    ],
    "aarch64": [
        "python3-debug-3.7.9-19.oe1.aarch64.rpm",
        "python3-debuginfo-3.7.9-19.oe1.aarch64.rpm",
        "python3-devel-3.7.9-19.oe1.aarch64.rpm",
        "python3-3.7.9-19.oe1.aarch64.rpm",
        "python3-debugsource-3.7.9-19.oe1.aarch64.rpm"
    ],
    "noarch": [
        "python3-help-3.7.9-19.oe1.noarch.rpm"
    ]
}

openEuler:20.03-LTS-SP3 / python3

Package

Name
python3
Purl
pkg:rpm/openEuler/python3&distro=openEuler-20.03-LTS-SP3

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.7.9-21.oe1

Ecosystem specific

{
    "src": [
        "python3-3.7.9-21.oe1.src.rpm"
    ],
    "x86_64": [
        "python3-debugsource-3.7.9-21.oe1.x86_64.rpm",
        "python3-3.7.9-21.oe1.x86_64.rpm",
        "python3-debug-3.7.9-21.oe1.x86_64.rpm",
        "python3-devel-3.7.9-21.oe1.x86_64.rpm",
        "python3-debuginfo-3.7.9-21.oe1.x86_64.rpm"
    ],
    "aarch64": [
        "python3-devel-3.7.9-21.oe1.aarch64.rpm",
        "python3-3.7.9-21.oe1.aarch64.rpm",
        "python3-debugsource-3.7.9-21.oe1.aarch64.rpm",
        "python3-debuginfo-3.7.9-21.oe1.aarch64.rpm",
        "python3-debug-3.7.9-21.oe1.aarch64.rpm"
    ],
    "noarch": [
        "python3-help-3.7.9-21.oe1.noarch.rpm"
    ]
}