Security mailing lists by PureSourceCode

CVE-2022-1271

HIGH 8.8CVSS 3.1

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
31 Aug 2022
Last modified
14 Oct 2026
Assigned by
secalert@redhat.com
NVD status
Modified
Weakness
CWE-179CWE-20
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD gnu gzip
cpe:2.3:a:gnu:gzip:*:*:*:*:*:*:*:*
< 1.12 1.12
NVD redhat jboss_data_grid
cpe:2.3:a:redhat:jboss_data_grid:7.0.0:*:*:*:*:*:*:*
= 7.0.0
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
= 10.0
NVD tukaani xz
cpe:2.3:a:tukaani:xz:*:*:*:*:*:*:*:*
< 5.2.5 5.2.5

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 31 Aug 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.