CVE-2022-22935: Salt SaltStack Salt Improper Authentication Vulnerability
LOWCVE-2022-22935 is a LOW (CVSS 3.7) saltstack salt improper authentication vulnerability (CWE-287: Improper Authentication) affecting Salt libraries in the PyPI ecosystem. The issue involves saltstack salt improper authentication via man in the middle attack. Remediation is available by upgrading affected packages to version 3002.8, 3003.4, 3004.1.
CVE-2022-22935 at a Glance
Security Impact
CVSS: 3.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2022-22935
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>=3002.8
pip install salt>=3003.4
pip install salt>=3004.1
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-2022-22935, 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 3002.8), 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. 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-2022-22935 Affected Salt Versions
3 component(s)References
Frequently Asked Questions
What is CVE-2022-22935?
Which Salt versions are affected?
What version fixes CVE-2022-22935?
Is salt affected?
What is the CVSS score of CVE-2022-22935?
What CWE is associated with CVE-2022-22935?
How can I check PyPI dependencies for CVE-2022-22935?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cvcc-5x92-gmhc",
"modified" : "2024-10-22T14:56:28Z",
"published" : "2022-03-30T00:00:20Z",
"aliases" : [ "CVE-2022-22935" ],
"summary" : "SaltStack Salt Improper Authentication via Man in the Middle Attack",
"details" : "An issue was discovered in SaltStack Salt in versions before 3002.8, 3003.4, 3004.1. A minion authentication denial of service can cause a MiTM attacker to force a minion process to stop by impersonating a master.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "salt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3002.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "salt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3003"
}, {
"fixed" : "3003.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "salt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3004"
}, {
"fixed" : "3004.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-22935"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2022-172.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/saltstack/salt"
}, {
"type" : "WEB",
"url" : "https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3002.8.rst#L31"
}, {
"type" : "WEB",
"url" : "https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3003.4.rst#L31"
}, {
"type" : "WEB",
"url" : "https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3004.1.rst#L29"
}, {
"type" : "WEB",
"url" : "https://saltproject.io/security_announcements/salt-security-advisory-release"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/202310-22"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-22T21:13:23Z",
"nvd_published_at" : "2022-03-29T17:15:00Z"
}
}