Skip to content
OpenAdvisories
Medium · 5.4 Public exploit CVE-2024-39929 EUVD-2024-38307GHSA-7m4v-cwm7-4f2m

Exim through 4.97.1 misparses a multiline RFC 2231 header filename, and thus remote attackers can bypass a $mime_filename extension-blockin…

Published Jul 4, 2024 · Updated Mar 18, 2025 · Assigned by mitre

Description

Exim through 4.97.1 misparses a multiline RFC 2231 header filename, and thus remote attackers can bypass a $mime_filename extension-blocking protection mechanism, and potentially deliver executable attachments to the mailboxes of end users.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 exim4 4.98~RC3-2 —
Debian 13 exim4 4.98~RC3-2 —
Debian 12 exim4 4.96-15+deb12u5 DSA-5728-1
Debian 11 exim4 4.94.2-7+deb11u3 DSA-5728-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS exim4 4.97-4ubuntu4.1 USN-6939-1
Ubuntu 22.04 LTS exim4 4.95-4ubuntu2.6 USN-6939-1
Ubuntu 20.04 LTS exim4 4.93-13ubuntu1.12 USN-6939-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS exim4 4.90.1-1ubuntu1.10+esm5 USN-6939-1
Ubuntu Pro 16.04 LTS exim4 4.86.2-2ubuntu2.6+esm8 USN-6939-1
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP5 exim 4.97.1-bp155.5.12.1 openSUSE-SU-2024:0218-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed exim 4.98-1.1 openSUSE-SU-2024:14196-1
openSUSE Leap 15.5 exim 4.97.1-bp155.5.12.1 openSUSE-SU-2024:0218-1
ReleasePackageFixed inAdvisory
Alpine v3.24 exim 4.98-r0 —
Alpine v3.23 exim 4.98-r0 —
Alpine v3.22 exim 4.98-r0 —
Alpine v3.21 exim 4.98-r0 —
Alpine v3.20 exim 4.98-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 5

References