OESA-2022-1650

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2022-1650
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2022-1650.json
JSON Data
https://api.test.osv.dev/v1/vulns/OESA-2022-1650
Upstream
Published
2022-05-11T11:03:46Z
Modified
2025-08-12T05:11:28.997152Z
Summary
xz security update
Details

XZ Utils is free general-purpose data compression software with a high compression ratio. XZ Utils were written for POSIX-like systems, but also work on some not-so-POSIX systems. XZ Utils are the successor to LZMA Utils. The core of the XZ Utils compression code is based on LZMA SDK, but it has been modified quite a lot to be suitable for XZ Utils. The primary compression algorithm is currently LZMA2, which is used inside the .xz container format. With typical files, XZ Utils create 30% smaller output than gzip and 15% smaller output than bzip2.

Security Fix(es):

The vulnerability exists due to insufficient validation when handling filenames with two or more newlines. A remote attacker can force zgrep or xzgrep to write arbitrary files on the system. The vulnerability allows a remote attacker to compromise an affected system.(CVE-2022-1271)

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

Affected packages

openEuler:20.03-LTS-SP1 / xz

Package

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

Affected ranges

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

Ecosystem specific

{
    "aarch64": [
        "xz-5.2.5-2.oe1.aarch64.rpm",
        "xz-debuginfo-5.2.5-2.oe1.aarch64.rpm",
        "xz-debugsource-5.2.5-2.oe1.aarch64.rpm",
        "xz-devel-5.2.5-2.oe1.aarch64.rpm",
        "xz-libs-5.2.5-2.oe1.aarch64.rpm",
        "xz-lzma-compat-5.2.5-2.oe1.aarch64.rpm"
    ],
    "x86_64": [
        "xz-5.2.5-2.oe1.x86_64.rpm",
        "xz-debuginfo-5.2.5-2.oe1.x86_64.rpm",
        "xz-debugsource-5.2.5-2.oe1.x86_64.rpm",
        "xz-devel-5.2.5-2.oe1.x86_64.rpm",
        "xz-libs-5.2.5-2.oe1.x86_64.rpm",
        "xz-lzma-compat-5.2.5-2.oe1.x86_64.rpm"
    ],
    "src": [
        "xz-5.2.5-2.oe1.src.rpm"
    ],
    "noarch": [
        "xz-help-5.2.5-2.oe1.noarch.rpm"
    ]
}

openEuler:20.03-LTS-SP3 / xz

Package

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

Affected ranges

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

Ecosystem specific

{
    "aarch64": [
        "xz-5.2.5-2.oe1.aarch64.rpm",
        "xz-debuginfo-5.2.5-2.oe1.aarch64.rpm",
        "xz-debugsource-5.2.5-2.oe1.aarch64.rpm",
        "xz-devel-5.2.5-2.oe1.aarch64.rpm",
        "xz-libs-5.2.5-2.oe1.aarch64.rpm",
        "xz-lzma-compat-5.2.5-2.oe1.aarch64.rpm"
    ],
    "x86_64": [
        "xz-5.2.5-2.oe1.x86_64.rpm",
        "xz-debuginfo-5.2.5-2.oe1.x86_64.rpm",
        "xz-debugsource-5.2.5-2.oe1.x86_64.rpm",
        "xz-devel-5.2.5-2.oe1.x86_64.rpm",
        "xz-libs-5.2.5-2.oe1.x86_64.rpm",
        "xz-lzma-compat-5.2.5-2.oe1.x86_64.rpm"
    ],
    "src": [
        "xz-5.2.5-2.oe1.src.rpm"
    ],
    "noarch": [
        "xz-help-5.2.5-2.oe1.noarch.rpm"
    ]
}

openEuler:22.03-LTS / xz

Package

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

Affected ranges

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

Ecosystem specific

{
    "aarch64": [
        "xz-5.2.5-2.oe2203.aarch64.rpm",
        "xz-debuginfo-5.2.5-2.oe2203.aarch64.rpm",
        "xz-debugsource-5.2.5-2.oe2203.aarch64.rpm",
        "xz-devel-5.2.5-2.oe2203.aarch64.rpm",
        "xz-libs-5.2.5-2.oe2203.aarch64.rpm",
        "xz-lzma-compat-5.2.5-2.oe2203.aarch64.rpm"
    ],
    "x86_64": [
        "xz-5.2.5-2.oe2203.x86_64.rpm",
        "xz-debuginfo-5.2.5-2.oe2203.x86_64.rpm",
        "xz-debugsource-5.2.5-2.oe2203.x86_64.rpm",
        "xz-devel-5.2.5-2.oe2203.x86_64.rpm",
        "xz-libs-5.2.5-2.oe2203.x86_64.rpm",
        "xz-lzma-compat-5.2.5-2.oe2203.x86_64.rpm"
    ],
    "src": [
        "xz-5.2.5-2.oe2203.src.rpm"
    ],
    "noarch": [
        "xz-help-5.2.5-2.oe2203.noarch.rpm"
    ]
}