CVE-2022-1271
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
02 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
03 Exploitation and scoring
- Exploitation
- Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
- SSVC decision
- ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
- AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
- Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
- EPSS probability
- 5.54% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 92.7% of scored records. A rank, not a probability.
- NVD base score
- 8.8 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVD analysis status
- Modified. NVD last modified this record on 2026-10-14.
- Red Hat severity
- Important. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2022-08-31 15:33Z4 YR AGO
- Last updated
- 2026-10-14 12:25Z14 DAYS AGO
- Reserved
- 2022-04-07
- Assigning CNA
- redhat
- Record state
- PUBLISHED
- Severity
- High (CVSS 8.8)
- CNA CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- Data version
- 5.2
- Document digest
- a57c535ab16fff9135bd74edc47ceeeefa7f58e02f88dc79856e6eecd3180209
05 Affected products
06 References
- bugzilla.redhat.comhttps://bugzilla.redhat.com/show_bug.cgi?id=2073310
- www.openwall.comhttps://www.openwall.com/lists/oss-security/2022/04/07/8
- lists.gnu.orghttps://lists.gnu.org/r/bug-gzip/2022-04/msg00011.html
- tukaani.orghttps://tukaani.org/xz/xzgrep-ZDI-CAN-16587.patch
- git.tukaani.orghttps://git.tukaani.org/?p=xz.git%3Ba=commit%3Bh=69d1b3fc29677af8ade8dc15dba83f0589cb63d6
- security-tracker.debian.orghttps://security-tracker.debian.org/tracker/CVE-2022-1271
- access.redhat.comhttps://access.redhat.com/security/cve/CVE-2022-1271
- security.gentoo.orgGLSA-202209-01https://security.gentoo.org/glsa/202209-01
- security.netapp.comhttps://security.netapp.com/advisory/ntap-20220930-0006/
- cert-portal.siemens.comhttps://cert-portal.siemens.com/productcert/html/ssa-398330.html
- cert-portal.siemens.comhttps://cert-portal.siemens.com/productcert/html/ssa-455250.html
07 Fixed in
AlmaLinux 8
- gzip Fixed in 1.9-13.el8_5
- xz Fixed in 5.2.4-4.el8_6
- xz-devel Fixed in 5.2.4-4.el8_6
- xz-libs Fixed in 5.2.4-4.el8_6
- xz-lzma-compat Fixed in 5.2.4-4.el8_6
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
AlmaLinux 9
- xz Fixed in 5.2.5-8.el9_0
- xz-devel Fixed in 5.2.5-8.el9_0
- xz-libs Fixed in 5.2.5-8.el9_0
- xz-lzma-compat Fixed in 5.2.5-8.el9_0
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Arch Linux
- gzip Fixed in 1.12-1
- xz Fixed in 5.2.5-3
Source: Arch Linux Security Tracker, the Arch Linux security team. Reformatted by exploit.cc.
CloudLinux 8
- gzip Fixed in 1.9-13.el8_5
- xz Fixed in 5.2.4-4.el8_6
- xz-devel Fixed in 5.2.4-4.el8_6
- xz-libs Fixed in 5.2.4-4.el8_6
- xz-lzma-compat Fixed in 5.2.4-4.el8_6
Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 9
- xz Fixed in 5.2.5-8.el9_0
- xz-devel Fixed in 5.2.5-8.el9_0
- xz-libs Fixed in 5.2.5-8.el9_0
- xz-lzma-compat Fixed in 5.2.5-8.el9_0
Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Debian 12
- gzip Fixed in 1.12-1
- xz-utils Fixed in 5.2.5-2.1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- gzip Fixed in 1.12-1
- xz-utils Fixed in 5.2.5-2.1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- gzip Fixed in 1.12-1
- xz-utils Fixed in 5.2.5-2.1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 18.04 LTS
- gzip Fixed in 1.6-5ubuntu1.2
- xz-utils Fixed in 5.2.2-1.3ubuntu0.1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 20.04 LTS
- gzip Fixed in 1.10-0ubuntu4.1
- xz-utils Fixed in 5.2.4-1ubuntu1.1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 22.04 LTS
- gzip Fixed in 1.10-4ubuntu4
- xz-utils Fixed in 5.2.5-2ubuntu1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 14.04 LTS
- gzip Fixed in 1.6-3ubuntu1+esm1Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
- xz-utils Fixed in 5.1.1alpha+20120614-2ubuntu2.14.04.1+esm1Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 16.04 LTS
- gzip Fixed in 1.6-4ubuntu1+esm1Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
- xz-utils Fixed in 5.1.1alpha+20120614-2ubuntu2.16.04.1+esm1Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.