SaltStack Salt SQL Injection vulnerability in mysql.user_chpass function
Published 24 May 2022 · Updated 25 Oct 2024
Is your project on an affected salt?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=2018.3.0 <2018.3.4
- Fixed in
- 2018.3.4
pip install 'salt>=2018.3.4'Details
SaltStack Salt 2018.3 is affected by: SQL Injection. The impact is: An attacker could escalate privileges on MySQL server deployed by cloud provider. It leads to RCE. The component is: The mysql.user_chpass function from the MySQL module for Salt (https://github.com/saltstack/salt/blob/develop/salt/modules/mysql.py#L1462). The attack vector is: specially crafted password string. The fixed version is: 2018.3.4.
Is GHSA-h8xp-h3jf-wv4v in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected salt, and gives you the command that fixes it.
More advisories for salt
- HighCVE-2025-62348Salt junos Module Vulnerable to Code Injection via Specially Crafted YAML Payload · 30 Jan 2026
- HighCVE-2025-62349Salt Authentication Protocol Version Downgrade Allows Minion Impersonation · 30 Jan 2026
- CriticalCVE-2024-38824Salt vulnerable to directory traversal attack in file receiving method · 13 Jun 2025
- MediumCVE-2025-22242Salt's worker process vulnerable to denial of service through file read operation · 13 Jun 2025
- HighCVE-2025-22239Salt vulnerable to arbitrary event injection · 13 Jun 2025
- HighCVE-2025-22236Salt has minion event bus authorization bypass vulnerability · 13 Jun 2025
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2019-1010259
- Linkgithub.com/saltstack/salt/pull/51462
- Linkgithub.com/ShantonRU/salt/commit/a46c86a987c78e74e87969d8d3b27094e6544b7a
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2019-119.yaml
- Packagegithub.com/saltstack/salt
- Linkgithub.com/saltstack/salt/blob/f22de0887cd7167887f113bf394244b74fb36b6b/salt/modules/mysql.py#L1534
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.