{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-45582 exists.","fix":"Apply the vendor's patch.","what":"CVE-2025-45582 is a medium-severity path traversal vulnerability in GNU Tar, published on 11 Jul 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-45582 and fix it if it is affected.\n\nWhat it is: CVE-2025-45582 is a medium-severity path traversal vulnerability in GNU Tar, published on 11 Jul 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-45582 exists.\n\nAffected product: GNU Tar. 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-2025-45582/ (Markdown: https://insights.sbomify.com/CVE-2025-45582/index.md)","id":"CVE-2025-45582","markdown":"https://insights.sbomify.com/CVE-2025-45582/index.md","name":"CVE-2025-45582","record":{"aliases":["ALSA-2026:0002","ALSA-2026:0067","AZL-65082","AZL-65538","BELL-CVE-2025-45582","CLSA-2026-1769513855","CLSA-2026-1769598463","GHSA-f93m-9mq4-2fjj","JLSEC-2025-197","OESA-2026-1091","OESA-2026-1092","OESA-2026-1093","OESA-2026-1094","OESA-2026-1095","OESA-2026-1096","RHSA-2026:0002","RHSA-2026:0067","RHSA-2026:0135","RHSA-2026:0434","RHSA-2026:0435","RLSA-2026:0002","RLSA-2026:0067","SUSE-SU-2026:1177-1","SUSE-SU-2026:20955-1","SUSE-SU-2026:20959-1","SUSE-SU-2026:21002-1","SUSE-SU-2026:21143-1","SUSE-SU-2026:2615-1","UBUNTU-CVE-2025-45582","USN-8510-1","openSUSE-SU-2026:10743-1","openSUSE-SU-2026:20472-1"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["data_modify","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"GNU Tar utility","requires_auth":"none","summary":"Attackers can overwrite critical files like SSH keys by exploiting symlink traversal in multi-step TAR extractions, affecting systems relying on tar for untrusted archives.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"tar","vendor":"gnu"}],"cvss":{"score":4.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-24","name":"Path Traversal: '../filedir'"}],"description":"GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file's name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of \"Member name contains '..'\" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain \"x -\u003e ../../../../../home/victim/.ssh\" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which \"tar xf\" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each \"tar xf\" in its Security Rules of Thumb; however, third-party advice leads users to run \"tar xf\" more than once into the same directory.","ecosystems":["AlmaLinux:10","AlmaLinux:9","Red Hat:enterprise_linux:10.1","Red Hat:enterprise_linux:9::baseos","Red Hat:enterprise_linux_eus:10.0","Red Hat:rhel_eus:9.4::baseos","Red Hat:rhel_eus:9.6::baseos","Rocky Linux:10","Rocky Linux:9","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Basesystem 15 SP7","SUSE:Linux Enterprise Server 12 SP5-LTSS","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server 15 SP5-LTSS","SUSE:Linux Enterprise Server 15 SP6-LTSS","SUSE:Linux Enterprise Server 16.0","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Server for SAP Applications 15 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP6","SUSE:Linux Enterprise Server for SAP applications 16.0","SUSE:Linux Micro 6.0","SUSE:Linux Micro 6.1","SUSE:Linux Micro 6.2","openSUSE:Leap 15.6","openSUSE:Leap 16.0","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Path traversal in Tar","id":"CVE-2025-45582","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":40,"n_references":5,"next":{"headline":"Incorrect access control in the FTP protocol of Audi UTR 2.0 Universal Traffic Recorder 2.0 allows attackers to authenticate into the servic","id":"CVE-2025-45583"},"packages":[{"ecosystem":"AlmaLinux:10","fixed":["2:1.35-9.el10_1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/almalinux/tar","source":"ALSA-2026:0002"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.34-9.el9_7"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/almalinux/tar","source":"ALSA-2026:0067"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["2:1.35-9.el10_1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/redhat/tar","source":"RHSA-2026:0002"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["2:1.35-9.el10_1"],"introduced":["0"],"last_affected":[],"package":"tar-debuginfo","purl":"pkg:rpm/redhat/tar-debuginfo","source":"RHSA-2026:0002"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["2:1.35-9.el10_1"],"introduced":["0"],"last_affected":[],"package":"tar-debugsource","purl":"pkg:rpm/redhat/tar-debugsource","source":"RHSA-2026:0002"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["2:1.34-9.el9_7"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/redhat/tar","source":"RHSA-2026:0067"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["2:1.34-9.el9_7"],"introduced":["0"],"last_affected":[],"package":"tar-debuginfo","purl":"pkg:rpm/redhat/tar-debuginfo","source":"RHSA-2026:0067"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["2:1.34-9.el9_7"],"introduced":["0"],"last_affected":[],"package":"tar-debugsource","purl":"pkg:rpm/redhat/tar-debugsource","source":"RHSA-2026:0067"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["2:1.35-7.el10_0.2"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/redhat/tar","source":"RHSA-2026:0135"},{"ecosystem":"Red Hat:rhel_eus:9.4::baseos","fixed":["2:1.34-6.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/redhat/tar","source":"RHSA-2026:0434"},{"ecosystem":"Red Hat:rhel_eus:9.4::baseos","fixed":["2:1.34-6.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"tar-debuginfo","purl":"pkg:rpm/redhat/tar-debuginfo","source":"RHSA-2026:0434"},{"ecosystem":"Red Hat:rhel_eus:9.4::baseos","fixed":["2:1.34-6.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"tar-debugsource","purl":"pkg:rpm/redhat/tar-debugsource","source":"RHSA-2026:0434"},{"ecosystem":"Red Hat:rhel_eus:9.6::baseos","fixed":["2:1.34-7.el9_6.2"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/redhat/tar","source":"RHSA-2026:0435"},{"ecosystem":"Rocky Linux:10","fixed":["2:1.35-9.el10_1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/rocky-linux/tar?distro=rocky-linux-10\u0026epoch=2","source":"RLSA-2026:0002"},{"ecosystem":"Rocky Linux:9","fixed":["2:1.34-9.el9_7"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/rocky-linux/tar?distro=rocky-linux-9\u0026epoch=2","source":"RLSA-2026:0067"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","fixed":["1.34-150000.3.37.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOS","source":"SUSE-SU-2026:1177-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","fixed":["1.34-150000.3.37.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSS","source":"SUSE-SU-2026:1177-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","fixed":["1.34-150000.3.37.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-ESPOS","source":"SUSE-SU-2026:1177-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","fixed":["1.34-150000.3.37.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-LTSS","source":"SUSE-SU-2026:1177-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.2","fixed":["1.34-150000.3.37.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.2","source":"SUSE-SU-2026:1177-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.3","fixed":["1.34-150000.3.37.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.3","source":"SUSE-SU-2026:1177-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.4","fixed":["1.34-150000.3.37.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.4","source":"SUSE-SU-2026:1177-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["1.34-150000.3.37.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2026:1177-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP7","fixed":["1.34-150000.3.37.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP7","source":"SUSE-SU-2026:1177-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5-LTSS","fixed":["1.34-15.27.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5-LTSS","source":"SUSE-SU-2026:2615-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP4-LTSS","fixed":["1.34-150000.3.37.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSS","source":"SUSE-SU-2026:1177-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP5-LTSS","fixed":["1.34-150000.3.37.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP5-LTSS","source":"SUSE-SU-2026:1177-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP6-LTSS","fixed":["1.34-150000.3.37.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP6-LTSS","source":"SUSE-SU-2026:1177-1"},{"ecosystem":"SUSE:Linux Enterprise Server 16.0","fixed":["1.35-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20Server%2016.0","source":"SUSE-SU-2026:21143-1"},{"ecosystem":"SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","fixed":["1.34-15.27.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5","source":"SUSE-SU-2026:2615-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP4","fixed":["1.34-150000.3.37.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4","source":"SUSE-SU-2026:1177-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP5","fixed":["1.34-150000.3.37.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP5","source":"SUSE-SU-2026:1177-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP6","fixed":["1.34-150000.3.37.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP6","source":"SUSE-SU-2026:1177-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP applications 16.0","fixed":["1.35-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20applications%2016.0","source":"SUSE-SU-2026:21143-1"},{"ecosystem":"SUSE:Linux Micro 6.0","fixed":["1.35-3.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Micro%206.0","source":"SUSE-SU-2026:20959-1"},{"ecosystem":"SUSE:Linux Micro 6.1","fixed":["1.35-slfo.1.1_3.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Micro%206.1","source":"SUSE-SU-2026:20955-1"},{"ecosystem":"SUSE:Linux Micro 6.2","fixed":["1.35-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/suse/tar\u0026distro=SUSE%20Linux%20Micro%206.2","source":"SUSE-SU-2026:21002-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["1.34-150000.3.37.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/opensuse/tar\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2026:1177-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["1.35-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/opensuse/tar\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:20472-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.35-7.1"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:rpm/opensuse/tar\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10743-1"}],"prev":{"headline":"SQL injection in n/a","id":"CVE-2025-45542"},"products":["Tar"],"published":"2025-07-11","related":[{"cvss_score":10,"headline":"Privilege escalation in n/a","id":"CVE-2005-2541","kev_date_added":null,"published":"2005-08-10"},{"cvss_score":7.5,"headline":"Null dereference in n/a","id":"CVE-2019-9923","kev_date_added":null,"published":"2019-03-22"},{"cvss_score":7.5,"headline":"Path traversal in n/a","id":"CVE-2016-6321","kev_date_added":null,"published":"2016-12-09"},{"cvss_score":6.8,"headline":"Path traversal in n/a","id":"CVE-2007-4131","kev_date_added":null,"published":"2007-08-25"},{"cvss_score":6.2,"headline":"Denial of service in n/a","id":"CVE-2023-39804","kev_date_added":null,"published":"2024-03-27"},{"cvss_score":5.1,"headline":"Memory corruption in n/a","id":"CVE-2006-0300","kev_date_added":null,"published":"2006-02-24"},{"cvss_score":5,"headline":"Tar: tar: hidden file injection via crafted archives","id":"CVE-2026-5704","kev_date_added":null,"published":"2026-04-06"}],"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":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-02","vendors":["GNU"]},"summary":"Attackers can overwrite critical files like SSH keys by exploiting symlink traversal in multi-step TAR extractions, affecting systems relying on tar for untrusted archives.","url":"https://insights.sbomify.com/CVE-2025-45582/"}