CVE-2023-20898: Salt Salt Can Cause Git Providers Vulnerability
MODERATECVE-2023-20898 is a MODERATE (CVSS 4.2) salt can cause git providers vulnerability (General Security Weakness) affecting Salt libraries in the PyPI ecosystem. The issue involves salt can cause git providers to get wrong data. Remediation is available by upgrading affected packages to version 3005.2, 3006.2.
CVE-2023-20898 at a Glance
Security Impact
CVSS: 4.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N).
How to Fix CVE-2023-20898
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>=3005.2
pip install salt>=3006.2
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-2023-20898, 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 3005.2), 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 General Security Weakness. 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-2023-20898 Affected Salt Versions
2 component(s)References
Frequently Asked Questions
What is CVE-2023-20898?
Which Salt versions are affected?
What version fixes CVE-2023-20898?
Is salt affected?
What is the CVSS score of CVE-2023-20898?
What CWE is associated with CVE-2023-20898?
How can I check PyPI dependencies for CVE-2023-20898?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qvh6-3j7x-3hq7",
"modified" : "2025-02-13T19:11:44Z",
"published" : "2023-09-05T12:30:16Z",
"aliases" : [ "CVE-2023-20898" ],
"summary" : "Salt can cause Git Providers to get wrong data",
"details" : "Git Providers can read from the wrong environment because they get the same cache directory base name in Salt masters prior to 3005.2 or 3006.2. Anything that uses Git Providers with different environments can get garbage data or the wrong data, which can lead to wrongful data disclosure, wrongful executions, data corruption and/or crash.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "salt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3005.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "salt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3006.0rc1"
}, {
"fixed" : "3006.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-20898"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2023-169.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/saltstack/salt"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OMWJIHQZXHK6FH2E3IWAZCYIRI7FLVOL"
}, {
"type" : "WEB",
"url" : "https://saltproject.io/security-announcements/2023-08-10-advisory"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-09-06T19:50:13Z",
"nvd_published_at" : "2023-09-05T11:15:33Z"
}
}