Improper input validation in GNU Gzip
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 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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.052 (92.5th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 92nd percentile — 92.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.051 · newest: 0.052 · change: +0.001
Affected products
- GNU Gzip
- Tukaani Xz
- Debian Linux — versions 10.0
- Red Hat Jboss Data Grid — versions 7.0.0
- Gzip, Xz-Utils — versions Fixed in gzip 1.12
Weakness classification (CWE)
Public proof-of-concept exploits
References
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
- www.openwall.com/lists/oss-security/2022/04/07/8 (Patch, Mailing List, Third Party Advisory)
- lists.gnu.org/r/bug-gzip/2022-04/msg00011.html (Patch, Mailing List, Vendor Advisory)
- tukaani.org/xz/xzgrep-ZDI-CAN-16587.patch (Patch, Third Party Advisory)
- git.tukaani.org/ (Broken Link)
- security-tracker.debian.org/tracker/CVE-2022-1271 (Third Party Advisory)
- access.redhat.com/security/cve/CVE-2022-1271 (Third Party Advisory)
- security.gentoo.org/glsa/202209-01 (vendor-advisory, Third Party Advisory)
- security.netapp.com/advisory/ntap-20220930-0006/ (Third Party Advisory)
- 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
Frequently asked questions
- What is CVE-2022-1271?
- CVE-2022-1271 is a high-severity vulnerability in GNU Gzip, classified under CWE-179. CVSS score: 8.8/10. Published 2022-08-31.
- How severe is CVE-2022-1271?
- High severity. CVSS v3 base score is 8.8 out of 10.
- Is CVE-2022-1271 known to be exploited?
- 8 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.