{"answers":{"affected":"2 open source packages ship an affected version, including python and python-min. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2007-4559 exists.","fix":"Upgrade python to a fixed version for your release line: 3.6.16, 3.8.17, 3.9.17 or 3.10.12.","what":"CVE-2007-4559 is a critical path traversal vulnerability in Python Python, published on 28 Aug 2007. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2007-4559 and fix it if it is affected.\n\nWhat it is: CVE-2007-4559 is a critical path traversal vulnerability in Python Python, published on 28 Aug 2007. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2007-4559 exists.\n\nAffected packages and fixed versions:\n- python (Bitnami): affected all versions; fixed in 3.6.16, 3.8.17, 3.9.17, 3.10.12, 3.11.4\n- python-min (Bitnami): affected all versions; fixed in 3.6.16, 3.8.17, 3.9.17, 3.10.12, 3.11.4\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-2007-4559/ (Markdown: https://insights.sbomify.com/CVE-2007-4559/index.md)","id":"CVE-2007-4559","markdown":"https://insights.sbomify.com/CVE-2007-4559/index.md","name":"CVE-2007-4559","record":{"aliases":["ALSA-2023:6324","ALSA-2023:6659","ALSA-2023:6694","ALSA-2023:6914","ALSA-2023:7151","ALSA-2023:7176","AZL-109554","AZL-6822","AZL-6828","BIT-python-2007-4559","BIT-python-min-2007-4559","CLSA-2025-1740471603","CLSA-2025-1740599937","CLSA-2025-1740645663","CLSA-2025-1741125595","CLSA-2025-1759780334","CLSA-2025-1759780820","CLSA-2025-1759857092","CLSA-2025-1765376235","CLSA-2026-1782894738","GHSA-gw9q-c7gh-j9vm","OESA-2023-1518","OESA-2023-1519","OESA-2023-1520","OESA-2024-2304","PSF-2007-2","RHSA-2023:6324","RHSA-2023:6659","RHSA-2023:6694","RHSA-2023:6914","RHSA-2023:7151","RHSA-2023:7176","RHSA-2024:0374","RHSA-2024:0587","SUSE-SU-2023:2463-1","SUSE-SU-2023:2473-1","SUSE-SU-2023:2509-1","SUSE-SU-2023:2517-1","SUSE-SU-2023:2641-1","SUSE-SU-2023:2778-1","UBUNTU-CVE-2007-4559","openSUSE-SU-2024:12684-1","openSUSE-SU-2024:12947-1","openSUSE-SU-2024:12964-1","openSUSE-SU-2024:12977-1","openSUSE-SU-2024:13770-1","openSUSE-SU-2025:15104-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Python tarfile module","requires_auth":"none","summary":"Attackers can overwrite arbitrary files via directory traversal in Python's tarfile module, requiring user-assisted archive extraction.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"python","vendor":"python"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted remote attackers to overwrite arbitrary files via a .. (dot dot) sequence in filenames in a TAR archive, a related issue to CVE-2001-1267.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Bitnami","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:enterprise_linux:9::crb","Red Hat:rhel_eus:8.6::appstream","Red Hat:rhel_eus:8.6::baseos","Red Hat:rhel_eus:8.8::appstream","Red Hat:rhel_eus:8.8::baseos","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Module for Development Tools 15 SP4","SUSE:Linux Enterprise Module for Development Tools 15 SP5","SUSE:Linux Enterprise Module for Python 3 15 SP4","SUSE:Linux Enterprise Module for Python 3 15 SP5","SUSE:Linux Enterprise Real Time 15 SP3","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Software Development Kit 12 SP5","openSUSE:Leap 15.4","openSUSE:Leap 15.5","openSUSE:Leap Micro 5.3","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2022-09-20","github_poc":7,"max_poc_stars":82,"metasploit":0,"nuclei":0,"refs":[{"date":"2022-09-20T17:03:57Z","kind":"github_poc","ref":"https://github.com/advanced-threat-research/Creosote","stars":82,"title":"Creosote is our solution to searching for the tarfile vulnerability described by CVE-2007-4559."},{"date":"2025-07-01T11:16:36Z","kind":"github_poc","ref":"https://github.com/depers-rus/CVE-2007-4559","stars":1,"title":null},{"date":"2022-10-21T06:38:41Z","kind":"github_poc","ref":"https://github.com/Ooscaar/MALW","stars":0,"title":"CVE-2007-4559 - Polemarch exploit"},{"date":"2023-09-10T21:49:32Z","kind":"github_poc","ref":"https://github.com/davidholiday/CVE-2007-4559","stars":0,"title":null},{"date":"2024-05-03T00:09:55Z","kind":"github_poc","ref":"https://github.com/luigigubello/trellix-tarslip-patch-bypass","stars":0,"title":"Bypass for CVE-2007-4559 Trellix patch"},{"date":"2024-07-07T16:37:22Z","kind":"github_poc","ref":"https://github.com/m0d0ri205/wargame-tarpioka","stars":0,"title":"YISF 2024 CTF-Web (Directory Traversal via \".tar\" file, CVE-2007-4559), easy"},{"date":"2026-04-18T11:37:29Z","kind":"github_poc","ref":"https://github.com/jithinodattu/CVE-2007-4559-lab","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Path traversal in n/a","id":"CVE-2007-4559","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"python:python","products":["python:python"],"type":"path_traversal","year":"2007"},"n_packages":138,"n_references":9,"next":{"headline":"Command injection in n/a","id":"CVE-2007-4560"},"packages":[{"ecosystem":"Bitnami","fixed":["3.6.16","3.8.17","3.9.17","3.10.12","3.11.4"],"introduced":["0","3.7.0","3.9.0","3.10.0","3.11.0"],"last_affected":[],"package":"python","purl":"pkg:bitnami/python","source":"BIT-python-2007-4559"},{"ecosystem":"Bitnami","fixed":["3.6.16","3.8.17","3.9.17","3.10.12","3.11.4"],"introduced":["0","3.7.0","3.9.0","3.10.0","3.11.0"],"last_affected":[],"package":"python-min","purl":"pkg:bitnami/python-min","source":"BIT-python-min-2007-4559"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-56.el8_9.alma.1"],"introduced":["0"],"last_affected":[],"package":"platform-python","purl":"pkg:rpm/almalinux/platform-python","source":"ALSA-2023:7151"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-56.el8_9.alma.1"],"introduced":["0"],"last_affected":[],"package":"platform-python-debug","purl":"pkg:rpm/almalinux/platform-python-debug","source":"ALSA-2023:7151"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-56.el8_9.alma.1"],"introduced":["0"],"last_affected":[],"package":"platform-python-devel","purl":"pkg:rpm/almalinux/platform-python-devel","source":"ALSA-2023:7151"},{"ecosystem":"AlmaLinux:8","fixed":["9.0.3-23.el8"],"introduced":["0"],"last_affected":[],"package":"platform-python-pip","purl":"pkg:rpm/almalinux/platform-python-pip","source":"ALSA-2023:7176"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-56.el8_9.alma.1"],"introduced":["0"],"last_affected":[],"package":"python3-idle","purl":"pkg:rpm/almalinux/python3-idle","source":"ALSA-2023:7151"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-56.el8_9.alma.1"],"introduced":["0"],"last_affected":[],"package":"python3-libs","purl":"pkg:rpm/almalinux/python3-libs","source":"ALSA-2023:7151"},{"ecosystem":"AlmaLinux:8","fixed":["9.0.3-23.el8"],"introduced":["0"],"last_affected":[],"package":"python3-pip","purl":"pkg:rpm/almalinux/python3-pip","source":"ALSA-2023:7176"},{"ecosystem":"AlmaLinux:8","fixed":["9.0.3-23.el8"],"introduced":["0"],"last_affected":[],"package":"python3-pip-wheel","purl":"pkg:rpm/almalinux/python3-pip-wheel","source":"ALSA-2023:7176"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-56.el8_9.alma.1"],"introduced":["0"],"last_affected":[],"package":"python3-test","purl":"pkg:rpm/almalinux/python3-test","source":"ALSA-2023:7151"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-56.el8_9.alma.1"],"introduced":["0"],"last_affected":[],"package":"python3-tkinter","purl":"pkg:rpm/almalinux/python3-tkinter","source":"ALSA-2023:7151"},{"ecosystem":"AlmaLinux:8","fixed":["22.3.1-4.el8"],"introduced":["0"],"last_affected":[],"package":"python3.11-pip","purl":"pkg:rpm/almalinux/python3.11-pip","source":"ALSA-2023:6914"},{"ecosystem":"AlmaLinux:8","fixed":["22.3.1-4.el8"],"introduced":["0"],"last_affected":[],"package":"python3.11-pip-wheel","purl":"pkg:rpm/almalinux/python3.11-pip-wheel","source":"ALSA-2023:6914"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.18-1.el9_3"],"introduced":["0"],"last_affected":[],"package":"python-unversioned-command","purl":"pkg:rpm/almalinux/python-unversioned-command","source":"ALSA-2023:6659"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.18-1.el9_3"],"introduced":["0"],"last_affected":[],"package":"python3","purl":"pkg:rpm/almalinux/python3","source":"ALSA-2023:6659"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.18-1.el9_3"],"introduced":["0"],"last_affected":[],"package":"python3-debug","purl":"pkg:rpm/almalinux/python3-debug","source":"ALSA-2023:6659"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.18-1.el9_3"],"introduced":["0"],"last_affected":[],"package":"python3-devel","purl":"pkg:rpm/almalinux/python3-devel","source":"ALSA-2023:6659"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.18-1.el9_3"],"introduced":["0"],"last_affected":[],"package":"python3-idle","purl":"pkg:rpm/almalinux/python3-idle","source":"ALSA-2023:6659"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.18-1.el9_3"],"introduced":["0"],"last_affected":[],"package":"python3-libs","purl":"pkg:rpm/almalinux/python3-libs","source":"ALSA-2023:6659"},{"ecosystem":"AlmaLinux:9","fixed":["21.2.3-7.el9"],"introduced":["0"],"last_affected":[],"package":"python3-pip","purl":"pkg:rpm/almalinux/python3-pip","source":"ALSA-2023:6694"},{"ecosystem":"AlmaLinux:9","fixed":["21.2.3-7.el9"],"introduced":["0"],"last_affected":[],"package":"python3-pip-wheel","purl":"pkg:rpm/almalinux/python3-pip-wheel","source":"ALSA-2023:6694"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.18-1.el9_3"],"introduced":["0"],"last_affected":[],"package":"python3-test","purl":"pkg:rpm/almalinux/python3-test","source":"ALSA-2023:6659"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.18-1.el9_3"],"introduced":["0"],"last_affected":[],"package":"python3-tkinter","purl":"pkg:rpm/almalinux/python3-tkinter","source":"ALSA-2023:6659"},{"ecosystem":"AlmaLinux:9","fixed":["22.3.1-4.el9"],"introduced":["0"],"last_affected":[],"package":"python3.11-pip","purl":"pkg:rpm/almalinux/python3.11-pip","source":"ALSA-2023:6324"},{"ecosystem":"AlmaLinux:9","fixed":["22.3.1-4.el9"],"introduced":["0"],"last_affected":[],"package":"python3.11-pip-wheel","purl":"pkg:rpm/almalinux/python3.11-pip-wheel","source":"ALSA-2023:6324"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.6.8-56.el8_9"],"introduced":["0"],"last_affected":[],"package":"platform-python","purl":"pkg:rpm/redhat/platform-python","source":"RHSA-2023:7151"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.6.8-56.el8_9"],"introduced":["0"],"last_affected":[],"package":"platform-python-debug","purl":"pkg:rpm/redhat/platform-python-debug","source":"RHSA-2023:7151"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.6.8-56.el8_9"],"introduced":["0"],"last_affected":[],"package":"platform-python-devel","purl":"pkg:rpm/redhat/platform-python-devel","source":"RHSA-2023:7151"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.6.8-56.el8_9"],"introduced":["0"],"last_affected":[],"package":"python3-debuginfo","purl":"pkg:rpm/redhat/python3-debuginfo","source":"RHSA-2023:7151"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.6.8-56.el8_9"],"introduced":["0"],"last_affected":[],"package":"python3-debugsource","purl":"pkg:rpm/redhat/python3-debugsource","source":"RHSA-2023:7151"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.6.8-56.el8_9"],"introduced":["0"],"last_affected":[],"package":"python3-idle","purl":"pkg:rpm/redhat/python3-idle","source":"RHSA-2023:7151"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:9.0.3-23.el8"],"introduced":["0"],"last_affected":[],"package":"python3-pip","purl":"pkg:rpm/redhat/python3-pip","source":"RHSA-2023:7176"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.6.8-56.el8_9"],"introduced":["0"],"last_affected":[],"package":"python3-test","purl":"pkg:rpm/redhat/python3-test","source":"RHSA-2023:7151"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.6.8-56.el8_9"],"introduced":["0"],"last_affected":[],"package":"python3-tkinter","purl":"pkg:rpm/redhat/python3-tkinter","source":"RHSA-2023:7151"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:22.3.1-4.el8"],"introduced":["0"],"last_affected":[],"package":"python3.11-pip","purl":"pkg:rpm/redhat/python3.11-pip","source":"RHSA-2023:6914"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:22.3.1-4.el8"],"introduced":["0"],"last_affected":[],"package":"python3.11-pip-wheel","purl":"pkg:rpm/redhat/python3.11-pip-wheel","source":"RHSA-2023:6914"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:3.6.8-56.el8_9"],"introduced":["0"],"last_affected":[],"package":"platform-python","purl":"pkg:rpm/redhat/platform-python","source":"RHSA-2023:7151"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:9.0.3-23.el8"],"introduced":["0"],"last_affected":[],"package":"platform-python-pip","purl":"pkg:rpm/redhat/platform-python-pip","source":"RHSA-2023:7176"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:9.0.3-23.el8"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/redhat/python-pip","source":"RHSA-2023:7176"}],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2007-4557"},"products":["n/a"],"published":"2007-08-28","related":[{"cvss_score":10,"headline":"Integer overflow in n/a","id":"CVE-2008-5031","kev_date_added":null,"published":"2008-11-10"},{"cvss_score":9.8,"headline":"Path traversal in n/a","id":"CVE-2014-4650","kev_date_added":null,"published":"2020-02-20"},{"cvss_score":9.8,"headline":"Integer overflow in n/a","id":"CVE-2016-5636","kev_date_added":null,"published":"2016-09-02"},{"cvss_score":8.8,"headline":"Command injection in n/a","id":"CVE-2017-17522","kev_date_added":null,"published":"2017-12-14"},{"cvss_score":8.7,"headline":"Incremental HTMLParser feed() allows CPU-exhaustion DoS via repeated unterminated markup declarations","id":"CVE-2026-15308","kev_date_added":null,"published":"2026-07-09"},{"cvss_score":7.8,"headline":"Privilege escalation in n/a","id":"CVE-2019-13404","kev_date_added":null,"published":"2019-07-08"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-01-17","vendors":["n/a"]},"summary":"Attackers can overwrite arbitrary files via directory traversal in Python's tarfile module, requiring user-assisted archive extraction.","url":"https://insights.sbomify.com/CVE-2007-4559/"}