Command injection in BSD mailx and Heirloom mailx - CVE-2014-7844

 

Command injection in BSD mailx and Heirloom mailx - CVE-2014-7844

Published: April 13, 2018


Vulnerability identifier: #VU11823
CSH Severity: Low
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2014-7844
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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

The weakness exists due to improper handling of the parsing of email addresses. A remote attacker can execute arbitrary commands through the direct command execution functionality.

Affected software

BSD mailx
Heirloom mailx
Debian Linux
Gentoo Linux
Amazon Linux AMI
Fedora
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux EUS Compute Node
Ubuntu
Slackware Linux
heirloom-mailx (Alpine package)
bsd-mailx
nail
mailx

How to mitigate CVE-2014-7844

Update BSD mailx to version 8.1.2.20160123.

heirloom-mailx (Alpine package) - update to 12.5-r0
bsd-mailx - update to 8.1.2-5.el6
nail - update to 12.4-1.el5
mailx - update to 12.5-14.fc21

External References

Related Security Bulletins