cve.bz

CVE-2004-2771 Improper Input Validation

no score yetExploit referenceEPSS 6.9%

No CVSS score yet. EPSS 6.9% estimated probability of exploitation activity in the next 30 days.

On this page
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.
EPSS
6.9% (unchanged from 6.9% a week ago; 6.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2004-2771 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2004-2771?via=ask-ai-copy and https://cve.bz/cve/CVE-2004-2771?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2004-2771 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
oracle:linux6
oracle:linux7
redhat:enterprise_linux6.0
redhat:enterprise_linux7.0
bsd_mailx_project:bsd_mailxthrough 8.1.2
heirloom:mailxthrough 12.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian6.0heirloom-mailx12.4-2+deb6u1DLA-114-1
Debian7heirloom-mailx12.5-2+deb7u1DSA-3105-1
Debian12, 13, 14bsd-mailx8.1.2-0.20071201cvs-1DEBIAN-CVE-2004-2771
Ubuntu14.04:LTSheirloom-mailx12.5-2+deb7u1build0.14.04.1UBUNTU-CVE-2004-2771
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 moremailx, mailx-debuginfo0:12.4-8.el6_6RHSA-2014:1999
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moremailx, mailx-debuginfo0:12.5-12.el7_0RHSA-2014:1999
openSUSETumbleweedmailx12.5-24.4openSUSE-SU-2024:10561-1
Azure Linux2mailx12.5-34AZL-6676 AZL-7286
Azure Linux3mailx12.5-36AZL-36961

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Enterprise Linux 5 is now in Production 3 Phase of the support and maintenance life cycle. This has been rated as having Moderate security impact and is not currently planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6mailx-0:12.4-8.el6_6Fixed 2014-12-16RHSA-2014:1999
Red Hat Enterprise Linux 7mailx-0:12.5-12.el7_0Fixed 2014-12-16RHSA-2014:1999
Red Hat Enterprise Linux 5mailxWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2004-2771.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON