Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-43857

published medium CVSS 4.0 · 6.0

net-imap rubygem vulnerable to possible DoS by memory exhaustion

Published
28 Apr 2025, 16:02:04 UTC
Updated
28 Apr 2025, 18:00:01 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
ruby — net-imap>= 0.5.0, < 0.5.7 · >= 0.4.0, < 0.4.20 · >= 0.3.0, < 0.3.9 · >= 0, < 0.2.5 Affected Not stated GitHub_M
Amazon Linux AL2 Release evaluation No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-1168 Fixed Not stated Amazon Linux assessment
Alpine Linux v3.20 ruby-net-imap Fixed 0.4.22-r0 Package fix record
Amazon Linux AL2023 ruby3.2aarch64 Listed in advisory Not stated ALAS2023-2025-1168
Alpine Linux v3.21 ruby-net-imap Fixed 0.4.22-r0 Package fix record
Amazon Linux AL2023 ruby3.2noarch Listed in advisory Not stated ALAS2023-2025-1168
Amazon Linux AL2023 ruby3.2src Listed in advisory Not stated ALAS2023-2025-1168
Show 1 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2023 ruby3.2x86_64 Listed in advisory Not stated ALAS2023-2025-1168

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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

3

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
4.0
Base score
6.0 / 10
Severity
medium
Provider
GitHub_M · cna
Vector string
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
ruby net-imap >= 0.5.0, < 0.5.7 (affected)>= 0.4.0, < 0.4.20 (affected)>= 0.3.0, < 0.3.9 (affected)>= 0, < 0.2.5 (affected) GitHub_M · cna

Weaknesses

4
  • CWE-400 CWE-400: Uncontrolled Resource Consumption (GitHub_M · cna)
  • CWE-770 CWE-770: Allocation of Resources Without Limits or Throttling (GitHub_M · cna)
  • CWE-789 CWE-789: Memory Allocation with Excessive Size Value (GitHub_M · cna)
  • CWE-405 CWE-405: Asymmetric Resource Consumption (Amplification) (GitHub_M · cna)

References

6

Provider assertions

2

GitHub_M · cna

net-imap rubygem vulnerable to possible DoS by memory exhaustion

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.1
Searchable
yes
Content hash
0e2dcf3e74933b45b66122ca0f43d83f165fb3d985e1f2ec375dbfb63f538c90
Ingested
23 Sep 2026, 08:49:03 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected