{"answers":{"affected":"5 open source packages ship an affected version, including salt.","exploited":"There is no known exploitation of CVE-2024-22231 in the wild and no public exploit code.","fix":"Upgrade salt to a fixed version for your release line: 3005.5 or 3006.6.","what":"CVE-2024-22231 is a medium-severity path traversal vulnerability in VMware Salt Project, published on 27 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-22231 and fix it if it is affected.\n\nWhat it is: CVE-2024-22231 is a medium-severity path traversal vulnerability in VMware Salt Project, published on 27 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-22231 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- salt (PyPI): affected all versions; fixed in 3005.5, 3006.6\n- salt (PyPI): affected all versions; fixed in 3005.5\n- salt (PyPI): affected all versions; fixed in 3005.5\n- salt (PyPI): affected from 3006.0; fixed in 3006.6\n- salt (PyPI): affected from 3006.0; fixed in 3006.6\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-2024-22231/ (Markdown: https://insights.sbomify.com/CVE-2024-22231/index.md)","id":"CVE-2024-22231","markdown":"https://insights.sbomify.com/CVE-2024-22231/index.md","name":"CVE-2024-22231","record":{"aliases":["GHSA-q27c-j6j9-53w3","PYSEC-2026-1900","UBUNTU-CVE-2024-22231"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Salt Project","requires_auth":"low_privilege","summary":"A malicious attacker can exploit a directory traversal vulnerability in Salt Project to create arbitrary directories on the Salt master.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"vmware","cpe":[],"cvss":{"score":5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Syndic cache directory creation is vulnerable to a directory traversal attack in salt project which can lead a malicious attacker to create an arbitrary directory on a Salt master.","ecosystems":["PyPI"],"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":"Syndic cache directory creation is vulnerable to a directory traversal attack","id":"CVE-2024-22231","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":5,"n_references":1,"next":{"headline":"Specially crafted url can be created which leads to a directory traversal in the salt file server","id":"CVE-2024-22232"},"packages":[{"ecosystem":"PyPI","fixed":["3005.5","3006.6"],"introduced":["0","3006.0"],"last_affected":[],"package":"salt","purl":"pkg:pypi/salt","source":"PYSEC-2026-1900"},{"ecosystem":"PyPI","fixed":["3005.5"],"introduced":["0"],"last_affected":[],"package":"salt","purl":null,"source":"GHSA-q27c-j6j9-53w3"},{"ecosystem":"PyPI","fixed":["3005.5"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:pypi/salt","source":"GHSA-q27c-j6j9-53w3"},{"ecosystem":"PyPI","fixed":["3006.6"],"introduced":["3006.0"],"last_affected":[],"package":"salt","purl":null,"source":"GHSA-q27c-j6j9-53w3"},{"ecosystem":"PyPI","fixed":["3006.6"],"introduced":["3006.0"],"last_affected":[],"package":"salt","purl":"pkg:pypi/salt","source":"GHSA-q27c-j6j9-53w3"}],"prev":{"headline":"Cross-site scripting in Unity","id":"CVE-2024-22230"},"products":["Salt Project"],"published":"2024-06-27","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-30","vendors":["VMware"]},"summary":"A malicious attacker can exploit a directory traversal vulnerability in Salt Project to create arbitrary directories on the Salt master.","url":"https://insights.sbomify.com/CVE-2024-22231/"}