{"answers":{"affected":"5 open source packages ship an affected version, including salt. It affects 1 product.","exploited":"There is no known exploitation of CVE-2017-12791 in the wild and no public exploit code.","fix":"Upgrade salt to a fixed version for your release line: 2016.11.7 or 2017.7.1.","what":"CVE-2017-12791 is a critical path traversal vulnerability in Saltstack Salt, published on 23 Aug 2017. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2017-12791 and fix it if it is affected.\n\nWhat it is: CVE-2017-12791 is a critical path traversal vulnerability in Saltstack Salt, published on 23 Aug 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2017-12791 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- salt (PyPI): affected all versions; fixed in 2016.11.7, 2017.7.1\n- salt (PyPI): affected all versions; fixed in 2016.11.7\n- salt (PyPI): affected all versions; fixed in 2016.11.7\n- salt (PyPI): affected from 2017.7.0; fixed in 2017.7.1\n- salt (PyPI): affected from 2017.7.0; fixed in 2017.7.1\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-2017-12791/ (Markdown: https://insights.sbomify.com/CVE-2017-12791/index.md)","id":"CVE-2017-12791","markdown":"https://insights.sbomify.com/CVE-2017-12791/index.md","name":"CVE-2017-12791","record":{"aliases":["GHSA-xxvj-8g5m-4qgw","PYSEC-2017-35","SUSE-SU-2017:2666-1","SUSE-SU-2017:2674-1","SUSE-SU-2017:2676-1","UBUNTU-CVE-2017-12791"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["privilege_escalation","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"SaltStack Salt","requires_auth":"none","summary":"Remote attackers can bypass authentication and gain unauthorized access to the Salt master by exploiting a directory traversal flaw in minion ID validation.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"salt","vendor":"saltstack"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Directory traversal vulnerability in minion id validation in SaltStack Salt before 2016.11.7 and 2017.7.x before 2017.7.1 allows remote minions with incorrect credentials to authenticate to a master via a crafted minion ID.","ecosystems":["PyPI","SUSE:Enterprise Storage 3","SUSE:Enterprise Storage 4","SUSE:Linux Enterprise Module for Advanced Systems Management 12","SUSE:Linux Enterprise Point of Sale 12 SP2","SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLS","SUSE:Linux Enterprise Server 11 SP4-CLIENT-TOOLS","SUSE:Manager Client Tools 12","SUSE:Manager Proxy 3.0","SUSE:Manager Proxy 3.1","SUSE:Manager Server 3.0","SUSE:Manager Server 3.1"],"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":"SaltStack Salt Directory traversal vulnerability in minion id validation","id":"CVE-2017-12791","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"saltstack:salt","products":["saltstack:salt"],"type":"path_traversal","year":"2017"},"n_packages":16,"n_references":6,"next":{"headline":"Cross-site request forgery in n/a","id":"CVE-2017-12792"},"packages":[{"ecosystem":"PyPI","fixed":["2016.11.7","2017.7.1"],"introduced":["0","2017.7"],"last_affected":[],"package":"salt","purl":"pkg:pypi/salt","source":"PYSEC-2017-35"},{"ecosystem":"PyPI","fixed":["2016.11.7"],"introduced":["0"],"last_affected":[],"package":"salt","purl":null,"source":"GHSA-xxvj-8g5m-4qgw"},{"ecosystem":"PyPI","fixed":["2016.11.7"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:pypi/salt","source":"GHSA-xxvj-8g5m-4qgw"},{"ecosystem":"PyPI","fixed":["2017.7.1"],"introduced":["2017.7.0"],"last_affected":[],"package":"salt","purl":null,"source":"GHSA-xxvj-8g5m-4qgw"},{"ecosystem":"PyPI","fixed":["2017.7.1"],"introduced":["2017.7.0"],"last_affected":[],"package":"salt","purl":"pkg:pypi/salt","source":"GHSA-xxvj-8g5m-4qgw"},{"ecosystem":"SUSE:Enterprise Storage 3","fixed":["2016.11.4-46.7.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Enterprise%20Storage%203","source":"SUSE-SU-2017:2676-1"},{"ecosystem":"SUSE:Enterprise Storage 4","fixed":["2016.11.4-46.7.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Enterprise%20Storage%204","source":"SUSE-SU-2017:2676-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Advanced Systems Management 12","fixed":["2016.11.4-46.7.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Advanced%20Systems%20Management%2012","source":"SUSE-SU-2017:2676-1"},{"ecosystem":"SUSE:Linux Enterprise Point of Sale 12 SP2","fixed":["2016.11.4-46.7.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Point%20of%20Sale%2012%20SP2","source":"SUSE-SU-2017:2676-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLS","fixed":["2016.11.4-43.7.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP3-CLIENT-TOOLS","source":"SUSE-SU-2017:2666-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP4-CLIENT-TOOLS","fixed":["2016.11.4-43.7.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4-CLIENT-TOOLS","source":"SUSE-SU-2017:2666-1"},{"ecosystem":"SUSE:Manager Client Tools 12","fixed":["2016.11.4-46.7.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Manager%20Client%20Tools%2012","source":"SUSE-SU-2017:2676-1"},{"ecosystem":"SUSE:Manager Proxy 3.0","fixed":["2016.11.4-46.7.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Manager%20Proxy%203.0","source":"SUSE-SU-2017:2676-1"},{"ecosystem":"SUSE:Manager Proxy 3.1","fixed":["2016.11.4-4.3.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Manager%20Proxy%203.1","source":"SUSE-SU-2017:2674-1"},{"ecosystem":"SUSE:Manager Server 3.0","fixed":["2016.11.4-46.7.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Manager%20Server%203.0","source":"SUSE-SU-2017:2676-1"},{"ecosystem":"SUSE:Manager Server 3.1","fixed":["2016.11.4-4.3.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Manager%20Server%203.1","source":"SUSE-SU-2017:2674-1"}],"prev":{"headline":"Cross-site request forgery in n/a","id":"CVE-2017-12790"},"products":["n/a"],"published":"2017-08-23","related":[{"cvss_score":10,"headline":"SaltStack insecurely uses /tmp","id":"CVE-2013-4437","kev_date_added":null,"published":"2013-11-05"},{"cvss_score":10,"headline":"SaltStack Privilege Escalation vulnerability","id":"CVE-2013-6617","kev_date_added":null,"published":"2013-11-05"},{"cvss_score":9.8,"headline":"Code injection in n/a","id":"CVE-2021-33226","kev_date_added":null,"published":"2023-02-17"},{"cvss_score":9.8,"headline":"salt-api unauthenticated remote code execution","id":"CVE-2021-25315","kev_date_added":null,"published":"2021-03-03"},{"cvss_score":9.8,"headline":"SaltStack Salt Remote command execution and incorrect access control when using salt-api","id":"CVE-2018-15751","kev_date_added":null,"published":"2018-10-24"},{"cvss_score":9.8,"headline":"SaltStack Salt allows compromised salt-minions to impersonate the salt-master","id":"CVE-2017-7893","kev_date_added":null,"published":"2018-04-23"},{"cvss_score":9.8,"headline":"SaltStack Salt Directory traversal vulnerability in minion id validation","id":"CVE-2017-14695","kev_date_added":null,"published":"2017-10-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Remote attackers can bypass authentication and gain unauthorized access to the Salt master by exploiting a directory traversal flaw in minion ID validation.","url":"https://insights.sbomify.com/CVE-2017-12791/"}