CVE-2024-4140
An excessive memory use issue (CWE-770) exists in Email-MIME, before version 1.954, which can cause denial of service w…
Mitigation
- Upgrade Email-MIME to 1.954 or later.
Who should check
- Anyone running rjbs Email-MIME < 1.954
Vulnerability facts
- Affected
- rjbs Email-MIME < 1.954
- Fixed in
- rjbs Email-MIME 1.954
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 1.64% chance of exploitation in 30 days (percentile 77, 2026-11-26)
- CWE
- CWE-770
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| rjbs Email-MIME | < 1.954 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-4140. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-4140.md Affected: rjbs Email-MIME < 1.954 Fixed in: rjbs Email-MIME 1.954 Steps: 1. Search this machine and project for rjbs Email-MIME: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://github.com/rjbs/Email-MIME/pull/80
- https://github.com/rjbs/Email-MIME/commit/3a12edd119e493156a5a05e45dd50f4e36b702e8
- https://github.com/rjbs/Email-MIME/commit/7e96ecfa1da44914a407f82ae98ba817bba08f2d
- https://github.com/rjbs/Email-MIME/commit/02bf3e26812c8f38a86a33c168571f9783365df2
- https://github.com/rjbs/Email-MIME/commit/fc0fededd24a71ccc51bcd8b1e486385d09aae63
- https://github.com/rjbs/Email-MIME/commit/b2cb62f19e12580dd235f79e2546d44a6bec54d1
- https://github.com/rjbs/Email-MIME/commit/3dcf096eeccb8e4dd42738de676c8f4a5aa7a531
Other
- https://github.com/rjbs/Email-MIME/issues/66
- https://bugs.debian.org/960062
- https://www.cve.org/CVERecord?id=CVE-2024-4140
- 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/
FAQ
Is CVE-2024-4140 being exploited?
There is no confirmed exploitation: CVE-2024-4140 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.64% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-4140?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-4140?
rjbs Email-MIME < 1.954.
Is there a fix for CVE-2024-4140?
Yes. Fixed in rjbs Email-MIME 1.954. Upgrade Email-MIME to 1.954 or later.
How do I check if I'm affected by CVE-2024-4140?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.