#VU112026 Asymmetric Resource Consumption (Amplification) in net-imap - CVE-2025-25186

 

#VU112026 Asymmetric Resource Consumption (Amplification) in net-imap - CVE-2025-25186

Published: June 27, 2025


Vulnerability identifier: #VU112026
Vulnerability risk: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2025-25186
CWE-ID: CWE-405
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
net-imap
Software vendor:
Ruby

Description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to application does not properly control consumption of internal resources in `net-imap`'s response parser. At any time while the client is connected, a malicious server can send can send highly compressed `uid-set` data which is automatically read by the client's receiver thread. The response parser uses `Range#to_a` to convert the `uid-set` data into arrays of integers, with no limitation on the expanded size of the ranges. A remote attacker can trigger resource exhaustion and perform a denial of service (DoS) attack.


Remediation

Install updates from vendor's website.

External links