OESA-2022-1790

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2022-1790
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2022-1790.json
JSON Data
https://api.osv.dev/v1/vulns/OESA-2022-1790
Upstream
Published
2022-07-30T11:04:03Z
Modified
2025-09-03T06:18:03.029812Z
Summary
python-lxml security update
Details

The lxml XML toolkit is a Pythonic binding for the C libraries libxml2 and libxslt. \ It is unique in that it combines the speed and XML feature completeness of these libraries with \ the simplicity of a native Python API, mostly compatible but superior to the well-known ElementTree API. \ The latest release works with all CPython versions from 2.7 to 3.7.

Security Fix(es):

NULL Pointer Dereference allows attackers to cause a denial of service (or application crash). This only applies when lxml is used together with libxml2 2.9.10 through 2.9.14. libxml2 2.9.9 and earlier are not affected. It allows triggering crashes through forged input data, given a vulnerable code sequence in the application. The vulnerability is caused by the iterwalk function (also used by the canonicalize function). Such code shouldn't be in wide-spread use, given that parsing + iterwalk would usually be replaced with the more efficient iterparse function. However, an XML converter that serialises to C14N would also be vulnerable, for example, and there are legitimate use cases for this code sequence. If untrusted input is received (also remotely) and processed via iterwalk function, a crash can be triggered.(CVE-2022-2309)

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

Affected packages

openEuler:20.03-LTS-SP1 / python-lxml

Package

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

Affected ranges

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

Ecosystem specific

{
    "x86_64": [
        "python-lxml-debugsource-4.5.2-8.oe1.x86_64.rpm",
        "python3-lxml-4.5.2-8.oe1.x86_64.rpm",
        "python2-lxml-4.5.2-8.oe1.x86_64.rpm",
        "python-lxml-debuginfo-4.5.2-8.oe1.x86_64.rpm"
    ],
    "noarch": [
        "python-lxml-help-4.5.2-8.oe1.noarch.rpm"
    ],
    "aarch64": [
        "python2-lxml-4.5.2-8.oe1.aarch64.rpm",
        "python-lxml-debuginfo-4.5.2-8.oe1.aarch64.rpm",
        "python3-lxml-4.5.2-8.oe1.aarch64.rpm",
        "python-lxml-debugsource-4.5.2-8.oe1.aarch64.rpm"
    ],
    "src": [
        "python-lxml-4.5.2-8.oe1.src.rpm"
    ]
}

openEuler:20.03-LTS-SP3 / python-lxml

Package

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

Affected ranges

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

Ecosystem specific

{
    "x86_64": [
        "python3-lxml-4.5.2-8.oe1.x86_64.rpm",
        "python2-lxml-4.5.2-8.oe1.x86_64.rpm",
        "python-lxml-debuginfo-4.5.2-8.oe1.x86_64.rpm",
        "python-lxml-debugsource-4.5.2-8.oe1.x86_64.rpm"
    ],
    "noarch": [
        "python-lxml-help-4.5.2-8.oe1.noarch.rpm"
    ],
    "aarch64": [
        "python2-lxml-4.5.2-8.oe1.aarch64.rpm",
        "python-lxml-debuginfo-4.5.2-8.oe1.aarch64.rpm",
        "python-lxml-debugsource-4.5.2-8.oe1.aarch64.rpm",
        "python3-lxml-4.5.2-8.oe1.aarch64.rpm"
    ],
    "src": [
        "python-lxml-4.5.2-8.oe1.src.rpm"
    ]
}

openEuler:22.03-LTS / python-lxml

Package

Name
python-lxml
Purl
pkg:rpm/openEuler/python-lxml&distro=openEuler-22.03-LTS

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.7.1-4.oe2203

Ecosystem specific

{
    "x86_64": [
        "python-lxml-debuginfo-4.7.1-4.oe2203.x86_64.rpm",
        "python3-lxml-4.7.1-4.oe2203.x86_64.rpm",
        "python-lxml-debugsource-4.7.1-4.oe2203.x86_64.rpm"
    ],
    "noarch": [
        "python-lxml-help-4.7.1-4.oe2203.noarch.rpm"
    ],
    "aarch64": [
        "python-lxml-debugsource-4.7.1-4.oe2203.aarch64.rpm",
        "python3-lxml-4.7.1-4.oe2203.aarch64.rpm",
        "python-lxml-debuginfo-4.7.1-4.oe2203.aarch64.rpm"
    ],
    "src": [
        "python-lxml-4.7.1-4.oe2203.src.rpm"
    ]
}