{"answers":{"affected":"It affects 4 products.","exploited":"There is no known exploitation of CVE-2022-1271 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2022-1271 is a high-severity path traversal vulnerability in Debian Debian Linux, published on 31 Aug 2022. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-1271 and fix it if it is affected.\n\nWhat it is: CVE-2022-1271 is a high-severity path traversal vulnerability in Debian Debian Linux, published on 31 Aug 2022. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-1271 in the wild and no public exploit code.\n\nAffected product: Debian Debian Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-1271/ (Markdown: https://insights.sbomify.com/CVE-2022-1271/index.md)","id":"CVE-2022-1271","markdown":"https://insights.sbomify.com/CVE-2022-1271/index.md","name":"CVE-2022-1271","record":{"aliases":["ALPINE-CVE-2022-1271","ALSA-2022:1537","ALSA-2022:4940","ALSA-2022:4991","AZL-10819","CLEANSTART-2025-BC18774","CLSA-2022-1652706322","CLSA-2022-1652801011","CLSA-2022-1652801052","CLSA-2022-1652801135","CLSA-2022-1652986585","CLSA-2022-1653005178","CLSA-2022-1668546739","CLSA-2022-1668547209","DEBIAN-CVE-2022-1271","DLA-2976-1","DLA-2977-1","DSA-5122-1","DSA-5123-1","GHSA-jrpw-543v-8r62","JLSEC-2026-61","MGASA-2022-0149","OESA-2022-1629","OESA-2022-1650","RHSA-2022:1537","RHSA-2022:1592","RHSA-2022:1665","RHSA-2022:1676","RHSA-2022:2191","RHSA-2022:4582","RHSA-2022:4940","RHSA-2022:4991","RHSA-2022:4992","RHSA-2022:4993","RHSA-2022:4994","RHSA-2022:5052","RLSA-2022:1537","RLSA-2022:4582","RLSA-2022:4940","RLSA-2022:4991","SUSE-SU-2022:1158-1","SUSE-SU-2022:1160-1","SUSE-SU-2022:1250-1","SUSE-SU-2022:1272-1","SUSE-SU-2022:1275-1","SUSE-SU-2022:14938-1","SUSE-SU-2022:1617-1","SUSE-SU-2022:1650-1","SUSE-SU-2022:1673-1","SUSE-SU-2022:1674-1","UBUNTU-CVE-2022-1271","USN-5378-1","USN-5378-2","USN-5378-3","USN-5378-4","openSUSE-SU-2024:11987-1","openSUSE-SU-2024:11992-1","openSUSE-SU-2024:12271-1"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"GNU gzip utility","requires_auth":"low_privilege","summary":"An attacker can exploit insufficient filename validation in zgrep to overwrite arbitrary files on the system via crafted multi-line filenames.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"gzip","vendor":"gnu"},{"product":"jboss_data_grid","vendor":"redhat"},{"product":"xz","vendor":"tukaani"}],"cvss":{"score":8.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-179","name":"Incorrect Behavior Order: Early Validation"}],"description":"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.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:8::crb","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:rhel_e4s:8.1::baseos","Red Hat:rhel_eus:8.2::baseos","Red Hat:rhel_eus:8.2::crb","Red Hat:rhel_eus:8.4::baseos","Red Hat:rhel_eus:8.4::crb","Rocky Linux:8","Rocky Linux:9","SUSE:Enterprise Storage 6","SUSE:Enterprise Storage 7","SUSE:HPE Helion OpenStack 8","SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15-ESPOS","SUSE:Linux Enterprise High Performance Computing 15-LTSS","SUSE:Linux Enterprise Micro 5.0","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Module for Basesystem 15 SP3","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Point of Sale 11 SP3","SUSE:Linux Enterprise Real Time 15 SP2","SUSE:Linux Enterprise Server 11 SP4-LTSS","SUSE:Linux Enterprise Server 12 SP2-BCL","SUSE:Linux Enterprise Server 12 SP3-BCL","SUSE:Linux Enterprise Server 12 SP3-LTSS","SUSE:Linux Enterprise Server 12 SP4-LTSS","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP1-BCL","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-BCL","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP3","SUSE:Linux Enterprise Server for SAP Applications 12 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Manager Proxy 4.1","SUSE:Manager Retail Branch Server 4.1","SUSE:Manager Server 4.1","SUSE:OpenStack Cloud 8","SUSE:OpenStack Cloud 9","SUSE:OpenStack Cloud Crowbar 8","SUSE:OpenStack Cloud Crowbar 9","openSUSE:Leap 15.3","openSUSE:Leap 15.4","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Path traversal in gzip, xz-utils","id":"CVE-2022-1271","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"debian:debian_linux","products":["debian:debian_linux"],"type":"path_traversal","year":"2022"},"n_packages":218,"n_references":9,"next":{"headline":"Import WP \u003c 2.4.6 - Admin+ Arbitrary File Upload to RCE","id":"CVE-2022-1273"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["1.9-13.el8_5"],"introduced":["0"],"last_affected":[],"package":"gzip","purl":"pkg:rpm/almalinux/gzip","source":"ALSA-2022:1537"},{"ecosystem":"AlmaLinux:8","fixed":["5.2.4-4.el8_6"],"introduced":["0"],"last_affected":[],"package":"xz","purl":"pkg:rpm/almalinux/xz","source":"ALSA-2022:4991"},{"ecosystem":"AlmaLinux:8","fixed":["5.2.4-4.el8_6"],"introduced":["0"],"last_affected":[],"package":"xz-devel","purl":"pkg:rpm/almalinux/xz-devel","source":"ALSA-2022:4991"},{"ecosystem":"AlmaLinux:8","fixed":["5.2.4-4.el8_6"],"introduced":["0"],"last_affected":[],"package":"xz-libs","purl":"pkg:rpm/almalinux/xz-libs","source":"ALSA-2022:4991"},{"ecosystem":"AlmaLinux:8","fixed":["5.2.4-4.el8_6"],"introduced":["0"],"last_affected":[],"package":"xz-lzma-compat","purl":"pkg:rpm/almalinux/xz-lzma-compat","source":"ALSA-2022:4991"},{"ecosystem":"AlmaLinux:9","fixed":["5.2.5-8.el9_0"],"introduced":["0"],"last_affected":[],"package":"xz","purl":"pkg:rpm/almalinux/xz","source":"ALSA-2022:4940"},{"ecosystem":"AlmaLinux:9","fixed":["5.2.5-8.el9_0"],"introduced":["0"],"last_affected":[],"package":"xz-devel","purl":"pkg:rpm/almalinux/xz-devel","source":"ALSA-2022:4940"},{"ecosystem":"AlmaLinux:9","fixed":["5.2.5-8.el9_0"],"introduced":["0"],"last_affected":[],"package":"xz-libs","purl":"pkg:rpm/almalinux/xz-libs","source":"ALSA-2022:4940"},{"ecosystem":"AlmaLinux:9","fixed":["5.2.5-8.el9_0"],"introduced":["0"],"last_affected":[],"package":"xz-lzma-compat","purl":"pkg:rpm/almalinux/xz-lzma-compat","source":"ALSA-2022:4940"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.5-11.el7_9"],"introduced":["0"],"last_affected":[],"package":"gzip","purl":"pkg:rpm/redhat/gzip","source":"RHSA-2022:2191"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.5-11.el7_9"],"introduced":["0"],"last_affected":[],"package":"gzip-debuginfo","purl":"pkg:rpm/redhat/gzip-debuginfo","source":"RHSA-2022:2191"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz","purl":"pkg:rpm/redhat/xz","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-compat-libs","purl":"pkg:rpm/redhat/xz-compat-libs","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-debuginfo","purl":"pkg:rpm/redhat/xz-debuginfo","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-devel","purl":"pkg:rpm/redhat/xz-devel","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-libs","purl":"pkg:rpm/redhat/xz-libs","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-lzma-compat","purl":"pkg:rpm/redhat/xz-lzma-compat","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-compat-libs","purl":"pkg:rpm/redhat/xz-compat-libs","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-debuginfo","purl":"pkg:rpm/redhat/xz-debuginfo","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-devel","purl":"pkg:rpm/redhat/xz-devel","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-lzma-compat","purl":"pkg:rpm/redhat/xz-lzma-compat","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.5-11.el7_9"],"introduced":["0"],"last_affected":[],"package":"gzip","purl":"pkg:rpm/redhat/gzip","source":"RHSA-2022:2191"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.5-11.el7_9"],"introduced":["0"],"last_affected":[],"package":"gzip-debuginfo","purl":"pkg:rpm/redhat/gzip-debuginfo","source":"RHSA-2022:2191"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz","purl":"pkg:rpm/redhat/xz","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-compat-libs","purl":"pkg:rpm/redhat/xz-compat-libs","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-debuginfo","purl":"pkg:rpm/redhat/xz-debuginfo","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-devel","purl":"pkg:rpm/redhat/xz-devel","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-libs","purl":"pkg:rpm/redhat/xz-libs","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-lzma-compat","purl":"pkg:rpm/redhat/xz-lzma-compat","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.5-11.el7_9"],"introduced":["0"],"last_affected":[],"package":"gzip","purl":"pkg:rpm/redhat/gzip","source":"RHSA-2022:2191"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.5-11.el7_9"],"introduced":["0"],"last_affected":[],"package":"gzip-debuginfo","purl":"pkg:rpm/redhat/gzip-debuginfo","source":"RHSA-2022:2191"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz","purl":"pkg:rpm/redhat/xz","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-compat-libs","purl":"pkg:rpm/redhat/xz-compat-libs","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-debuginfo","purl":"pkg:rpm/redhat/xz-debuginfo","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-devel","purl":"pkg:rpm/redhat/xz-devel","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-libs","purl":"pkg:rpm/redhat/xz-libs","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:5.2.2-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"xz-lzma-compat","purl":"pkg:rpm/redhat/xz-lzma-compat","source":"RHSA-2022:5052"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.9-13.el8_5"],"introduced":["0"],"last_affected":[],"package":"gzip","purl":"pkg:rpm/redhat/gzip","source":"RHSA-2022:1537"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.9-13.el8_5"],"introduced":["0"],"last_affected":[],"package":"gzip-debuginfo","purl":"pkg:rpm/redhat/gzip-debuginfo","source":"RHSA-2022:1537"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.9-13.el8_5"],"introduced":["0"],"last_affected":[],"package":"gzip-debugsource","purl":"pkg:rpm/redhat/gzip-debugsource","source":"RHSA-2022:1537"}],"prev":{"headline":"Memory corruption in GraphicsMagick","id":"CVE-2022-1270"},"products":["gzip, xz-utils"],"published":"2022-08-31","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-14","vendors":["n/a"]},"summary":"An attacker can exploit insufficient filename validation in zgrep to overwrite arbitrary files on the system via crafted multi-line filenames.","url":"https://insights.sbomify.com/CVE-2022-1271/"}