CVE-2022-1271: debian debian_linux
Vulnerability summary
CVE-2022-1271 is a high (CVSS 8.8) vulnerability in debian debian_linux. EPSS estimates a 5.21% chance of exploitation in the next 30 days, higher than 92.4% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 2Timeline
- 31-08-2022PublishedVulnerability first disclosed.
- 14-10-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · AlpineEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · Red hatEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
5.21%
Chance of exploitation in the next 30 days
Percentile
92%
Versus all other CVEs
30-day change
+0.13 pp
From 5.07% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-179Incorrect Behavior Order: Early ValidationThe product validates input before applying protection mechanisms that modify the input, which could allow an attacker to bypass the validation via dangerous inputs that only arise after the modification.
- CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Affected systems
Suse78 products
- gzip&distro=HPE Helion OpenStack 8< 1.6-9.6.2 | < 1.6-9.9.1
- gzip&distro=SUSE Enterprise Storage 6< 1.10-150000.4.12.1 | < 1.10-150000.4.15.1
- gzip&distro=SUSE Enterprise Storage 7< 1.10-150200.10.1
- gzip&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS< 1.10-150000.4.12.1 | < 1.10-150000.4.15.1
- gzip&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS< 1.10-150000.4.12.1 | < 1.10-150000.4.15.1
Redhat13 products
- jboss_data_grid7.0.0
- gzip< 0:1.5-11.el7_9 | < 0:1.10-9.el9_0 | < 0:1.9-13.el8_5 | < 0:1.9-10.el8_1 | < 0:1.9-10.el8_2 | < 0:1.9-13.el8_4
- gzip-debuginfo< 0:1.5-11.el7_9 | < 0:1.10-9.el9_0 | < 0:1.9-13.el8_5 | < 0:1.9-10.el8_1 | < 0:1.9-10.el8_2 | < 0:1.9-13.el8_4
- gzip-debugsource< 0:1.10-9.el9_0 | < 0:1.9-13.el8_5 | < 0:1.9-10.el8_1 | < 0:1.9-10.el8_2 | < 0:1.9-13.el8_4
- xz< 0:5.2.5-8.el9_0 | < 0:5.2.4-4.el8_6 | < 0:5.2.4-4.el8_2 | < 0:5.2.4-4.el8_4 | < 0:5.2.4-4.el8_1 | < 0:5.2.2-2.el7_9
Opensuse6 products
- apparmor&distro=openSUSE Tumbleweed< 3.0.4-4.1
- gzip&distro=openSUSE Leap 15.3< 1.10-150200.10.1
- gzip&distro=openSUSE Leap 15.4< 1.10-150200.10.1
- gzip&distro=openSUSE Tumbleweed< 1.12-1.1
- xz&distro=openSUSE Leap 15.3< 5.2.3-150000.4.7.1
Debian3 products
- gzip< 1.9-3+deb10u1 | < 1.10-4+deb11u1 | < 1.6-5+deb9u1 | < 1.12-1
- xz-utils< 5.2.4-1+deb10u1 | < 5.2.5-2.1~deb11u1 | < 5.2.2-1.2+deb9u1 | < 5.2.5-2.1
- debian_linuxEOL10.0
Alpine2 products
- gzip< 1.12-r0
- xz< 5.2.5-r1
Mageia2 products
- gzip< 1.10-4.1.mga8
- xz< 5.2.5-2.1.mga8
Ubuntu2 products
- gzip< 1.10-4ubuntu4 | < 1.6-5ubuntu1.2 | < 1.10-0ubuntu4.1 | < 1.6-3ubuntu1+esm1 | < 1.6-4ubuntu1+esm1
- xz-utils< 5.2.5-2ubuntu1 | < 5.2.2-1.3ubuntu0.1 | < 5.2.4-1ubuntu1.1 | < 5.1.1alpha+20120614-2ubuntu2.14.04.1+esm1 | < 5.1.1alpha+20120614-2ubuntu2.16.04.1+esm1
Gnu1 product
- gzip< 1.12
Tukaani1 product
- xz< 5.2.5
9 vendors · 108 products
References
66 links- www.openwall.com/lists/oss-security/2022/04/07/8X Refsource MISCREPORTMailing ListPatchThird Party Advisory
- lists.gnu.org/r/bug-gzip/2022-04/msg00011.htmlX Refsource MISCREPORTMailing ListPatchVendor Advisory
- git.tukaani.org?p=xz.git%3Ba=commit%3Bh=69d1b3fc29677af8ade8dc15dba83f0589cb63d6X Refsource MISCBroken Link