CVE-2022-1271
Detail
Modified After Enrichment
This CVE record has been updated after NVD enrichment efforts were completed. Enrichment data supplied by the NVD may require amendment due to these changes.
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.
Metrics
CVSS Version 4.0
CVSS Version 3.x
CVSS Version 2.0
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
CVSS 4.0 Severity and Vector Strings:
NVD assessment
not yet provided.
CVSS 3.x Severity and Vector Strings:
Vector:
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0 Severity and Vector Strings:
NVD assessment
not yet provided.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected] .
URL
Source(s)
Tag(s)
https://access.redhat.com/security/cve/CVE-2022-1271
CVE, Inc., Red Hat
Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2073310
CVE, Inc., Red Hat
Issue Tracking
Third Party Advisory
https://git.tukaani.org/?p=xz.git%3Ba=commit%3Bh=69d1b3fc29677af8ade8dc15dba83f0589cb63d6
CVE, Inc., Red Hat
Broken Link
https://lists.gnu.org/r/bug-gzip/2022-04/msg00011.html
CVE, Inc., Red Hat
Mailing List
Patch
Vendor Advisory
https://security-tracker.debian.org/tracker/CVE-2022-1271
CVE, Inc., Red Hat
Third Party Advisory
https://security.gentoo.org/glsa/202209-01
CVE, Inc., Red Hat
Third Party Advisory
https://security.netapp.com/advisory/ntap-20220930-0006/
CVE, Inc., Red Hat
Third Party Advisory
https://tukaani.org/xz/xzgrep-ZDI-CAN-16587.patch
CVE, Inc., Red Hat
Patch
Third Party Advisory
https://www.openwall.com/lists/oss-security/2022/04/07/8
CVE, Inc., Red Hat
Mailing List
Patch
Third Party Advisory
Weakness Enumeration
CWE-ID
CWE Name
Source
CWE-20
Improper Input Validation
NIST
CWE-179
Incorrect Behavior Order: Early Validation
Red Hat, Inc.
Change History
12 change records found show changes
CVE Modified by CISA-ADP
6/17/2026 12:22:07 AM
Action
Type
Old Value
New Value
Added
SSVC
{"timestamp":"2025-06-09T14:55:46.489089Z","id":"CVE-2022-1271","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}
CVE Modified by Red Hat, Inc.
6/17/2026 12:22:07 AM
Action
Type
Old Value
New Value
Added
Affected
[{"vendor":"n/a","product":"gzip, xz-utils","versions":[{"version":"Fixed in gzip 1.12","status":"affected"}]}]
CVE Modified by CISA-ADP
6/09/2025 11:15:26 AM
Action
Type
Old Value
New Value
Added
CVSS V3.1
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Modified Analysis by NIST
5/05/2025 10:12:33 AM
Action
Type
Old Value
New Value
CVE Modified by CVE
11/21/2024 1:40:23 AM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/security/cve/CVE-2022-1271
Added
Reference
https://bugzilla.redhat.com/show_bug.cgi?id=2073310
Added
Reference
https://git.tukaani.org/?p=xz.git%3Ba=commit%3Bh=69d1b3fc29677af8ade8dc15dba83f0589cb63d6
Added
Reference
https://lists.gnu.org/r/bug-gzip/2022-04/msg00011.html
Added
Reference
https://security-tracker.debian.org/tracker/CVE-2022-1271
Added
Reference
https://security.gentoo.org/glsa/202209-01
Added
Reference
https://security.netapp.com/advisory/ntap-20220930-0006/
Added
Reference
https://tukaani.org/xz/xzgrep-ZDI-CAN-16587.patch
Added
Reference
https://www.openwall.com/lists/oss-security/2022/04/07/8
Modified Analysis by NIST
8/26/2024 6:47:19 AM
Action
Type
Old Value
New Value
Added
CPE Configuration
OR
*cpe:2.3:a:tukaani:xz:*:*:*:*:*:*:*:* versions up to (excluding) 5.2.5
Changed
Reference Type
https://git.tukaani.org/?p=xz.git%3Ba=commit%3Bh=69d1b3fc29677af8ade8dc15dba83f0589cb63d6 No Types Assigned
https://git.tukaani.org/?p=xz.git%3Ba=commit%3Bh=69d1b3fc29677af8ade8dc15dba83f0589cb63d6 Broken Link
CVE Modified by Red Hat, Inc.
5/14/2024 5:55:16 AM
Action
Type
Old Value
New Value
CVE Modified by Red Hat, Inc.
11/06/2023 10:41:52 PM
Action
Type
Old Value
New Value
Removed
CWE
Red Hat, Inc. CWE-1173
Added
Reference
Red Hat, Inc. https://git.tukaani.org/?p=xz.git%3Ba=commit%3Bh=69d1b3fc29677af8ade8dc15dba83f0589cb63d6 [No types assigned]
Removed
Reference
Red Hat, Inc. https://git.tukaani.org/?p=xz.git;a=commit;h=69d1b3fc29677af8ade8dc15dba83f0589cb63d6
Modified Analysis by NIST
10/07/2022 10:14:24 AM
Action
Type
Old Value
New Value
Changed
Reference Type
https://security.netapp.com/advisory/ntap-20220930-0006/ No Types Assigned
https://security.netapp.com/advisory/ntap-20220930-0006/ Third Party Advisory
CVE Modified by Red Hat, Inc.
9/30/2022 12:15:16 PM
Action
Type
Old Value
New Value
Added
Reference
https://security.netapp.com/advisory/ntap-20220930-0006/ [No Types Assigned]
Initial Analysis by NIST
9/07/2022 12:42:33 PM
Action
Type
Old Value
New Value
Added
CVSS V3.1
NIST AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Added
CWE
NIST CWE-20
Added
CPE Configuration
OR
*cpe:2.3:a:gnu:gzip:*:*:*:*:*:*:*:* versions up to (excluding) 1.12
Added
CPE Configuration
OR
*cpe:2.3:a:redhat:jboss_data_grid:7.0.0:*:*:*:*:*:*:*
Added
CPE Configuration
OR
*cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
Changed
Reference Type
https://access.redhat.com/security/cve/CVE-2022-1271 No Types Assigned
https://access.redhat.com/security/cve/CVE-2022-1271 Third Party Advisory
Changed
Reference Type
https://bugzilla.redhat.com/show_bug.cgi?id=2073310 No Types Assigned
https://bugzilla.redhat.com/show_bug.cgi?id=2073310 Issue Tracking, Third Party Advisory
Changed
Reference Type
https://git.tukaani.org/?p=xz.git;a=commit;h=69d1b3fc29677af8ade8dc15dba83f0589cb63d6 No Types Assigned
https://git.tukaani.org/?p=xz.git;a=commit;h=69d1b3fc29677af8ade8dc15dba83f0589cb63d6 Mailing List, Patch, Third Party Advisory
Changed
Reference Type
https://lists.gnu.org/r/bug-gzip/2022-04/msg00011.html No Types Assigned
https://lists.gnu.org/r/bug-gzip/2022-04/msg00011.html Mailing List, Patch, Vendor Advisory
Changed
Reference Type
https://security-tracker.debian.org/tracker/CVE-2022-1271 No Types Assigned
https://security-tracker.debian.org/tracker/CVE-2022-1271 Third Party Advisory
Changed
Reference Type
https://security.gentoo.org/glsa/202209-01 No Types Assigned
https://security.gentoo.org/glsa/202209-01 Third Party Advisory
Changed
Reference Type
https://tukaani.org/xz/xzgrep-ZDI-CAN-16587.patch No Types Assigned
https://tukaani.org/xz/xzgrep-ZDI-CAN-16587.patch Patch, Third Party Advisory
Changed
Reference Type
https://www.openwall.com/lists/oss-security/2022/04/07/8 No Types Assigned
https://www.openwall.com/lists/oss-security/2022/04/07/8 Mailing List, Patch, Third Party Advisory
CVE Modified by Red Hat, Inc.
9/07/2022 1:15:11 AM
Action
Type
Old Value
New Value
Added
Reference
https://security.gentoo.org/glsa/202209-01 [No Types Assigned]
Quick Info
CVE Dictionary Entry: CVE-2022-1271 NVD
Published Date: 08/31/2022 NVD
Last Modified: 06/17/2026
Source: Red Hat, Inc.