CVE-2022-1271 Details
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 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
| CWE-179 | Incorrect Behavior Order: Early Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gnu gzip | < 1.12 |
CPE
Remediation
| |
| redhat jboss data grid | 7.0.0 |
CPE
Remediation
| |
| debian debian linux | 10.0 |
CPE
Remediation
| |
| tukaani xz | < 5.2.5 |
CPE
Remediation
| |
Change History
12 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 9, 2025 | CVE Modified | CISA-ADP |
| May 5, 2025 | Modified Analysis | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| Aug 26, 2024 | Modified Analysis | [email protected] |
| May 14, 2024 | CVE Modified | [email protected] |
| Nov 7, 2023 | CVE Modified | [email protected] |
| Oct 7, 2022 | Modified Analysis | [email protected] |
| Sep 30, 2022 | CVE Modified | [email protected] |
| Sep 7, 2022 | Initial Analysis | [email protected] |
| Sep 7, 2022 | CVE Modified | [email protected] |