Improper Privilege Management in crmsh - CVE-2020-35459
Published: March 15, 2021
Vulnerability identifier: #VU51457
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-35459
CWE-ID: CWE-269
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a local user to escalate privileges.
The vulnerability exists due to improper privilege management. A local user can call "crm history" (when "crm" is run) and execute commands via shell code injection to the crm history commandline, potentially allowing escalation of privileges.
Affected software
crmsh
SUSE Linux Enterprise High Availability
Ubuntu
crmsh
crmsh-scripts
crmsh (Ubuntu package)
SUSE Linux Enterprise High Availability
Ubuntu
crmsh
crmsh-scripts
crmsh (Ubuntu package)
How to mitigate CVE-2020-35459
Install updates from vendor's website.
crmsh - update to 4.3.0
crmsh - addressed in versions 3.0.4+git.1614156978.4c1dc46d-13.62.1, 4.1.0+git.1614156984.f4f5e146-2.56.2, 4.1.1+git.1630047134.803a70f2-2.65.1, 4.3.0+20210219.5d1bf034-3.57.3, 4.3.0+20210219.5d1bf034-3.62.3, 4.3.0+20210305.9db5c9a8-5.42.1, 4.3.1+20210624.67223df2-3.69.1, 4.3.1+20210624.67223df2-3.74.1, 4.3.1+20210702.4e0ee8fb-5.59.1
crmsh-scripts - addressed in versions 3.0.4+git.1614156978.4c1dc46d-13.62.1, 4.1.0+git.1614156984.f4f5e146-2.56.2, 4.1.1+git.1630047134.803a70f2-2.65.1, 4.3.0+20210219.5d1bf034-3.57.3, 4.3.0+20210219.5d1bf034-3.62.3, 4.3.0+20210305.9db5c9a8-5.42.1, 4.3.1+20210624.67223df2-3.69.1, 4.3.1+20210624.67223df2-3.74.1, 4.3.1+20210702.4e0ee8fb-5.59.1
crmsh (Ubuntu package) - update to 4.2.0-2ubuntu1.1
crmsh - addressed in versions 3.0.4+git.1614156978.4c1dc46d-13.62.1, 4.1.0+git.1614156984.f4f5e146-2.56.2, 4.1.1+git.1630047134.803a70f2-2.65.1, 4.3.0+20210219.5d1bf034-3.57.3, 4.3.0+20210219.5d1bf034-3.62.3, 4.3.0+20210305.9db5c9a8-5.42.1, 4.3.1+20210624.67223df2-3.69.1, 4.3.1+20210624.67223df2-3.74.1, 4.3.1+20210702.4e0ee8fb-5.59.1
crmsh-scripts - addressed in versions 3.0.4+git.1614156978.4c1dc46d-13.62.1, 4.1.0+git.1614156984.f4f5e146-2.56.2, 4.1.1+git.1630047134.803a70f2-2.65.1, 4.3.0+20210219.5d1bf034-3.57.3, 4.3.0+20210219.5d1bf034-3.62.3, 4.3.0+20210305.9db5c9a8-5.42.1, 4.3.1+20210624.67223df2-3.69.1, 4.3.1+20210624.67223df2-3.74.1, 4.3.1+20210702.4e0ee8fb-5.59.1
crmsh (Ubuntu package) - update to 4.2.0-2ubuntu1.1
External References
- http://www.openwall.com/lists/oss-security/2021/01/12/3
- https://bugzilla.suse.com/show_bug.cgi?id=1179999
- https://github.com/ClusterLabs/crmsh/blob/a403aa15f3ea575adfe5e43bf2a31c9f9094fcda/crmsh/history.py#L476
- https://github.com/ClusterLabs/crmsh/releases
- https://lists.debian.org/debian-lts-announce/2021/01/msg00021.html
- https://www.openwall.com/lists/oss-security/2021/01/12/3