CVE-2022-1271 json
An arbitrary file write vulnerability was found in GNU gzip's zgrep utility.
published 4y ago modified 26d ago also EUVD-2022-24604 , JLSEC-2026-61
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 5.5%
- EPSS 5.5% chance of exploitation in 30 days, percentile 92%
- public exploits
- 0
- none known
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.
Patch / fix
- julia Gzip_jll 1.12.0+0
- julia XZ_jll 5.2.5+0
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
- Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP V3.1.5
- Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
- gzip Debian 14, Debian 13, Debian 12 1.12-1
- xz-utils Debian 14, Debian 13, Debian 12 5.2.5-2.1
debian advisories DEBIAN-CVE-2022-1271
- gzip Ubuntu 18.04 LTS 1.6-5ubuntu1.2
- gzip Ubuntu 20.04 LTS 1.10-0ubuntu4.1
- gzip Ubuntu 22.04 LTS 1.10-4ubuntu4
- xz-utils Ubuntu 18.04 LTS 5.2.2-1.3ubuntu0.1
- xz-utils Ubuntu 20.04 LTS 5.2.4-1ubuntu1.1
- xz-utils Ubuntu 22.04 LTS 5.2.5-2ubuntu1
- gzip Ubuntu Pro 14.04 LTS 1.6-3ubuntu1+esm1
- gzip Ubuntu Pro 16.04 LTS 1.6-4ubuntu1+esm1
ubuntu advisories UBUNTU-CVE-2022-1271
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- redhat-virtualization-host rhev hypervisor 4.4 4.5.0-202205291010_8.6
- redhat-virtualization-host-image-update rhev hypervisor 4.4 4.5.0-202205291010_8.6
- redhat-virtualization-host RHEL 7 4.3.23-20220622.0.el7_9
- redhat-virtualization-host-image-update RHEL 7 4.3.23-20220622.0.el7_9
- xz RHEL 7 5.2.2-2.el7_9
- xz-libs RHEL 7 5.2.2-2.el7_9
- xz-compat-libs RHEL 7 5.2.2-2.el7_9
- xz-lzma-compat RHEL 7 5.2.2-2.el7_9
red hat advisories RHSA-2022:4896RHSA-2022:5439RHSA-2022:5052RHSA-2022:4994RHSA-2022:4992RHSA-2022:4991
- gzip SLES for SAP 15 SP1, SLES for SAP 15, SLES 15-LTSS +7 more 1.10-150000.4.15.1
- gzip SLES for SAP 12 SP4, SLES for SAP 12 SP3, SLES 12 SP4-LTSS +8 more 1.6-9.9.1
- gzip SLES for SAP 12 SP5, SLES 12 SP5 1.10-4.14.1
- gzip SLES for SAP 15 SP2, SLES 15 SP2-LTSS, SLES 15 SP2-BCL +14 more 1.10-150200.10.1
- gzip SLES for SAP 12 SP4, SLES for SAP 12 SP3, SLES 12 SP4-LTSS +8 more 1.6-9.6.2
- gzip SLES for SAP 12 SP5, SLES 12 SP5 1.10-4.11.3
- gzip SLES for SAP 15 SP1, SLES for SAP 15, SLES 15-LTSS +7 more 1.10-150000.4.12.1
- xz SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +11 more 5.0.5-6.7.1
suse advisories SUSE-SU-2022:1674-1SUSE-SU-2022:1673-1SUSE-SU-2022:1650-1SUSE-SU-2022:1617-1SUSE-SU-2022:1275-1SUSE-SU-2022:1272-1
- apparmor openSUSE Tumbleweed 3.0.4-4.1
- gzip openSUSE Tumbleweed 1.12-1.1
- xz openSUSE Tumbleweed 5.2.6-1.1
opensuse advisories openSUSE-SU-2024:11987-1openSUSE-SU-2024:11992-1openSUSE-SU-2024:12271-1
- xz AlmaLinux 8 5.2.4-4.el8_6
- xz-libs AlmaLinux 8 5.2.4-4.el8_6
- xz-lzma-compat AlmaLinux 8 5.2.4-4.el8_6
- xz AlmaLinux 9 5.2.5-8.el9_0
- xz-libs AlmaLinux 9 5.2.5-8.el9_0
- xz-lzma-compat AlmaLinux 9 5.2.5-8.el9_0
- gzip AlmaLinux 8 1.9-13.el8_5
almalinux advisories ALSA-2022:4991ALSA-2022:4940ALSA-2022:1537
- xz Rocky Linux 8 5.2.4-4.el8_6
- xz Rocky Linux 9 5.2.5-8.el9_0
- gzip Rocky Linux 9 1.10-9.el9_0
- gzip Rocky Linux 8 1.9-13.el8_5
rocky linux advisories RLSA-2022:4991RLSA-2022:4940RLSA-2022:4582RLSA-2022:1537
- xz Alpine 3.24, Alpine 3.23, Alpine 3.22 +10 more 5.2.5-r1
- gzip Alpine 3.24, Alpine 3.23, Alpine 3.22 +10 more 1.12-r0
alpine advisories ALPINE-CVE-2022-1271
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Is CVE-2022-1271 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-1271 updated cvss 8.8
gzip: arbitrary-file-write vulnerability
-
Red Hat Enterprise Linux 6 xz, gzip, xz-libs, xz-lzma-compataffected: workaround, no fix planned “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.”
-
Red Hat JBoss Data Grid 7 gzipaffected: workaround, no fix available “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.”
-
Red Hat CodeReady Linux Builder EUS (v. 8.2) xz-lzma-compat 5.2.4-4.el8_2fixed: vendor fix “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:4992
-
Red Hat Enterprise Linux AppStream (v. 9) xz-lzma-compat 5.2.5-8.el9_0fixed: vendor fix “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:4940
-
Red Hat Enterprise Linux BaseOS (v. 8) xz 5.2.4-4.el8_6, gzip 1.9-13.el8_5, xz-libs 5.2.4-4.el8_6fixed: vendor fix “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:1537
-
Red Hat Enterprise Linux BaseOS (v. 9) xz 5.2.5-8.el9_0, gzip 1.10-9.el9_0, xz-libs 5.2.5-8.el9_0fixed: vendor fix “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:4940
-
Red Hat Enterprise Linux BaseOS E4S (v. 8.1) xz 5.2.4-4.el8_1, gzip 1.9-10.el8_1, xz-libs 5.2.4-4.el8_1fixed: vendor fix “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:1592
-
Red Hat Enterprise Linux BaseOS EUS (v. 8.2) xz 5.2.4-4.el8_2, gzip 1.9-10.el8_2, xz-libs 5.2.4-4.el8_2fixed: vendor fix “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:1665
show 13 moreshow fewer
-
Red Hat Enterprise Linux BaseOS EUS (v.8.4) xz 5.2.4-4.el8_4, gzip 1.9-13.el8_4, xz-libs 5.2.4-4.el8_4fixed: vendor fix “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:1676
-
Red Hat Enterprise Linux Client (v. 7) xz 5.2.2-2.el7_9, gzip 1.5-11.el7_9, xz-libs 5.2.2-2.el7_9fixed: vendor fix “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:2191
-
Red Hat Enterprise Linux Client Optional (v. 7) xz-compat-libs 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-lzma-compat 5.2.2-2.el7_9fixed: vendor fix “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:5052
-
Red Hat Enterprise Linux CRB (v. 8) xz-lzma-compat 5.2.4-4.el8_6fixed: vendor fix “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:4991
-
Red Hat Enterprise Linux CRB EUS (v.8.4) xz-lzma-compat 5.2.4-4.el8_4fixed: vendor fix “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:4993
-
Red Hat Enterprise Linux Server (v. 7) xz 5.2.2-2.el7_9, gzip 1.5-11.el7_9, xz-libs 5.2.2-2.el7_9fixed: vendor fix “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:2191
-
Red Hat Enterprise Linux Server Optional (v. 7) xz-compat-libs 5.2.2-2.el7_9, xz-lzma-compat 5.2.2-2.el7_9fixed: vendor fix “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:5052
-
Red Hat Enterprise Linux Workstation (v. 7) xz 5.2.2-2.el7_9, gzip 1.5-11.el7_9, xz-libs 5.2.2-2.el7_9fixed: vendor fix “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:2191
-
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_9fixed: vendor fix “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:5052
-
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_9fixed: vendor fix “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:5439
-
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.6fixed: vendor fix “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:4896
-
Red Hat 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_9fixed: vendor fix “Red Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:5439
-
Red Hat Virtualization 4 Hypervisor for RHEL 8 elfutils 0.186-1.el8, elfutils-debuginfod-client 0.186-1.el8 Red Hat RHEL 7-based RHEV-H for RHEV 4 (build requirements) redhat-release-virtualization-host 4.3.23-1.el7ev, redhat-virtualization-host-productimg 4.3.23-1.el7, redhat-virtualization-host-image-update-placeholder 4.3.23-1.el7ev Red Hat RHEL 8-based RHEV-H for RHEV 4 (build requirements) imgbased 1.2.24-1.el8ev, ovirt-node-ng 4.4.2-1.el8ev, python3-imgbased 1.2.24-1.el8ev, ovirt-node-ng-nodectl 4.4.2-1.el8ev, python3-ovirt-node-ng-nodectl 4.4.2-1.el8ev, redhat-release-virtualization-host 4.5.0-5.el8ev, +3 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-23-348-10 updated cvss 8.8
Siemens SIMATIC S7-1500
-
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) >= 3.1.0, < 3.1.5affected: fixed in V3.1.5, mitigation support.industry.siemens.com
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
cisa ICSA-24-102-04 updated cvss 8.8
Siemens RUGGEDCOM APE1808
-
Siemens RUGGEDCOM APE1808affected: vendor fix
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- last yr.
Exploit prediction
5.55% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| julia | Gzip_jll | <1.12.0+0 |
1.12.0+0 |
| julia | XZ_jll | <5.2.5+0 |
5.2.5+0 |
Affected products
- n/a gzip, xz-utils
- Siemens RUGGEDCOM APE1808
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP
- Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP
- Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP
Classification
References
-
openwall.com
/lists/oss-security/2022/04/07/8
mailing-list, patch, third-party-advisory, web
-
lists.gnu.org
/r/bug-gzip/2022-04/msg00011.html
mailing-list, patch, vendor-advisory, web
-
tukaani.org
/xz/xzgrep-ZDI-CAN-16587.patch
patch, third-party-advisory, web
-
security.gentoo.org
/glsa/202209-01
vendor-advisory, third-party-advisory, web
-
bugzilla.redhat.com
/show_bug.cgi?id=2073310
issue-tracking, third-party-advisory, web
-
git.tukaani.org
/?p=xz.git%3Ba=commit%3Bh=69d1b3fc29677af8ade8dc15dba83f0589cb63d6
broken-link, web
-
security-tracker.debian.org
/tracker/CVE-2022-1271
third-party-advisory, web
-
access.redhat.com
/security/cve/CVE-2022-1271
third-party-advisory, web
-
security.netapp.com
/advisory/ntap-20220930-0006/
third-party-advisory, web
- cert-portal.siemens.com /productcert/html/ssa-398330.html
- cert-portal.siemens.com /productcert/html/ssa-455250.html
Sources
- CVE List CVE-2022-1271
- NVD CVE-2022-1271
- OSV JLSEC-2026-61
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.