{"id":"CVE-2025-25186","published":"2025-02-10T15:55:56Z","modified":"2025-02-12T15:46:11Z","title":"Net::IMAP vulnerable to possible DoS by memory exhaustion","vendor":"ruby","product":"net-imap","tier":"tail","description":{"text":"Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Starting in version 0.3.2 and prior to versions 0.3.8, 0.4.19, and 0.5.6, there is a possibility for denial of service by memory exhaustion 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. Versions 0.3.8, 0.4.19, 0.5.6, and higher fix this issue. Additional details for proper configuration of fixed versions and backward compatibility are available in the GitHub Security Advisory.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00935,"percentile":0.59118,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-405","name":"Asymmetric Resource Consumption (Amplification)"},{"id":"CWE-409","name":"Improper Handling of Highly Compressed Data (Data Amplification)"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"},{"id":"CWE-1287","name":"Improper Validation of Specified Type of Input"}],"references":[{"url":"https://github.com/ruby/net-imap/security/advisories/GHSA-7fc5-f82f-cx69","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ruby/net-imap/commit/70e3ddd071a94e450b3238570af482c296380b35","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/net-imap/commit/c8c5a643739d2669f0c9a6bb9770d0c045fd74a3","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/net-imap/commit/cb92191b1ddce2d978d01b56a0883b6ecf0b1022","tags":["x_refsource_MISC"]}],"priority":{"score":16.4,"factors":[{"name":"EPSS percentile","points":11.82},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"ruby","affectedVersions":[{"vendor":"ruby","product":"net-imap","versions":[">= 0.3.2, < 0.3.8",">= 0.4.0, < 0.4.19",">= 0.5.0, < 0.5.6"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-10T16:13:53.189390Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"net-imap","vulnerableRanges":[">=0.3.2, <0.3.8",">=0.4.0, <0.4.19",">=0.5.0, <0.5.6"],"patched":["0.3.8","0.4.19","0.5.6"],"from":["GHSA-7fc5-f82f-cx69"],"provenance":"source"}],"summary":{"text":"The net-imap library for Ruby, which implements the IMAP client, has a flaw in its response parser where highly compressed uid-set data is expanded into arrays without any size limit. A malicious IMAP server can exploit this over a network connection, requiring no authentication or user interaction, to exhaust the client's memory and cause a denial of service on the affected application.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:10Z"},"euvd":{"id":"EUVD-2025-4076","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-25186","published":"2025-02-10","fixed":"0.5.6","kev":false},{"cve":"CVE-2025-43857","published":"2025-04-28","fixed":"0.5.7","kev":false,"link":{"from":"CVE-2025-25186","to":"CVE-2025-43857","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:net-imap","fromFixed":"0.5.6","toFixed":"0.5.7","daysApart":77},{"kind":"version-step","provenance":"source","package":"RubyGems:net-imap","fromFixed":"0.4.19","toFixed":"0.4.20","daysApart":77}]}},{"cve":"CVE-2026-42245","published":"2026-05-09","fixed":"0.6.4","kev":false},{"cve":"CVE-2026-42246","published":"2026-05-09","fixed":"0.6.4","kev":false}],"package":"RubyGems:net-imap"}}