Read the docs
TI-2022-01156 Aliases CVE-2022-1271GHSA-jrpw-543v-8r62

Improper input validation in gzip, xz-utils

Priority MEDIUM 49CWE-179Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 19 fixed, 2 without a fix

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.05549 92nd percentileScored 2026-11-07
Fix Partial Red Hat: 14 advisoriesRed Hat: 19 fixed, 2 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
—gzip, xz-utilsFixed in gzip 1.12—No fix listedCNA
  • gzip, xz-utils Vendor— Affected Fixed in gzip 1.12 Fixed in — No fix listed CNA

CPE configurations NVD · 4

CPEVersionsRoleVendor
cpe:2.3:a:gnu:gzip:*:*:*:*:*:*:*:*before 1.12VulnerableGNU
cpe:2.3:a:redhat:jboss_data_grid:7.0.0:*:*:*:*:*:*:*7.0.0VulnerableRed Hat
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*10.0VulnerableDebian
cpe:2.3:a:tukaani:xz:*:*:*:*:*:*:*:*before 5.2.5VulnerableTukaani
  • cpe:2.3:a:gnu:gzip:*:*:*:*:*:*:*:* Versions before 1.12 Vulnerable ·GNU
  • cpe:2.3:a:redhat:jboss_data_grid:7.0.0:*:*:*:*:*:*:* Versions 7.0.0 Vulnerable ·Red Hat
  • cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
  • cpe:2.3:a:tukaani:xz:*:*:*:*:*:*:*:* Versions before 5.2.5 Vulnerable ·Tukaani

Remediation

Red Hat 14 advisories

  • RHSA-2022:5439 Released 2022-07-01 · Red Hat rating Important
    RHV-H security update (redhat-virtualization-host) 4.3.23
    • RHEL 7-based RHEV-H for RHEV 4 (build requirements) redhat-virtualization-host-4.3.23-20220622.0.el7_9, redhat-virtualization-host-image-update-4.3.23-20220622.0.el7_9
    • Red Hat Virtualization 4 Hypervisor for RHEL 7 redhat-virtualization-host-4.3.23-20220622.0.el7_9, redhat-virtualization-host-image-update-4.3.23-20220622.0.el7_9
  • RHSA-2022:5052 Released 2022-06-15 · Red Hat rating Important
    xz security update
    • Red Hat Enterprise Linux Client (v. 7) xz-5.2.2-2.el7_9, xz-libs-5.2.2-2.el7_9
    • Red Hat Enterprise Linux Client Optional (v. 7) xz-compat-libs-5.2.2-2.el7_9, xz-devel-5.2.2-2.el7_9, xz-lzma-compat-5.2.2-2.el7_9
    • Red Hat Enterprise Linux ComputeNode Optional (v. 7) xz-compat-libs-5.2.2-2.el7_9, xz-devel-5.2.2-2.el7_9, xz-lzma-compat-5.2.2-2.el7_9
    • Red Hat Enterprise Linux Server (v. 7) xz-5.2.2-2.el7_9, xz-devel-5.2.2-2.el7_9, xz-devel-5.2.2-2.el7_9.ppc +2
    • Red Hat Enterprise Linux Server Optional (v. 7) xz-compat-libs-5.2.2-2.el7_9, xz-compat-libs-5.2.2-2.el7_9.ppc, xz-lzma-compat-5.2.2-2.el7_9
    • Red Hat Enterprise Linux Workstation (v. 7) xz-5.2.2-2.el7_9, xz-devel-5.2.2-2.el7_9, xz-libs-5.2.2-2.el7_9
    • Red Hat Enterprise Linux Workstation Optional (v. 7) xz-compat-libs-5.2.2-2.el7_9, xz-lzma-compat-5.2.2-2.el7_9
  • RHSA-2022:4993 Released 2022-06-13 · Red Hat rating Important
    xz security update
    • Red Hat Enterprise Linux BaseOS EUS (v.8.4) xz-5.2.4-4.el8_4, xz-devel-5.2.4-4.el8_4, xz-libs-5.2.4-4.el8_4
    • Red Hat Enterprise Linux CRB EUS (v.8.4) xz-lzma-compat-5.2.4-4.el8_4
