StackPatch is liveSee product

Back to CVE digest
CVE-2024-4140 · cross-distro fix matrix

CVE-2024-4140: 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.

Affects 5 Linux releases across 5 (distro × package) combinations.

Fix per ecosystem

Each block below is a distro release where CVE-2024-4140 has a known fix. Run the listed command on that distro to remediate.

Debian trixie

Source: Debian Security Tracker

  • libemail-mime-perl→ fixed in1.954-1urgency: not yet assigned
    sudo apt-get install --only-upgrade -y libemail-mime-perl

Alpine v3.20

Source: Alpine secdb

  • perl-email-mime→ fixed in1.954-r0
    apk update && apk add --upgrade perl-email-mime

Alpine v3.21

Source: Alpine secdb

  • perl-email-mime→ fixed in1.954-r0
    apk update && apk add --upgrade perl-email-mime

Alpine edge

Source: Alpine secdb

  • perl-email-mime→ fixed in1.954-r0
    apk update && apk add --upgrade perl-email-mime

Alpine v3.19

Source: Alpine secdb

  • perl-email-mime→ fixed in1.954-r0
    apk update && apk add --upgrade perl-email-mime
Are YOU affected by CVE-2024-4140?

5-second check on your actual server. Reads /etc/os-release, uname -r, and the distro's package manager; matches against this same cross-source index live.

curl https://mindsparkstack.com/scan.sh | bash
Continuous monitoring beats manual checking

CVE-2024-4140dropped silently in your distro's update channel. Every new CVE is the same story. StackPatch runs the matcher hourly against all 5 sources and emails the exact remediation when something new applies to one of your servers. $99 lifetime, 50 founder seats, 30-day refund.

See StackPatch ($99 lifetime)