# 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 multipar…

- Severity: High 7.5 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.13%, higher than 67% of CVEs (2026-12-01)
- Published: 2024-05-02T19:59:20.917Z
- Modified: 2026-06-17T08:01:12.537Z
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: canonical

## 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.

(As written by CVE List.)

## Affected

- libemail-mime-perl: before 1.954
- rjbs email_mime: before 1.954
- rjbs email-mime: before 1.954
- fedoraproject fedora: 39; 40

## 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, mailing-list)
- <https://www.cve.org/CVERecord?id=CVE-2024-4140> (issue-tracking, third-party-advisory)
- <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/> (mailing-list)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YHXHDLPZ6JV4KK3Q43O6TE3WOBAIUQRC/> (mailing-list)

## Sources

- CVE List: [CVE-2024-4140](https://www.cve.org/CVERecord?id=CVE-2024-4140), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2024-4140](https://nvd.nist.gov/vuln/detail/CVE-2024-4140), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-4140 · Whole record: https://cve.day/CVE-2024-4140.json · Rebuilt by cve.day 2026-11-25T22:58:39.909Z
