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

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.05% (17th 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 ID SNYK-UNMANAGED-EXIMEXIM-7430257
  • published 8 Jul 2024
  • disclosed 4 Jul 2024
  • credit Unknown

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
Expand this section

Snyk

Recommended
8.5 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    All
  • Confidentiality (VC)
    High
  • Integrity (VI)
    High
  • Availability (VA)
    None
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None