CVE-2020-35459 ClusterLabs crmsh vulnerable to shell code injection
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.
| Package | Affected | Fixed in |
|---|---|---|
crmsh PyPI | All versions to 4.2.1 | None |
crmsh PyPI | All versions to 4.2.1 | None |
crmsh PyPI | All versions to 4.2.1 | None |
Linux distribution packages (17)
crmsh SUSE:Linux Enterprise High Availability Extension 12 SP3 | All versions | 3.0.4+git.1607490926.e492f845-13.56.1 |
crmsh SUSE:Linux Enterprise High Availability Extension 12 SP4 | All versions | 4.1.0+git.1607482714.9633b80d-2.50.1 |
crmsh SUSE:Linux Enterprise High Availability Extension 12 SP4 | All versions | 4.1.1+git.1630047134.803a70f2-2.65.1 |
crmsh SUSE:Linux Enterprise High Availability Extension 12 SP5 | All versions | 4.1.0+git.1607482714.9633b80d-2.50.1 |
crmsh SUSE:Linux Enterprise High Availability Extension 12 SP5 | All versions | 4.1.1+git.1630047134.803a70f2-2.65.1 |
crmsh SUSE:Linux Enterprise High Availability Extension 15 | All versions | 4.2.0+git.1607075079.a25648d8-3.56.1 |
crmsh SUSE:Linux Enterprise High Availability Extension 15 | All versions | 4.3.1+20210624.67223df2-3.74.1 |
crmsh SUSE:Linux Enterprise High Availability Extension 15 SP1 | All versions | 4.2.0+git.1607075079.a25648d8-3.51.1 |
crmsh SUSE:Linux Enterprise High Availability Extension 15 SP1 | All versions | 4.3.1+20210624.67223df2-3.69.1 |
crmsh SUSE:Linux Enterprise High Availability Extension 15 SP2 | All versions | 4.2.0+git.1607075079.a25648d8-5.32.1 |
crmsh SUSE:Linux Enterprise High Availability Extension 15 SP2 | All versions | 4.3.1+20210702.4e0ee8fb-5.59.1 |
crmsh SUSE:Linux Enterprise High Availability Extension 15 SP3 | All versions | 4.3.1+20210702.4e0ee8fb-5.59.1 |
crmsh openSUSE:Leap 15.1 | All versions | 4.2.0+git.1607075079.a25648d8-lp151.2.45.1 |
crmsh openSUSE:Leap 15.2 | All versions | 4.2.0+git.1607075079.a25648d8-lp152.4.39.1 |
crmsh openSUSE:Leap 15.2 | All versions | 4.3.1+20210702.4e0ee8fb-lp152.4.59.1 |
crmsh openSUSE:Leap 15.3 | All versions | 4.3.1+20210702.4e0ee8fb-5.59.1 |
crmsh openSUSE:Tumbleweed | All versions | 4.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.