CVE-2014-2972: Medium severity sa-exim vulnerability

Published Jul 23, 2014
·
Updated

As reported to the exim user's mailing list [1], Exim suffers from a local vulnerability where a string expansion is evaluated twice. If a local attacker were able to provide unsanitized data to a data source used by Exim for looking up a value, in certain situations, the data would be eval()'d twice. This is not remotely exploitable and requires a user account on the Exim server, and an Exim configuration that does lookups against files to which the user has edit access. The end result is that, if the conditions are true, arbitrary code could be executed as the exim user. As described in the posting:

""" The root cause of this issue is the arguments to mathematical comparison operations are expanded twice (<, <=, >, >=, =). The intent of the original code was the first expansion could (for example) lookup an item from a file. The assumption was that entry would be some form of valid integer so that value was then passed to the expand function again to do a numeric conversion of values such as 19k or 45M to integers. However, if the content of the lookup is under direct user control, they could insert something with an expansion, such as:

${run {/bin/touch /tmp/OUCH}}

Since the data is not sanitized when the second expansion occurs (intended to process numerical conversion), that command would get executed as the exim user. """

This is corrected in the Exim 4.83 release [2],[3],[4]. From the description, it looks as though every version of Exim released since 2004 is affected.

[1] https://lists.exim.org/lurker/message/20140722.152452.d6c019e8.en.html [2] http://git.exim.org/exim.git/blob/exim-483:/doc/doc-txt/ChangeLog [3] http://git.exim.org/exim.git/commitdiff/7685ce68148a083d7759e78d01aa5198fc099c44 [4] http://git.exim.org/exim.git/commitdiff/0de7239e563eff6e83c3e72d7deb9fd26a54a3a7

Other sources

expand.c in Exim before 4.83 expands mathematical comparisons twice, which allows local users to gain privileges and execute arbitrary commands via a crafted lookup value.

MITRE

Affected Software

53 affected componentsFixes available
redhat/exim<4.83
4.83
Exim Exim<=4.82.1
Exim Exim=4.00
Exim Exim=4.01
Exim Exim=4.02
Exim Exim=4.03
Exim Exim=4.04
Exim Exim=4.05
Exim Exim=4.10
Exim Exim=4.11
Exim Exim=4.12
Exim Exim=4.14
Exim Exim=4.20
Exim Exim=4.21
Exim Exim=4.22
Exim Exim=4.23
Exim Exim=4.24
Exim Exim=4.30
Exim Exim=4.31
Exim Exim=4.32
Exim Exim=4.33
Exim Exim=4.34
Exim Exim=4.40
Exim Exim=4.41
Exim Exim=4.42
Exim Exim=4.43
Exim Exim=4.44
Exim Exim=4.50
Exim Exim=4.51
Exim Exim=4.52
Exim Exim=4.53
Exim Exim=4.54
Exim Exim=4.60
Exim Exim=4.61
Exim Exim=4.62
Exim Exim=4.63
Exim Exim=4.64
Exim Exim=4.65
Exim Exim=4.66
Exim Exim=4.67
Exim Exim=4.68
Exim Exim=4.69
Exim Exim=4.70
Exim Exim=4.71
Exim Exim=4.72
Exim Exim=4.73
Exim Exim=4.74
Exim Exim=4.75
Exim Exim=4.76
Exim Exim=4.77
Exim Exim=4.80
Exim Exim=4.80.1
Exim Exim=4.82

Event History

Sep 4, 2014
CVE Published
via MITRE·05:00 PM
Data Sourced
via MITRE·05:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2014-2972?

CVE-2014-2972 is classified as a local vulnerability allowing potential code execution in affected versions of Exim.

2

How do I fix CVE-2014-2972?

To remediate CVE-2014-2972, upgrade to Exim version 4.83 or later.

3

What versions of Exim are affected by CVE-2014-2972?

CVE-2014-2972 affects Exim versions up to 4.82.1 and specific older versions starting from 4.00.

4

Can local attackers exploit CVE-2014-2972?

Yes, local attackers can exploit CVE-2014-2972 if they can provide unsanitized data to Exim.

5

What kind of impact does CVE-2014-2972 have on systems?

CVE-2014-2972 can lead to arbitrary code execution, which may compromise the security of affected systems.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203