CVE-2022-1271
CVE-2022-1271 Vulnerability Analysis & Exploit Intelligence
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 Updated Sources: cvelistV5, redhat
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
6%
chance of exploitation in 30 days
CVSS base
8.8
HIGH
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (5)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 8.8 | CVSS 3.1 | HIGH | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-179
References
11 on the record
- bugzilla.redhat.com/show_bug.cgi?id=2073310
x_refsource_MISC
- www.openwall.com/lists/oss-security/2022/04/07/8
x_refsource_MISC
- lists.gnu.org/r/bug-gzip/2022-04/msg00011.html
x_refsource_MISC
- tukaani.org/xz/xzgrep-ZDI-CAN-16587.patch
x_refsource_MISC
- git.tukaani.org/?p=xz.git%3Ba=commit%3Bh=69d1b3fc29677af8ade8dc15dba83f0589cb63d6
x_refsource_MISC
- security-tracker.debian.org/tracker/CVE-2022-1271
x_refsource_MISC
- access.redhat.com/security/cve/CVE-2022-1271
x_refsource_MISC
- security.gentoo.org/glsa/202209-01
vendor-advisory, x_refsource_GENTOO
Related CVEs
Same product first, then the same weakness or threat actor.
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.