CVE-2019-1010259 SaltStack Salt SQL Injection vulnerability in mysql.user_chpass function

Critical 9.8 Published Updated

Attackers can execute arbitrary SQL commands via crafted passwords in SaltStack's MySQL module, leading to privilege escalation and remote code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-1010259?

CVE-2019-1010259 is a critical SQL injection vulnerability in SaltStack Salt, published on 18 Jul 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

SaltStack Salt 2018.3, 2019.2 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. The attack vector is: specially crafted password string. The fixed version is: 2018.3.4.

Weakness: CWE-89

Which versions are affected by CVE-2019-1010259?

3 open source packages ship an affected version, including salt. It affects 2 products.

PackageAffectedFixed in
salt PyPIAll versions2018.3.4
salt PyPIFrom 2018.3.02018.3.4
salt PyPIFrom 2018.3.02018.3.4

Products include Saltstack Salt 2018, Saltstack Salt 2019.

How do I fix CVE-2019-1010259?

Upgrade salt to 2018.3.4 or later.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2019-1010259 being exploited?

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

Sources

Also known as CVE-2019-1000033, GHSA-h8xp-h3jf-wv4v, PYSEC-2019-119.

Is CVE-2019-1010259 in your software?

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

Check your SBOMs for free