CVE-2025-43857
CVE-2025-43857 — net-imap rubygem vulnerable to possible DoS by memory exhaustion
Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.5.7, 0.4.20, 0.3.9, and 0.2.5, there is a possibility for denial of service by memory exhaustion when net-imap reads server responses. At any time while the client is connected, a malicious server can send can send a "literal" byte count, which is automatically read by the client's receiver thread. The response reader immediately allocates memory for the number of bytes indicated by the server response. This should not be an issue when securely connecting to trusted IMAP servers that are well-behaved. It can affect insecure connections and buggy, untrusted, or compromised servers (for example, connecting to a user supplied hostname). This issue has been patched in versions 0.5.7, 0.4.20, 0.3.9, and 0.2.5.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
6.0
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 6.0 | CVSS 4.0 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-400
- CWE-770
- CWE-789
- CWE-405
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1499Endpoint Denial of Service
- T1498.001Network Denial of Service: Direct Network Flood
- T1499.003Endpoint Denial of Service: Application Exhaustion Flood
References
6 on the record
- github.com/ruby/net-imap/security/advisories/GHSA-j3g3-5qv5-52mj
x_refsource_CONFIRM
- github.com/ruby/net-imap/pull/442
x_refsource_MISC
- github.com/ruby/net-imap/pull/444/commits/0ae8576c1a90bcd9573f81bdad4b4b824642d105#diff-53721cb4d9c3fb86b95cc8476ca2df90968ad8c481645220c607034399151462
x_refsource_MISC
- github.com/ruby/net-imap/pull/445
x_refsource_MISC
- github.com/ruby/net-imap/pull/446
x_refsource_MISC
- github.com/ruby/net-imap/pull/447
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2021-44228 Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpointsCVSS 10.0 · CISA KEV
- CVE-2025-53521 BigIP APM VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2020-3569 Cisco IOS XR Software DVMRP Memory Exhaustion VulnerabilityCVSS 8.6 · CISA KEV
- CVE-2020-3566 Cisco IOS XR Software DVMRP Memory Exhaustion VulnerabilityCVSS 8.6 · CISA KEV
- CVE-2026-45498 Microsoft Defender Denial of Service VulnerabilityCVSS 7.5 · CISA KEV
- CVE-2026-28318 SolarWinds Serv-U Unauthenticated Denial of Service VulnerabilityCVSS 7.5 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.