CVE-2004-2771
Mailx Heirloom Shell Injection
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.
INFO
Published Date :
Dec. 24, 2014, 6:59 p.m.
Last Modified :
Feb. 13, 2023, 1:15 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
6.4
Exploitability Score :
10.0
Public PoC/Exploit Available at Github
CVE-2004-2771 has a 1 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
Affected Products
The following products are affected by CVE-2004-2771
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2004-2771
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
The nail project was renamed "heirloom-mailx" and then seemed to die. This is that code.
Makefile C Roff HTML Shell
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2004-2771
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2004-2771
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Feb. 13, 2023
Action Type Old Value New Value Changed Description 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). 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. Removed CVSS V2 Red Hat, Inc. (AV:L/AC:L/Au:N/C:P/I:P/A:N) Removed Reference https://access.redhat.com/errata/RHSA-2014:1999 [No Types Assigned] Removed Reference https://access.redhat.com/security/cve/CVE-2004-2771 [No Types Assigned] Removed Reference https://bugzilla.redhat.com/show_bug.cgi?id=1162783 [No Types Assigned] -
CVE Modified by [email protected]
Feb. 02, 2023
Action Type Old Value New Value Changed 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). Added CVSS V2 Red Hat, Inc. (AV:L/AC:L/Au:N/C:P/I:P/A:N) Added Reference https://access.redhat.com/security/cve/CVE-2004-2771 [No Types Assigned] Added Reference https://access.redhat.com/errata/RHSA-2014:1999 [No Types Assigned] Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=1162783 [No Types Assigned] -
CPE Deprecation Remap by [email protected]
Dec. 27, 2019
Action Type Old Value New Value Changed CPE Configuration OR *cpe:2.3:o:oracle:linux:7.0:*:*:*:*:*:*:* OR *cpe:2.3:o:oracle:linux:7:*:*:*:*:*:*:* -
CPE Deprecation Remap by [email protected]
Dec. 27, 2019
Action Type Old Value New Value Changed CPE Configuration OR *cpe:2.3:o:oracle:linux:6.0:*:*:*:*:*:*:* OR *cpe:2.3:o:oracle:linux:6:*:*:*:*:*:*:* -
Modified Analysis by [email protected]
Dec. 29, 2014
Action Type Old Value New Value Added CPE Configuration Configuration 1 OR *cpe:2.3:o:oracle:linux:6.0:*:*:*:*:*:*:* *cpe:2.3:o:oracle:linux:7.0:*:*:*:*:*:*:* Configuration 2 OR *cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* Configuration 3 OR *cpe:2.3:a:bsd_mailx_project:bsd_mailx:8.1.2:*:*:*:*:*:*:* (and previous) Configuration 4 OR *cpe:2.3:a:heirloom:mailx:12.5:*:*:*:*:*:*:* (and previous) Added CVSS V2 (AV:N/AC:L/Au:N/C:P/I:P/A:P) Changed Reference Type https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=278748 No Types Assigned https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=278748 Exploit Added CWE CWE-20 -
Initial Analysis by [email protected]
Dec. 29, 2014
Action Type Old Value New Value
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2004-2771
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2004-2771
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
2.73 }} -0.38%
score
0.90582
percentile