{"id":"CVE-2024-38824","kind":"vulnerability","aliases":["CVE-2024-38824","GHSA-8pcp-r83j-fc92"],"related":[],"title":"Salt vulnerable to directory traversal attack in file receiving method","description":"Directory traversal vulnerability in recv_file method allows arbitrary files to be written to the master cache directory.","summary":"Salt's recv_file method does not block path traversal, so a crafted request can write arbitrary files into the master cache directory. An attacker who can reach the Salt master can plant files that the master may later use or execute.","severity":"critical","cvss":9.6,"epss":0.01063,"exploited":false,"exploited_at":null,"products":[{"name":"salt","fixed":["3007.4"],"affected":">= 3007.0rc1, < 3007.4","ecosystem":"pypi"},{"name":"salt","fixed":["3006.12"],"affected":">= 3006.0rc1, < 3006.12","ecosystem":"pypi"},{"name":"saltstack salt","fixed":["3006.12"],"affected":">= 3006.0, < 3006.12","ecosystem":"vendor"},{"name":"saltstack salt","fixed":["3007.4"],"affected":">= 3007.0, < 3007.4","ecosystem":"vendor"},{"via":"cpe","name":"salt","fixed":["3006.12"],"affected":">= 3006.0, < 3006.12","ecosystem":"pypi"},{"via":"cpe","name":"salt","fixed":["3007.4"],"affected":">= 3007.0, < 3007.4","ecosystem":"pypi"}],"ecosystems":["pypi","vendor"],"tags":["cwe-22","package","python","salt","self-hosted"],"not_affected_if":["minion-only","patched-version"],"how_to_check":"- Run `pip show salt` and confirm the installed version is below `3007.4` or below `3006.12` on the 3006 branch.\n- Check the installed version of salt on each Salt master host.","fix":"- Salt `3007.x` line: upgrade to `3007.4`.\n- Salt `3006.x` line: upgrade to `3006.12`.","status":"open","published_at":"2025-06-13T08:15:18+00:00","first_seen_at":"2026-11-16T16:23:45+00:00","triaged_at":"2026-11-16T16:25:27+00:00","updated_at":"2026-11-16T16:38:06+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-16T16:25:27Z","model":"claude-haiku-5-5","output":{"fix":"- Salt `3007.x` line: upgrade to `3007.4`.\n- Salt `3006.x` line: upgrade to `3006.12`.","reach":"network","title":"Salt: directory traversal in file receiving method lets attackers write files","impact":"high","summary":"Salt's recv_file method does not block path traversal, so a crafted request can write arbitrary files into the master cache directory. An attacker who can reach the Salt master can plant files that the master may later use or execute.","audience":"businesses","category":"package","nicknames":[],"who_cares":["salt","self-hosted","python"],"confidence":0.8,"fix_status":"available","needs_auth":"unknown","worst_case":"Attacker writes arbitrary files on the Salt master host","analyst_note":"Ecosystem-wide Salt issue with clear fixed versions; no extra research needed.\n","how_to_check":"- Run `pip show salt` and confirm the installed version is below `3007.4` or below `3006.12` on the 3006 branch.\n- Check the installed version of salt on each Salt master host.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["patched-version","minion-only"],"who_is_affected":"Teams running a Salt master, the central server that manages minions, on an affected version. Exposure depends on whether the master's file-receiving path is reachable by minions or other clients; hosts that only run salt-minion or are on a patched version can skip it.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"critical"},"cost_usd":0.000725,"input_tokens":4582,"output_tokens":533,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2024':12A,20A '-22':31B '-38824':13A,21A '8pcp':16A 'allow':87C 'arbitrari':54B,88C 'attack':6A,62B 'block':45B 'cach':59B,96C 'craft':50B 'cve':11A,19A 'cwe':30B 'directori':4A,60B,80C,97C 'execut':79B 'fc92':18A 'file':8A,41B,55B,71B,85C,89C 'ghsa':15A 'ghsa-8pcp-r83j-fc92':14A 'host':37B 'later':76B 'master':58B,68B,74B,95C 'may':75B 'method':10A,42B,86C 'packag':32B 'path':46B 'plant':70B 'python':33B 'r83j':17A 'reach':65B 'receiv':9A 'recv':40B,84C 'request':51B 'salt':1A,22A,23A,25A,27A,28A,29A,34B,38B,67B 'saltstack':24A,26A 'self':36B 'self-host':35B 'travers':5A,47B,81C 'use':77B 'vulner':2A,82C 'write':53B 'written':92C","nicknames":[],"mitigations":[],"who_affected":"Teams running a Salt master, the central server that manages minions, on an affected version. Exposure depends on whether the master's file-receiving path is reachable by minions or other clients; hosts that only run salt-minion or are on a patched version can skip it.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":["salt","saltstacksalt"],"ptokens":["salt","saltstack"],"labels":["critical","cwe22","package","pypi","python","salt","selfhosted","vendor"],"campaign_type":null,"search_a":"'-2024':12A,20A '-38824':13A,21A '8pcp':16A 'attack':6A 'cve':11A,19A 'directori':4A 'fc92':18A 'file':8A 'ghsa':15A 'ghsa-8pcp-r83j-fc92':14A 'method':10A 'r83j':17A 'receiv':9A 'salt':1A,22A,23A,25A,27A,28A,29A 'saltstack':24A,26A 'travers':5A 'vulner':2A","search_b":"'-22':31B 'arbitrari':54B 'attack':62B 'block':45B 'cach':59B 'craft':50B 'cwe':30B 'directori':60B 'execut':79B 'file':41B,55B,71B 'host':37B 'later':76B 'master':58B,68B,74B 'may':75B 'method':42B 'packag':32B 'path':46B 'plant':70B 'python':33B 'reach':65B 'recv':40B 'request':51B 'salt':34B,38B,67B 'self':36B 'self-host':35B 'travers':47B 'use':77B 'write':53B","search_c":"'allow':87C 'arbitrari':88C 'cach':96C 'directori':80C,97C 'file':85C,89C 'master':95C 'method':86C 'recv':84C 'travers':81C 'vulner':82C 'written':92C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2025-06-13T08:15:18+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-8pcp-r83j-fc92","url":"https://github.com/advisories/GHSA-8pcp-r83j-fc92","severity":"critical","published_at":"2025-06-13T09:30:34+00:00","modified_at":"2026-11-16T16:19:30+00:00","first_seen_at":"2026-11-16T16:23:45+00:00","fetched_at":"2026-11-16T16:27:17+00:00","note":null},{"source":"nvd","external_id":"CVE-2024-38824","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38824","severity":null,"published_at":"2025-06-13T08:15:18+00:00","modified_at":"2026-06-17T07:41:06+00:00","first_seen_at":"2026-11-16T16:38:06+00:00","fetched_at":"2026-11-16T16:38:06+00:00","note":null}],"documents":[{"id":171200,"url":"https://github.com/saltstack/salt/commit/c4ad23f0f3132d8d8a88f19fa537dc42cf21b215","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":171307,"url":"https://docs.saltproject.io/en/3006/topics/releases/3006.12.html","title":"Vendor advisory: docs.saltproject.io","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Vendor advisory: docs.saltproject.io"},{"id":171308,"url":"https://docs.saltproject.io/en/3007/topics/releases/3007.4.html","title":"Vendor advisory: docs.saltproject.io","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Vendor advisory: docs.saltproject.io"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.01063,"url":"https://api.first.org/data/v1/epss?cve=CVE-2024-38824"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}