Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1543268 (CVE-2018-6789) - CVE-2018-6789 exim: buffer overflow in b64decode() function, possibly leading to remote code execution
Summary: CVE-2018-6789 exim: buffer overflow in b64decode() function, possibly leading...
Alias: CVE-2018-6789
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1543269 1543270
TreeView+ depends on / blocked
Reported: 2018-02-08 06:08 UTC by Sam Fowler
Modified: 2021-06-10 14:32 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-02-26 12:47:12 UTC

Attachments (Terms of Use)

Description Sam Fowler 2018-02-08 06:08:27 UTC
In Exim 4.90 and earlier, there is a buffer overflow in an utility function, if some pre-conditions are met. Using a handcrafted message, remote code execution seems to be possible.

More information to follow.

Upstream advisory:

Additional References:

Comment 1 Sam Fowler 2018-02-08 06:08:48 UTC
Created exim tracking bugs for this issue:

Affects: epel-all [bug 1543269]
Affects: fedora-all [bug 1543270]

Comment 3 Tomas Hoger 2018-02-15 10:30:21 UTC
The issue here is a buffer overflow in the b64decode() function, that seems to be limited to just one byte.  It's triggered when Base64 encoded input to decode does not have proper length (multiple of 4).  Attacker controlled byte is written past of the buffer.

Comment 14 Tomas Hoger 2018-03-21 12:18:58 UTC

This issue affects the versions of Exim as shipped in Red Hat Enterprise Linux 5. Red Hat Enterprise Linux 5 is already in the Extended Life Phase of its life cycle and Exim is not on the list of components supported via Red Hat Enterprise Linux 5 Extended Life-cycle Support (ELS) add-on, therefore there's currently no plan to address this issue in Red Hat Enterprise Linux 5. For more information about Red Hat Enterprise Linux 5 life cycle and ELS add-on scope of support, see:

The Exim mail server is not shipped in Red Hat Enterprise Linux 6 and 7.

Note You need to log in before you can comment on or make changes to this bug.