Breaking: Java4Shell (CVE-2026-114938) - Less Than 0.12% of JVMs Estimated at Risk of RCE
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2004-2771

mailx: command execution flaw

Overview

Published
24 Dec 2014
Modified
23 Sep 2026
High CVE
0 Registry packages
2 OS packages
6 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

7.5 · HIGH

CVSS 2.0 base score, scored by NVD.

Access vector
Network
Access complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
Partial

AV:N/AC:L/Au:N/C:P/I:P/A:P

Weakness: CWE-20

Affected packages · 0

No registry package. This ID affects operating system packages only.

Operating systems · 9 fixes

Azure Linux 1 release · 1 package

fixed 1
mailx
Azure Linux fixes for CVE-2004-2771
ReleasePackageFixed in
3.0 mailx 0:12.5-36.azl3

Oracle Linux 1 release · 1 package

fixed 1
mailx
Oracle Linux fixes for CVE-2004-2771
ReleasePackageFixed in
7 mailx 12.5-12.el7_0

Red Hat 1 release · 1 package

fixed 1
mailx
Red Hat fixes for CVE-2004-2771
ReleasePackageFixed inAdvisory
7 mailx 0:12.5-12.el7_0 RHSA-2014:1999

debian 4 releases · 1 package

fixed 4
bsd-mailx
debian fixes for CVE-2004-2771
ReleasePackageFixed in
11 bsd-mailx 8.1.2-0.20071201cvs-1
12 bsd-mailx 8.1.2-0.20071201cvs-1
13 bsd-mailx 8.1.2-0.20071201cvs-1
14 bsd-mailx 8.1.2-0.20071201cvs-1

echo 1 release · 1 package

fixed 1
bsd-mailx
echo fixes for CVE-2004-2771
ReleasePackageFixed in
bsd-mailx 8.1.2-0.20071201cvs-1

openSUSE 1 release · 1 package

fixed 1
mailx
openSUSE fixes for CVE-2004-2771
ReleasePackageFixed inAdvisory
Tumbleweed mailx 12.5-24.4 openSUSE-SU-2024:10561-1

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.