6.5

CVE-2025-43857: net-imap rubygem vulnerable to possible DoS by memory exhaustion

Analyzed
AliasesALPINE-CVE-2025-43857UBUNTU-CVE-2025-43857DEBIAN-CVE-2025-43857
Published 28-04-2025Last modified 28-04-2025

Vulnerability summary

CVE-2025-43857 is a medium (CVSS 6.5) Uncontrolled Resource Consumption vulnerability in ruby net-imap. EPSS estimates a 0.51% chance of exploitation in the next 30 days, higher than 44.9% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 6, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.51%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 2

Timeline

  1. 28-04-2025
    PublishedVulnerability first disclosed.
  2. 28-04-2025
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

10 scores · 8 sources · 2 versions

EPSS trend

Probability

0.51%

Chance of exploitation in the next 30 days

Percentile

45%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.49% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard15 products
  • gitlab-rails-ce-18.1All versions (No fix recorded)
  • gitlab-rails-ce-18.2All versions (No fix recorded)
  • gitlab-rails-ce-fips-18.1All versions (No fix recorded)
  • gitlab-rails-ce-fips-18.2All versions (No fix recorded)
  • graalvm-24-trufflerubyAll versions (No fix recorded)
Wolfi9 products
  • jruby-9.4< 9.4.13.0-r0
  • jruby-9.4-default-ruby< 9.4.13.0-r0
  • kube-fluentd-operator< 1.18.2-r36
  • kube-fluentd-operator-compat< 1.18.2-r36
  • kube-fluentd-operator-default-config< 1.18.2-r36
Ubuntu6 products
  • jrubyAll versions (No fix recorded)
  • ruby2.5All versions (No fix recorded)
  • ruby2.7All versions (No fix recorded)
  • ruby3.0All versions (No fix recorded)
  • ruby3.2All versions (No fix recorded)
Debian2 products
  • ruby3.1All versions (No fix recorded)
  • ruby3.3All versions (No fix recorded) | < 3.3.14-0.1
Alpine1 product
  • ruby-net-imap< 0.4.22-r0
Ruby1 product
  • net-imap≥ 0.5.0, < 0.5.7 | ≥ 0.4.0, < 0.4.20 | ≥ 0.3.0, < 0.3.9 | < 0.2.5
RubyGems1 product
  • net-imap≥ 0.5.0, < 0.5.7 | ≥ 0.4.0, < 0.4.20 | ≥ 0.3.0, < 0.3.9 | < 0.2.5

7 vendors · 35 products

References

15 links
Show all 15 references