OS Command Injection in SpamAssassin - CVE-2020-1946

 

OS Command Injection in SpamAssassin - CVE-2020-1946

Published: March 24, 2021


Vulnerability identifier: #VU51703
CSH Severity: Medium
CVSS v4: 7.5 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-1946
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation when processing rule configuration (.cf) files. A remote authenticated attacker trick the victim use a specially crafted rule configuration file and execute arbitrary OS commands on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

SpamAssassin
Gentoo Linux
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE CaaS Platform
SUSE Enterprise Storage
SUSE OpenStack Cloud Crowbar
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
HPE Helion Openstack
Red Hat Enterprise Linux for ARM 64
SUSE OpenStack Cloud
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
Ubuntu
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Module for Development Tools
Fedora
spamassassin (Alpine package)
spamassassin (Debian package)
perl-Mail-SpamAssassin-Plugin-iXhash2
spamassassin (Ubuntu package)
spamassassin (Red Hat package)
spamassassin
spamassassin-debugsource
spamassassin-debuginfo
perl-Mail-SpamAssassin

How to mitigate CVE-2020-1946

Install updates from vendor's website.

SpamAssassin - update to 3.4.5
spamassassin (Debian package) - update to 3.4.2-1+deb10u3
perl-Mail-SpamAssassin-Plugin-iXhash2 - addressed in versions 2.05-7.14.1, 2.05-12.10.1
spamassassin (Ubuntu package) - addressed in versions 3.4.2-0ubuntu0.14.04.1+esm3, 3.4.2-0ubuntu0.16.04.5, 3.4.2-0ubuntu0.18.04.5, 3.4.4-1ubuntu1.1
spamassassin (Red Hat package) - update to 3.4.4-4.el8
spamassassin - addressed in versions 3.4.5-1.fc32, 3.4.5-1.fc33, 3.4.5-1.fc34
spamassassin-debugsource - addressed in versions 3.4.5-7.14.1, 3.4.5-12.10.1, 3.4.5-44.13.1
spamassassin-debuginfo - addressed in versions 3.4.5-7.14.1, 3.4.5-12.10.1, 3.4.5-44.13.1
spamassassin - addressed in versions 3.4.5-7.14.1, 3.4.5-12.10.1, 3.4.5-44.13.1
perl-Mail-SpamAssassin - addressed in versions 3.4.5-7.14.1, 3.4.5-12.10.1, 3.4.5-44.13.1

External References

Related Security Bulletins