Vulnerability · Published May 2, 2024 · Assigned by canonical
CVE-2024-4140
High 7.5
In plain English
A high-severity resource allocation without limits in Email-MIME from rjbs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 67% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.1%top 33.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | perl-email-mime | 1.954-r0 | ALPINE-CVE-2024-4140 |
| Alpine:v3.21 | perl-email-mime | 1.954-r0 | ALPINE-CVE-2024-4140 |
| Alpine:v3.22 | perl-email-mime | 1.954-r0 | ALPINE-CVE-2024-4140 |
| Alpine:v3.23 | perl-email-mime | 1.954-r0 | ALPINE-CVE-2024-4140 |
| Alpine:v3.24 | perl-email-mime | 1.954-r0 | ALPINE-CVE-2024-4140 |
| Debian:12 | libemail-mime-perl | no fix listed | DEBIAN-CVE-2024-4140 |
| Debian:13 | libemail-mime-perl | 1.954-1 | DEBIAN-CVE-2024-4140 |
| Debian:14 | libemail-mime-perl | 1.954-1 | DEBIAN-CVE-2024-4140 |
| Ubuntu:22.04:LTS | libemail-mime-perl | no fix listed | UBUNTU-CVE-2024-4140 |
| Ubuntu:24.04:LTS | libemail-mime-perl | no fix listed | UBUNTU-CVE-2024-4140 |
| Ubuntu:25.10 | libemail-mime-perl | no fix listed | UBUNTU-CVE-2024-4140 |
| Ubuntu:26.04:LTS | libemail-mime-perl | no fix listed | UBUNTU-CVE-2024-4140 |
| Ubuntu:26.10 | libemail-mime-perl | no fix listed | UBUNTU-CVE-2024-4140 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| rjbs | Email-MIME | 0 – before 1.954 |
Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/rjbs/Email-MIME/issues/66 issue-tracking
- https://github.com/rjbs/Email-MIME/pull/80 issue-tracking
- https://bugs.debian.org/960062 issue-tracking
- https://www.cve.org/CVERecord?id=CVE-2024-4140 issue-tracking
- https://github.com/rjbs/Email-MIME/commit/3a12edd119e493156a5a05e45dd50f4e36b702e8 patch
- https://github.com/rjbs/Email-MIME/commit/7e96ecfa1da44914a407f82ae98ba817bba08f2d patch
- https://github.com/rjbs/Email-MIME/commit/02bf3e26812c8f38a86a33c168571f9783365df2 patch
- https://github.com/rjbs/Email-MIME/commit/fc0fededd24a71ccc51bcd8b1e486385d09aae63 patch
- https://github.com/rjbs/Email-MIME/commit/b2cb62f19e12580dd235f79e2546d44a6bec54d1 patch
- https://github.com/rjbs/Email-MIME/commit/3dcf096eeccb8e4dd42738de676c8f4a5aa7a531 patch
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UFD5BWGYAVLW6IO4SUNLTJCFFLHZYQGT/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YHXHDLPZ6JV4KK3Q43O6TE3WOBAIUQRC/