Skip to content
pkgseek
Back to CVE search

CVE-2022-1271

high · 8.8

An arbitrary file write vulnerability was found in GNU gzip's zgrep utility. When zgrep is applied on the attacker's chosen file name (for example, a crafted file name), this can overwrite an attacker's content to an arbitrary attacker-selected file. This flaw occurs due to insufficient validation when processing filenames with two or more newlines where selected content and the target file names are embedded in crafted multi-line file names. This flaw allows a remote, low privileged attacker to force zgrep to write arbitrary files on the system.

First indexed 4/8/2022View on NVD

Advisory Facts

Markdown

CVE-2022-1271 is rated HIGH (8.8), with 20 indexed affected package builds across 4 distributions.

Severity / Score
HIGH (8.8)
Affected builds
20
Affected distros
4
Distros with fixed_in
Alibaba Cloud Linux, Oracle Linux, Red Hat Enterprise Linux, Ubuntu
+ Embed this vulnerability status card

https://pkgseek.com/embed/security/CVE-2022-1271?locale=en

Distribution-aware status

4
Distributions
20
Package/release records
10
Vendor advisories
20
Fix versions available

Why the upstream version is not enough

Linux distributions often keep an upstream version and backport security patches into the distribution revision. PkgSeek therefore uses exact package versions and vendor advisories; a lower-looking upstream version alone does not prove that a package is vulnerable.

Affected packages

Newest affected build per package, repository source and distribution release.

20 affected package/release combinations
gzip
3x86_64
1.9-12.1.al8Fixed in 1.9-13.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade gzip
gzip
8x86_64
1.9-12.el8Fixed in 1.9-13.el8_5
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade gzip
xz
8x86_64
5.2.4-3.el8Fixed in 5.2.4-4.el8_6
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade xz
xz-devel
8i686, x86_64
5.2.4-3.el8Fixed in 5.2.4-4.el8_6
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade xz-devel
xz-libs
8i686, x86_64
5.2.4-3.el8Fixed in 5.2.4-4.el8_6
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade xz-libs
gzip
9x86_64
1.10-8.el9Fixed in 1.10-9.el9_0
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade gzip
xz
9x86_64
5.2.5-7.el9Fixed in 5.2.5-8.el9_0
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade xz
xz-devel
9i686, x86_64
5.2.5-7.el9Fixed in 5.2.5-8.el9_0
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade xz-devel
xz-libs
9i686, x86_64
5.2.5-7.el9Fixed in 5.2.5-8.el9_0
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade xz-libs
xz-lzma-compat
9x86_64
5.2.5-7.el9Fixed in 5.2.5-8.el9_0
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade xz-lzma-compat
gzip
9.8x86_64
1.10-8.el9Fixed in 1.10-9.el9_0
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade gzip
xz
9.8x86_64
5.2.5-7.el9Fixed in 5.2.5-8.el9_0
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade xz
xz-devel
9.8i686, x86_64
5.2.5-7.el9Fixed in 5.2.5-8.el9_0
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade xz-devel
xz-libs
9.8i686, x86_64
5.2.5-7.el9Fixed in 5.2.5-8.el9_0
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade xz-libs
xz-lzma-compat
9.8x86_64
5.2.5-7.el9Fixed in 5.2.5-8.el9_0
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade xz-lzma-compat

CNNVD cross-reference

Cached Chinese vulnerability records provide local-language classification and aliases. They do not override distribution package or backport status.