CVE-2025-22242: Salt Denial of Service Vulnerability
MODERATECVE-2025-22242 is a MODERATE (CVSS 5.6) denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Salt libraries in the PyPI ecosystem. The issue involves salt's worker process vulnerable to denial of service through file read operation. Remediation is available by upgrading affected packages to version 3007.4, 3006.12.
CVE-2025-22242 at a Glance
Security Impact
CVSS: 5.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:H).
How to Fix CVE-2025-22242
To remediate this vulnerability, upgrade all affected Salt dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install salt>=3007.4
pip install salt>=3006.12
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show salt
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-22242, inspect your installed packages using pip:
pip show salt
Analyze the terminal output to locate any version of Salt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3007.4), your application is affected.
Note: The pip show salt command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Salt, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-22242 Affected Salt Versions
2 component(s)References
Frequently Asked Questions
What is CVE-2025-22242?
Which Salt versions are affected?
What version fixes CVE-2025-22242?
Is salt affected?
What is the CVSS score of CVE-2025-22242?
What CWE is associated with CVE-2025-22242?
How can I check PyPI dependencies for CVE-2025-22242?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-989c-m532-p2hv",
"modified" : "2025-06-13T21:57:41Z",
"published" : "2025-06-13T09:30:34Z",
"aliases" : [ "CVE-2025-22242" ],
"summary" : "Salt's worker process vulnerable to denial of service through file read operation",
"details" : "Worker process denial of service through file read operation. .A vulnerability exists in the Master's “pub_ret” method which is exposed to all minions. The un-sanitized input value “jid” is used to construct a path which is then opened for reading. An attacker could exploit this vulnerabilities by attempting to read from a filename that will not return any data, e.g. by targeting a pipe node on the proc file system.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "salt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3007.0rc1"
}, {
"fixed" : "3007.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "salt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3006.0rc1"
}, {
"fixed" : "3006.12"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-22242"
}, {
"type" : "WEB",
"url" : "https://github.com/saltstack/salt/commit/e39116fb87bf4db9bcb9aade8258c66df87d41fe"
}, {
"type" : "WEB",
"url" : "https://docs.saltproject.io/en/3006/topics/releases/3006.12.html"
}, {
"type" : "WEB",
"url" : "https://docs.saltproject.io/en/3007/topics/releases/3007.4.html"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/saltstack/salt"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-770" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-13T21:57:41Z",
"nvd_published_at" : "2025-06-13T07:15:21Z"
}
}