Skip to content
Memory corruption Disclosed report Advanced CVE-2018-6789

Exim off-by-one RCE vulnerability

An off-by-one error in an Exim utility function affects all versions of the mail server. An attacker could leverage this flaw to achieve pre-authentication remote code execution through heap exploitation.

mehqq Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 40 days
  • Fixed in 18 months
  • Paid in 18 months
  • Disclosed after 19 months

Hi,

I found an off-by-one in Exim MTA utility function. It was reported to exim and official patch has been released, assigned CVE-2018-6789. This bug affects all versions of exim.

This bug is simple, but can be leverage to gain remote code execution, using skillful heap exploitation. Details are here: https://devco.re/blog/2018/03/06/exim-off-by-one-RCE-exploiting-CVE-2018-6789-en/

I believe exim is widespread enough and it seems to fit all criteria. I wonder if this finding worths a bounty, or the reason why it is not included. Thanks!

Impact

Pre-auth remote code execution on all versions of exim mail server

The original report as published on HackerOne, by mehqq. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely an off-by-one error in an Exim utility function that allows a heap buffer overflow.

Impact

Pre-authentication remote code execution on all versions of Exim mail server, though exploitation requires skillful heap manipulation.

What the attacker needed

Exim mail server; network access to the service

The fix

An official patch was released for CVE-2018-6789.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

An off-by-one error is a programming mistake where a buffer is one byte too small or a loop runs one time too many, letting data spill into adjacent memory. In Exim, a widely used mail server, this small mistake can be abused by a remote attacker to run their own code on the server without needing to log in first.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by mehqq

View all

2 more disclosed reports, best first.

More from Internet Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.