All reports
Medium

mailx: command execution flaw

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2004-2771

Probability of exploitation in the next 30 days: 6.91%

FIRST EPSS · 2026-11-19

Description

The expand function in fio.c in Heirloom mailx 12.5 and earlier and BSD mailx 8.1.2 and earlier allows remote attackers to execute arbitrary commands via shell metacharacters in an email address.

A flaw was found in the way mailx handled the parsing of email addresses. A syntactically valid email address could allow a local attacker to cause mailx to execute arbitrary shell commands through shell meta-characters (CVE-2004-2771) and the direct command execution functionality (CVE-2014-7844).