CVE-2020-35459 ClusterLabs crmsh vulnerable to shell code injection

High 7.8 Published Updated

Local attackers can execute arbitrary commands via shell injection in the crm history command, potentially escalating privileges.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2020-35459?

CVE-2020-35459 is a high-severity command injection vulnerability in Debian Debian Linux, published on 12 Jan 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

An issue was discovered in ClusterLabs crmsh through 4.2.1. Local attackers able to call "crm history" (when "crm" is run) were able to execute commands via shell code injection to the crm history commandline, potentially allowing escalation of privileges.

Weakness: CWE-78

Which versions are affected by CVE-2020-35459?

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

PackageAffectedFixed in
crmsh PyPIAll versions to 4.2.1None
crmsh PyPIAll versions to 4.2.1None
crmsh PyPIAll versions to 4.2.1None
Linux distribution packages (17)
crmsh SUSE:Linux Enterprise High Availability Extension 12 SP3All versions3.0.4+git.1607490926.e492f845-13.56.1
crmsh SUSE:Linux Enterprise High Availability Extension 12 SP4All versions4.1.0+git.1607482714.9633b80d-2.50.1
crmsh SUSE:Linux Enterprise High Availability Extension 12 SP4All versions4.1.1+git.1630047134.803a70f2-2.65.1
crmsh SUSE:Linux Enterprise High Availability Extension 12 SP5All versions4.1.0+git.1607482714.9633b80d-2.50.1
crmsh SUSE:Linux Enterprise High Availability Extension 12 SP5All versions4.1.1+git.1630047134.803a70f2-2.65.1
crmsh SUSE:Linux Enterprise High Availability Extension 15All versions4.2.0+git.1607075079.a25648d8-3.56.1
crmsh SUSE:Linux Enterprise High Availability Extension 15All versions4.3.1+20210624.67223df2-3.74.1
crmsh SUSE:Linux Enterprise High Availability Extension 15 SP1All versions4.2.0+git.1607075079.a25648d8-3.51.1
crmsh SUSE:Linux Enterprise High Availability Extension 15 SP1All versions4.3.1+20210624.67223df2-3.69.1
crmsh SUSE:Linux Enterprise High Availability Extension 15 SP2All versions4.2.0+git.1607075079.a25648d8-5.32.1
crmsh SUSE:Linux Enterprise High Availability Extension 15 SP2All versions4.3.1+20210702.4e0ee8fb-5.59.1
crmsh SUSE:Linux Enterprise High Availability Extension 15 SP3All versions4.3.1+20210702.4e0ee8fb-5.59.1
crmsh openSUSE:Leap 15.1All versions4.2.0+git.1607075079.a25648d8-lp151.2.45.1
crmsh openSUSE:Leap 15.2All versions4.2.0+git.1607075079.a25648d8-lp152.4.39.1
crmsh openSUSE:Leap 15.2All versions4.3.1+20210702.4e0ee8fb-lp152.4.59.1
crmsh openSUSE:Leap 15.3All versions4.3.1+20210702.4e0ee8fb-5.59.1
crmsh openSUSE:TumbleweedAll versions4.3.1+20210913.d7356663-1.2

Products include Clusterlabs Crmsh, Debian Debian Linux.

How do I fix CVE-2020-35459?

Apply the vendor's patch.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2020-35459 being exploited?

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

Sources

Also known as DEBIAN-CVE-2020-35459, DLA-2533-1, GHSA-99xx-83jm-h24m, PYSEC-2026-799, SUSE-SU-2021:0083-1, SUSE-SU-2021:0084-1 and 14 more.

Is CVE-2020-35459 in your software?

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

Check your SBOMs for free