---
id: CVE-2025-22238
aliases:
  - GHSA-r546-h3ff-q585
  - PYSEC-2026-1901
title: Salt vulnerable to directory traversal attack in minion file cache creation
summary: Salt vulnerable to directory traversal attack in minion file cache creation
severity: medium
cvss: 4.2
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:N'
vendor: salt
product: salt
ecosystem: pip
affected:
  - 'salt >= 3006.0rc1, < 3006.12'
  - 'salt >= 3007.0rc1, < 3007.4'
patched:
  - salt 3006.12
  - salt 3007.4
published: '2025-06-13'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-r546-h3ff-q585'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-22238'
  - url: >-
      https://github.com/saltstack/salt/commit/4b30218edf1a979855ea191d72b30c89f4a5a582
  - url: 'https://docs.saltproject.io/en/3006/topics/releases/3006.12.html'
  - url: 'https://docs.saltproject.io/en/3007/topics/releases/3007.4.html'
  - url: 'https://github.com/saltstack/salt'
tags:
  - osv
  - pip
epss: 0.00291
epssPercentile: 0.19355
ingestedAt: '2026-07-08T18:25:52.650Z'
---

## Overview

Directory traversal attack in minion file cache creation. The master's default cache is vulnerable to a directory traversal attack. Which could be leveraged to write or overwrite 'cache' files outside of the cache directory.

## Affected packages

- `salt >= 3006.0rc1, < 3006.12`
- `salt >= 3007.0rc1, < 3007.4`

## Remediation

Upgrade to a patched release:

- `salt 3006.12`
- `salt 3007.4`
