Command injection in Heirloom mailx and BSD mailx - CVE-2004-2771

 

Command injection in Heirloom mailx and BSD mailx - CVE-2004-2771

Published: April 13, 2018


Vulnerability identifier: #VU11822
CSH Severity: Low
CVSS v4.0: 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/E:U/U:Clear
CVE-ID: CVE-2004-2771
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Heirloom Project
FreeBSD Foundation
Affected software:
Heirloom mailx
BSD mailx

Detailed vulnerability description

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

The weakness exists in the expand function in fio.c due to command injection. A remote attacker can execute arbitrary commands via shell metacharacters in an email address.

How to mitigate CVE-2004-2771

Update BSD mailx to version 8.1.2.20160123.

Sources