CVE-2025-22237 CVE-2025-22237 salt advisory

Medium 6.7 Published Updated

An attacker with a minion key can execute arbitrary commands on the master via crafted git URLs in on-demand pillars.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-22237?

CVE-2025-22237 is a medium-severity command injection vulnerability in VMware SALT, published on 13 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

An attacker with access to a minion key can exploit the 'on demand' pillar functionality with a specially crafted git url which could cause and arbitrary command to be run on the master with the same privileges as the master process.

Weakness: CWE-77

Which versions are affected by CVE-2025-22237?

5 open source packages ship an affected version, including salt.

PackageAffectedFixed in
salt PyPIFrom 3006.0rc13006.12, 3007.4
salt PyPIFrom 3006.0rc13006.12
salt PyPIFrom 3006.0rc13006.12
salt PyPIFrom 3007.0rc13007.4
salt PyPIFrom 3007.0rc13007.4

How do I fix CVE-2025-22237?

Upgrade salt to a fixed version for your release line: 3006.12 or 3007.4.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-22237 being exploited?

There is no known exploitation of CVE-2025-22237 in the wild and no public exploit code.

Sources

Also known as GHSA-fcr4-h6c4-rvvp, PYSEC-2026-1898, UBUNTU-CVE-2025-22237.

Is CVE-2025-22237 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free