---
id: "CVE-2024-38824"
page: "https://infrastack.ai/live/CVE-2024-38824"
kind: "vulnerability"
aliases: ["CVE-2024-38824", "GHSA-8pcp-r83j-fc92"]
title: "Salt vulnerable to directory traversal attack in file receiving method"
severity: "critical"
cvss: 9.6
epss: 0.01063
exploited: false
status: "open"
category: "package"
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"]
published_at: "2025-06-13T08:15:18+00:00"
first_seen_at: "2026-11-16T16:23:45+00:00"
updated_at: "2026-11-16T16:38:06+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-8pcp-r83j-fc92", "first_seen_at": "2026-11-16T16:23:45+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-38824", "first_seen_at": "2026-11-16T16:38:06+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.01063, "url": "https://api.first.org/data/v1/epss?cve=CVE-2024-38824"}]
---

# Salt vulnerable to directory traversal attack in file receiving method

Link for people: https://infrastack.ai/live/CVE-2024-38824 (this .md is for agents)

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.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:salt affected >= 3007.0rc1, < 3007.4 fixed 3007.4
- pypi:salt affected >= 3006.0rc1, < 3006.12 fixed 3006.12
- vendor:saltstack salt affected >= 3006.0, < 3006.12 fixed 3006.12
- vendor:saltstack salt affected >= 3007.0, < 3007.4 fixed 3007.4
- pypi:salt affected >= 3006.0, < 3006.12 fixed 3006.12
- pypi:salt affected >= 3007.0, < 3007.4 fixed 3007.4

## How to check

- Run `pip show salt` and confirm the installed version is below `3007.4` or below `3006.12` on the 3006 branch.
- Check the installed version of salt on each Salt master host.

## Fix

- Salt `3007.x` line: upgrade to `3007.4`.
- Salt `3006.x` line: upgrade to `3006.12`.

## Timeline

- 2026-11-16T16:23:45+00:00 ghsa https://github.com/advisories/GHSA-8pcp-r83j-fc92
- 2026-11-16T16:38:06+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2024-38824

## Documents

- [advisory] Vendor advisory: docs.saltproject.io https://docs.saltproject.io/en/3006/topics/releases/3006.12.html
- [advisory] Vendor advisory: docs.saltproject.io https://docs.saltproject.io/en/3007/topics/releases/3007.4.html
- [fix] Patch: github.com https://github.com/saltstack/salt/commit/c4ad23f0f3132d8d8a88f19fa537dc42cf21b215

## From the sources

Directory traversal vulnerability in recv_file method allows arbitrary files to be written to the master cache directory.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