Show 11 more Red Hat advisories
  • RHSA-2022:4991 Released 2022-06-13 · Red Hat rating Important
    xz security update
    • Red Hat Enterprise Linux BaseOS (v. 8) xz-5.2.4-4.el8_6, xz-devel-5.2.4-4.el8_6, xz-libs-5.2.4-4.el8_6
    • Red Hat Enterprise Linux CRB (v. 8) xz-lzma-compat-5.2.4-4.el8_6
  • RHSA-2022:4992 Released 2022-06-13 · Red Hat rating Important
    xz security update
    • Red Hat CodeReady Linux Builder EUS (v. 8.2) xz-lzma-compat-5.2.4-4.el8_2
    • Red Hat Enterprise Linux BaseOS EUS (v. 8.2) xz-5.2.4-4.el8_2, xz-devel-5.2.4-4.el8_2, xz-libs-5.2.4-4.el8_2
  • RHSA-2022:4994 Released 2022-06-13 · Red Hat rating Important
    xz security update
    • Red Hat Enterprise Linux BaseOS E4S (v. 8.1) xz-5.2.4-4.el8_1, xz-devel-5.2.4-4.el8_1, xz-libs-5.2.4-4.el8_1
  • RHSA-2022:4940 Released 2022-06-08 · Red Hat rating Important
    xz security update
    • Red Hat Enterprise Linux AppStream (v. 9) xz-devel-5.2.5-8.el9_0, xz-lzma-compat-5.2.5-8.el9_0
    • Red Hat Enterprise Linux BaseOS (v. 9) xz-5.2.5-8.el9_0, xz-libs-5.2.5-8.el9_0
  • RHSA-2022:4896 Released 2022-06-03 · Red Hat rating Important
    Red Hat Virtualization security, bug fix, and enhancement update [ovirt-4.5.0]
    • Red Hat Virtualization 4 Hypervisor for RHEL 8 redhat-virtualization-host-4.5.0-202205291010_8.6, redhat-virtualization-host-image-update-4.5.0-202205291010_8.6
  • RHSA-2022:4582 Released 2022-05-17 · Red Hat rating Important
    gzip security update
    • Red Hat Enterprise Linux BaseOS (v. 9) gzip-1.10-9.el9_0
  • RHSA-2022:2191 Released 2022-05-11 · Red Hat rating Important
    gzip security update
    • Red Hat Enterprise Linux Client (v. 7) gzip-1.5-11.el7_9
    • Red Hat Enterprise Linux Server (v. 7) gzip-1.5-11.el7_9
    • Red Hat Enterprise Linux Workstation (v. 7) gzip-1.5-11.el7_9
  • RHSA-2022:1676 Released 2022-05-03 · Red Hat rating Important
    gzip security update
    • Red Hat Enterprise Linux BaseOS EUS (v.8.4) gzip-1.9-13.el8_4
  • RHSA-2022:1665 Released 2022-05-02 · Red Hat rating Important
    gzip security update
    • Red Hat Enterprise Linux BaseOS EUS (v. 8.2) gzip-1.9-10.el8_2
  • RHSA-2022:1592 Released 2022-04-26 · Red Hat rating Important
    gzip security update
    • Red Hat Enterprise Linux BaseOS E4S (v. 8.1) gzip-1.9-10.el8_1
  • RHSA-2022:1537 Released 2022-04-26 · Red Hat rating Important
    gzip security update
    • Red Hat Enterprise Linux BaseOS (v. 8) gzip-1.9-13.el8_5

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat JBoss Data Grid 7AffectedNo fix yet
RHEL 7-based RHEV-H for RHEV 4 (build requirements)Fixed RHSA-2022:5439
Red Hat CodeReady Linux Builder EUS (v. 8.2)Fixed RHSA-2022:4992
Red Hat Enterprise Linux AppStream (v. 9)Fixed RHSA-2022:4940
Red Hat Enterprise Linux BaseOS (v. 8)Fixed RHSA-2022:1537, RHSA-2022:4991
Red Hat Enterprise Linux BaseOS (v. 9)Fixed RHSA-2022:4582, RHSA-2022:4940
Red Hat Enterprise Linux BaseOS E4S (v. 8.1)Fixed RHSA-2022:1592, RHSA-2022:4994
Red Hat Enterprise Linux BaseOS EUS (v. 8.2)Fixed RHSA-2022:1665, RHSA-2022:4992
Red Hat Enterprise Linux BaseOS EUS (v.8.4)Fixed RHSA-2022:1676, RHSA-2022:4993
Red Hat Enterprise Linux CRB (v. 8)Fixed RHSA-2022:4991
Red Hat Enterprise Linux CRB EUS (v.8.4)Fixed RHSA-2022:4993
Red Hat Enterprise Linux Client (v. 7)Fixed RHSA-2022:2191, RHSA-2022:5052
Red Hat Enterprise Linux Client Optional (v. 7)Fixed RHSA-2022:5052
Red Hat Enterprise Linux ComputeNode Optional (v. 7)Fixed RHSA-2022:5052
Red Hat Enterprise Linux Server (v. 7)Fixed RHSA-2022:2191, RHSA-2022:5052
Red Hat Enterprise Linux Server Optional (v. 7)Fixed RHSA-2022:5052
Red Hat Enterprise Linux Workstation (v. 7)Fixed RHSA-2022:2191, RHSA-2022:5052
Red Hat Enterprise Linux Workstation Optional (v. 7)Fixed RHSA-2022:5052
Red Hat Virtualization 4 Hypervisor for RHEL 7Fixed RHSA-2022:5439
Red Hat Virtualization 4 Hypervisor for RHEL 8Fixed RHSA-2022:4896
Not affected: 3 products
  • RHEL 7-based RHEV-H for RHEV 4 (build requirements)
  • RHEL 8-based RHEV-H for RHEV 4 (build requirements)
  • Red Hat Virtualization 4 Hypervisor for RHEL 8

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-1271
  2. 2026-10-03 Alias added: GHSA-jrpw-543v-8r62

References

Sources