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 trend (30 days)EPSS over the last 30 days for CVE-2022-1271: held from 0.051 to 0.052.

EPSS over last 30 days · oldest: 0.051 · newest: 0.052 · change: +0.001

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

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.