CVE-2014-3618
NoneCVSS
—
EPSS
8.5%
Published
Sep 8, 2014
CISA due date
—
Cloudanix analysis
Old email software can let attackers crash or take over mail servers by sending messages with tricky headers.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-based buffer overflow in formail triggered by crafted email headers with unbalanced quotes, causing memory corruption that leads to denial of service or potential arbitrary code execution.
Why it matters to the business
Legacy email processing servers can be crashed or compromised through incoming messages, disrupting mail flow and exposing outdated systems to remote code execution on unmaintained installations after more than a decade since disclosure.
How an attack unfolds
An attacker sends an email containing a specially crafted header with unbalanced quotes to a target that routes messages through procmail formail for processing; the malformed header triggers the overflow during parsing.
How to fix it
Procmail 3.22 has no official fixed version and is unmaintained; immediately remove or replace it with a modern mail delivery agent such as postfix or maildrop, and audit all dependent Ubuntu systems for removal.
How to confirm the fix worked
Confirm procmail is absent from production paths or replaced; test isolated mail flows with unbalanced-quote headers to verify absence of crashes or overflows.
Typical attack path
- Craft email header containing unbalanced quotes
- Send email to recipient processed by vulnerable procmail
- Trigger formail header parsing
- Exploit resulting heap corruption for crash or code execution
How to detect it
Review mail and system logs for procmail or formail segmentation faults or crashes during header processing; search historical mail queues for headers containing repeated or unbalanced quote characters.
What your security team should do
- Inventory all systems still running procmail
- Migrate mail processing to supported alternatives within 30 days
- Block or sanitize suspicious headers at the MTA layer if procmail cannot be removed immediately
- Monitor for any remaining instances given the 12-year-old disclosure
The record
Heap-based buffer overflow in formisc.c in formail in procmail 3.22 allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via a crafted email header, related to "unbalanced quotes."
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | procmail | 0 | 3.22-22 |
| Debian:12 | procmail | 0 | 3.22-22 |
| Debian:13 | procmail | 0 | 3.22-22 |
| Debian:6.0 | procmail | 0 | 3.22-19+deb6u1 |
| Debian:7 | procmail | 0 | 3.22-20+deb7u1 |
| Mageia:3 | procmail | 0 | 3.22-18.1.mga3 |
| Mageia:4 | procmail | 0 | 3.22-19.1.mga4 |
| Red Hat:enterprise_linux:5::client | procmail | 0 | 0:3.22-17.1.2 |
| Red Hat:enterprise_linux:5::client | procmail-debuginfo | 0 | 0:3.22-17.1.2 |
| Red Hat:enterprise_linux:5::server | procmail | 0 | 0:3.22-17.1.2 |
| Red Hat:enterprise_linux:5::server | procmail-debuginfo | 0 | 0:3.22-17.1.2 |
| Red Hat:enterprise_linux:6::client | procmail | 0 | 0:3.22-25.1.el6_5.1 |
| Red Hat:enterprise_linux:6::client | procmail-debuginfo | 0 | 0:3.22-25.1.el6_5.1 |
| Red Hat:enterprise_linux:6::computenode | procmail | 0 | 0:3.22-25.1.el6_5.1 |
| Red Hat:enterprise_linux:6::computenode | procmail-debuginfo | 0 | 0:3.22-25.1.el6_5.1 |
| Red Hat:enterprise_linux:6::server | procmail | 0 | 0:3.22-25.1.el6_5.1 |
| Red Hat:enterprise_linux:6::server | procmail-debuginfo | 0 | 0:3.22-25.1.el6_5.1 |
| Red Hat:enterprise_linux:6::workstation | procmail | 0 | 0:3.22-25.1.el6_5.1 |
| Red Hat:enterprise_linux:6::workstation | procmail-debuginfo | 0 | 0:3.22-25.1.el6_5.1 |
| Red Hat:enterprise_linux:7::client | procmail | 0 | 0:3.22-34.el7_0.1 |
| Red Hat:enterprise_linux:7::client | procmail-debuginfo | 0 | 0:3.22-34.el7_0.1 |
| Red Hat:enterprise_linux:7::server | procmail | 0 | 0:3.22-34.el7_0.1 |
| Red Hat:enterprise_linux:7::server | procmail-debuginfo | 0 | 0:3.22-34.el7_0.1 |
| Red Hat:enterprise_linux:7::workstation | procmail | 0 | 0:3.22-34.el7_0.1 |
| Red Hat:enterprise_linux:7::workstation | procmail-debuginfo | 0 | 0:3.22-34.el7_0.1 |
| Ubuntu:14.04:LTS | procmail | 0 | 3.22-21ubuntu0.1 |
| openSUSE:Tumbleweed | procmail | 0 | 3.22-270.9 |
Related vulnerabilities
- CVE-2017-16844 Heap-based buffer overflow in the loadbuf function in formisc.c in formail in procmail… Also affects procmail
- CVE-2026-112108 A vulnerability was determined in ztxz16 fastllm up to 0.1.8.2. CWE-119
- CVE-2026-112073 A vulnerability was identified in Tencent ncnn up to 44b02dabdcf97499281a4692ebd65bad73dc… CWE-119
- CVE-2026-90831 A vulnerability was detected in GNU Binutils 2.47. CWE-119
- CVE-2026-90804 A vulnerability was detected in GNU Binutils 2.47. CWE-119
- CVE-2026-90803 A security vulnerability has been detected in GNU Binutils 2.47. CWE-119
- CVE-2026-90801 A security flaw has been discovered in GNU Binutils 2.47. CWE-119
- CVE-2026-87933 A vulnerability was found in DaveGamble cJSON up to 1.7.19. CWE-119