QID 354300

Date Published: 2022-12-21

QID 354300: Amazon Linux Security Advisory for gzip : ALAS2022-2022-188

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. (
( CVE-2022-1271)



Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as Critical - 8.8 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    Please refer to Amazon advisory: ALAS2022-2022-188 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 354300

    Software Advisories
    Advisory ID Software Component Link
    ALAS2022-2022-188 amazon linux 2022 URL Logo alas.aws.amazon.com/AL2022/ALAS-2022-188.html