CVE-2014-7844
High · 7.8CVSS
7.8
EPSS
1.6%
Published
Jan 14, 2020
CISA due date
—
Cloudanix analysis
A flaw in an old email handling program lets attackers run their own commands on a computer simply by sending a specially crafted message, which could let them steal data or take over the machine.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw permits command injection when mailx processes a specially crafted email address field, allowing execution of arbitrary operating system commands with the privileges of the mailx process.
Why it matters to the business
Attackers can gain unauthorized control over systems that use the affected mail client to handle incoming messages, potentially leading to data theft, service disruption, or use as a foothold for further attacks; the issue affects widely deployed enterprise Linux distributions and remains unpatched in listed fixed versions.
How an attack unfolds
An attacker sends an email containing a malicious address string that embeds shell metacharacters; when a user or automated process opens or parses the message with the vulnerable mailx, the embedded commands execute on the host.
How to fix it
Replace the vulnerable mailx implementation with a maintained alternative such as heirloom-mailx, s-nail, or modern mail clients; restrict mailx usage to trusted internal messages only; apply vendor patches if later made available for the listed Red Hat and Debian distributions.
How to confirm the fix worked
Confirm the mailx binary version is newer than 8.1.2 or has been replaced; test by attempting to process a benign message containing shell metacharacters in the address field and verify no unexpected command execution occurs.
Typical attack path
- Identify targets that receive or process email with the vulnerable mailx client
- Craft an email message whose address field contains command injection syntax
- Deliver the message via standard SMTP or other transport
- Wait for the recipient or automated handler to invoke mailx on the message
- Execute arbitrary commands on the compromised system
How to detect it
Review mail server and system logs for invocations of mailx processing messages with unusual address fields; look for child processes spawned unexpectedly by mailx or shell activity immediately following email receipt.
What your security team should do
- Inventory all systems using mailx and prioritize replacement on internet-facing or high-value hosts
- Block or filter inbound email containing suspicious address patterns at the MTA level until migration is complete
- Monitor for any new upstream fixes and update package lists accordingly
The record
BSD mailx 8.1.2 and earlier allows remote attackers to execute arbitrary commands via a crafted email address.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | bsd-mailx | 0 | 8.1.2-0.20141216cvs-1 |
| Debian:12 | bsd-mailx | 0 | 8.1.2-0.20141216cvs-1 |
| Debian:13 | bsd-mailx | 0 | 8.1.2-0.20141216cvs-1 |
| Debian:6.0 | bsd-mailx | 0 | 8.1.2-0.20100314cvs-1+deb6u1 |
| Debian:6.0 | heirloom-mailx | 0 | 12.4-2+deb6u1 |
| Debian:7 | bsd-mailx | 0 | 8.1.2-0.20111106cvs-1+deb7u1 |
| Debian:7 | heirloom-mailx | 0 | 12.5-2+deb7u1 |
| Mageia:4 | nail | 0 | 12.4-9.1.mga4 |
| Red Hat:enterprise_linux:6::client | mailx | 0 | 0:12.4-8.el6_6 |
| Red Hat:enterprise_linux:6::client | mailx-debuginfo | 0 | 0:12.4-8.el6_6 |
| Red Hat:enterprise_linux:6::computenode | mailx | 0 | 0:12.4-8.el6_6 |
| Red Hat:enterprise_linux:6::computenode | mailx-debuginfo | 0 | 0:12.4-8.el6_6 |
| Red Hat:enterprise_linux:6::server | mailx | 0 | 0:12.4-8.el6_6 |
| Red Hat:enterprise_linux:6::server | mailx-debuginfo | 0 | 0:12.4-8.el6_6 |
| Red Hat:enterprise_linux:6::workstation | mailx | 0 | 0:12.4-8.el6_6 |
| Red Hat:enterprise_linux:6::workstation | mailx-debuginfo | 0 | 0:12.4-8.el6_6 |
| Red Hat:enterprise_linux:7::client | mailx | 0 | 0:12.5-12.el7_0 |
| Red Hat:enterprise_linux:7::client | mailx-debuginfo | 0 | 0:12.5-12.el7_0 |
| Red Hat:enterprise_linux:7::computenode | mailx | 0 | 0:12.5-12.el7_0 |
| Red Hat:enterprise_linux:7::computenode | mailx-debuginfo | 0 | 0:12.5-12.el7_0 |
| Red Hat:enterprise_linux:7::server | mailx | 0 | 0:12.5-12.el7_0 |
| Red Hat:enterprise_linux:7::server | mailx-debuginfo | 0 | 0:12.5-12.el7_0 |
| Red Hat:enterprise_linux:7::workstation | mailx | 0 | 0:12.5-12.el7_0 |
| Red Hat:enterprise_linux:7::workstation | mailx-debuginfo | 0 | 0:12.5-12.el7_0 |
| Ubuntu:14.04:LTS | bsd-mailx | 0 | 8.1.2-0.20131005cvs-1ubuntu0.14.04.1 |
| Ubuntu:14.04:LTS | heirloom-mailx | 0 | 12.5-2+deb7u1build0.14.04.1 |
| openSUSE:Tumbleweed | mailx | 0 | 12.5-24.4 |
Related vulnerabilities
- CVE-2026-114577 A vulnerability was found in oretnom23 php-travel-agency-system. CWE-74
- CVE-2026-114575 A flaw has been found in TOTOLINK A950RG 4.1.2cu.5268_B20221104. CWE-74
- CVE-2026-112150 A security flaw has been discovered in vraj404 Criminal-Management-System up to… CWE-74
- CVE-2026-112141 A vulnerability was determined in satya-vinay Events-Management-System up to… CWE-74
- CVE-2026-112100 A vulnerability was determined in DeepPavlov up to 1.7.0. CWE-74
- CVE-2026-112087 A weakness has been identified in itsourcecode Online Cake Ordering System 1.0. CWE-74
- CVE-2026-111991 A security vulnerability has been detected in WongKinYiu yolov9 0.1. CWE-74
- CVE-2026-111986 A vulnerability was determined in AUTOMATIC1111 stable-diffusion-webui up to 1.10.1. CWE-74