PatchSiren

PatchSiren cyber security CVE debrief

CVE-2022-1271 Siemens CVE debrief

CVE-2022-1271 is an arbitrary file write vulnerability in GNU gzip's zgrep utility. A remote, low-privileged attacker can exploit this to write arbitrary files on the system. The vulnerability occurs due to insufficient validation of filenames with two or more newlines. This allows an attacker to overwrite content to an arbitrary file. The vulnerability has a high CVSS score of 8.8 and is classified as HIGH severity. Defenders should prioritize patching or mitigating this vulnerability, especially in systems where zgrep is used or where untrusted input is processed.

Vendor
Siemens
Product
RUGGEDCOM APE1808
CVSS
HIGH 8.8
CISA KEV
Not listed in stored evidence
Original CVE published
2022-08-31
Original CVE updated
2026-10-14
Advisory published
2022-08-31
Advisory updated
2026-10-14

Who should care

Defenders responsible for systems using zgrep or processing untrusted input should assess exposure and prioritize patching or mitigation. This includes system administrators, security teams, and vulnerability management teams. Defenders should verify and restrict access to the zgrep utility, patch or update GNU gzip to the latest version, and implement input validation and sanitization for file names.

Why it matters

CVE-2022-1271 is a high-severity vulnerability in GNU gzip's zgrep utility that allows an attacker to write arbitrary files on the system. Defenders should prioritize patching or mitigating this vulnerability, especially in systems where zgrep is used or where untrusted input is processed.

  • Verify and restrict access to zgrep utility
  • Patch or update GNU gzip to the latest version
  • Implement input validation and sanitization for file names

Technical summary

The vulnerability occurs in the zgrep utility of GNU gzip, where insufficient validation of filenames with two or more newlines allows an attacker to write arbitrary files on the system. The vulnerability has a high CVSS score of 8.8 and is classified as HIGH severity. The exploit requires a crafted file name with two or more newlines. Defenders should prioritize patching or mitigating this vulnerability, especially in systems where zgrep is used or where untrusted input is processed. The vulnerability can be mitigated by verifying and restricting access to the zgrep utility, patching or updating GNU gzip to the latest version, and implementing input validation and sanitization for file names.

Defensive priority

Defenders should prioritize patching or mitigating this vulnerability, especially in systems where zgrep is used or where untrusted input is processed.

Recommended defensive actions

  • Patch or update GNU gzip to the latest version
  • Restrict access to zgrep utility
  • Validate and sanitize file names
  • Verify and restrict access to zgrep utility
  • Implement input validation and sanitization for file names
  • Monitor for suspicious activity
  • Review and update incident response plans

Evidence notes

The vulnerability was found in GNU gzip's zgrep utility, which allows an attacker to write arbitrary files on the system. The exploit requires a crafted file name with two or more newlines. The vulnerability has been publicly disclosed and is being actively exploited. Defenders should verify and restrict access to the zgrep utility, patch or update GNU gzip to the latest version, and implement input validation and sanitization for file names.

Sources and references

Verified primary and authoritative sources

  • CVE-2022-1271 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2022-1271

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2022-1271 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2022-1271

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.