CVE-2022-1271CWE-179CWE-20

CVE-2022-1271

High · published August 31, 2022

CVSS v3.1
8.8
EPSS
5%
Percentile
92.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.05205 · 92.5th percentile
Weaknesses
CWE-179 · Incorrect Behavior Order: Early Validation; CWE-20 · Improper Input Validation
Published
2022-08-31T20:15Z
Affected products (4)
ProductVersionsFixed in
gnu/gzip< 1.121.12
redhat/jboss_data_gridall versions—
debian/debian_linuxall versions—
tukaani/xz< 5.2.55.2.5
References (20)
https://access.redhat.com/security/cve/CVE-2022-1271 · [email protected]https://bugzilla.redhat.com/show_bug.cgi?id=2073310 · [email protected]https://git.tukaani.org/?p=xz.git%3Ba=commit%3Bh=69d1b3fc29677af8ade8dc15dba83f0589cb63d6 · [email protected]https://lists.gnu.org/r/bug-gzip/2022-04/msg00011.html · [email protected]https://security-tracker.debian.org/tracker/CVE-2022-1271 · [email protected]https://security.gentoo.org/glsa/202209-01 · [email protected]https://security.netapp.com/advisory/ntap-20220930-0006/ · [email protected]https://tukaani.org/xz/xzgrep-ZDI-CAN-16587.patch · [email protected]https://www.openwall.com/lists/oss-security/2022/04/07/8 · [email protected]https://access.redhat.com/security/cve/CVE-2022-1271 · af854a3a-2127-422b-91ae-364da2661108https://bugzilla.redhat.com/show_bug.cgi?id=2073310 · af854a3a-2127-422b-91ae-364da2661108https://git.tukaani.org/?p=xz.git%3Ba=commit%3Bh=69d1b3fc29677af8ade8dc15dba83f0589cb63d6 · af854a3a-2127-422b-91ae-364da2661108https://lists.gnu.org/r/bug-gzip/2022-04/msg00011.html · af854a3a-2127-422b-91ae-364da2661108https://security-tracker.debian.org/tracker/CVE-2022-1271 · af854a3a-2127-422b-91ae-364da2661108https://security.gentoo.org/glsa/202209-01 · af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20220930-0006/ · af854a3a-2127-422b-91ae-364da2661108https://tukaani.org/xz/xzgrep-ZDI-CAN-16587.patch · af854a3a-2127-422b-91ae-364da2661108https://www.openwall.com/lists/oss-security/2022/04/07/8 · af854a3a-2127-422b-91ae-364da2661108https://cert-portal.siemens.com/productcert/html/ssa-398330.html · 0b142b55-0307-4c5a-b3c9-f314f3fb7c5ehttps://cert-portal.siemens.com/productcert/html/ssa-455250.html · 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
EPSS history
Timeline
  • 31 AUG 15:33Z
    An arbitrary file write vulnerability was found in GNU gzip's zgrep utility
    cvelistv5