Improper Input Validation Affecting exim/exim package, versions [,4.98-RC3)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-EXIMEXIM-7430257
  • published8 Jul 2024
  • disclosed4 Jul 2024
  • creditUnknown

Introduced: 4 Jul 2024

CVE-2024-39929  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade exim/exim to version 4.98-RC3 or higher.

Overview

Affected versions of this package are vulnerable to Improper Input Validation in handling multiline RFC 2231 header filenames. An attacker can compose attachment headers that allow sending a malicious file that bypasses $mime_filename checks. If this file contains a malicious executable and the attacker convinces a user to open it it may execute malicious code.

PoC

MIME-Version: 1.0
Content-Type: application/pdf;
        name*0*=iso-8859-1''xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.pd;
        name*1=f
Content-Disposition: attachment;
        filename*0*=iso-8859-1''xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;
        filename*1=x.pdf
Content-Transfer-Encoding: base64

CVSS Scores

version 4.0
version 3.1