6.5

CVE-2025-43857: ruby net-imap Uncontrolled Resource Consumption

CVSS: 6.5v3.1MediumAnalyzed
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.49% chance of exploitation in the next 30 days, higher than 40.5% of scored vulnerabilities.

Overall risk
26/100
0100
Medium · default modelHow is this calculated?
CVSS score
6.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.49%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · 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.49%

Chance of exploitation in the next 30 days

Percentile

41%

Versus all other CVEs

30-day change

+0.02 pp

From 0.47% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.49%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

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)
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