CVE-2024-4140 Denial of service in Email-MIME

High 7.5 Published Updated

Attackers can cause denial of service by sending crafted multipart MIME messages to applications using the Email-MIME library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-4140?

CVE-2024-4140 is a high-severity denial of service vulnerability in Fedoraproject Fedora, published on 2 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An excessive memory use issue (CWE-770) exists in Email-MIME, before version 1.954, which can cause denial of service when parsing multipart MIME messages. The patch set (from 2020 and 2024) limits excessive depth and the total number of parts.

Weakness: CWE-770

Which versions are affected by CVE-2024-4140?

It affects 2 products.

Linux distribution packages (1)
perl-Email-MIME openSUSE:TumbleweedAll versions1.954.0-1.1

Products include Fedoraproject Fedora, Rjbs Email-Mime.

How do I fix CVE-2024-4140?

Upgrade to a fixed version.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-4140 being exploited?

There is no known exploitation of CVE-2024-4140 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2024-4140, GHSA-2rhr-29cm-5chf, MGASA-2024-0198, UBUNTU-CVE-2024-4140, openSUSE-SU-2024:13973-1.

Is CVE-2024-4140 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free