{"answers":{"affected":"6 open source packages ship an affected version, including net-imap. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-42245 in the wild and no public exploit code.","fix":"Upgrade net-imap to a fixed version for your release line: 0.4.24, 0.5.14 or 0.6.4.","what":"CVE-2026-42245 is a low-severity denial of service vulnerability in ruby net-imap, published on 9 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-42245 and fix it if it is affected.\n\nWhat it is: CVE-2026-42245 is a low-severity denial of service vulnerability in ruby net-imap, published on 9 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-42245 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- net-imap (RubyGems): affected all versions; fixed in 0.4.24\n- net-imap (RubyGems): affected all versions; fixed in 0.4.24\n- net-imap (RubyGems): affected from 0.5.0; fixed in 0.5.14\n- net-imap (RubyGems): affected from 0.5.0; fixed in 0.5.14\n- net-imap (RubyGems): affected from 0.6.0; fixed in 0.6.4\n- net-imap (RubyGems): affected from 0.6.0; fixed in 0.6.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-42245/ (Markdown: https://insights.sbomify.com/CVE-2026-42245/index.md)","id":"CVE-2026-42245","markdown":"https://insights.sbomify.com/CVE-2026-42245/index.md","name":"CVE-2026-42245","record":{"aliases":["ALPINE-CVE-2026-42245","BELL-CVE-2026-42245","CLEANSTART-2026-GP85472","CLEANSTART-2026-VQ04154","DEBIAN-CVE-2026-42245","ECHO-308f-3b2d-bb3e","GHSA-q2mw-fvj9-vvcw","MINI-3633-vv8x-j744","MINI-3689-p9f8-5384","MINI-4429-jqf6-7g74","MINI-4f75-hx5p-jg6x","MINI-5mww-gg98-94mf","MINI-5p65-ggj5-v35p","MINI-6gcp-v2x9-f4m2","MINI-97gp-jf92-7jrq","MINI-cr2p-93gc-5r7m","MINI-g2q4-2537-35h4","MINI-gf66-62f4-w6xm","MINI-mgj4-fqq3-jwxc","MINI-p7m5-882f-6cr3","MINI-qq4v-cg89-q7vm","MINI-r226-wq5x-3p45","MINI-xhg4-h7mm-gqjx","MINI-xrm3-vr94-g99r","UBUNTU-CVE-2026-42245"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby IMAP client library","requires_auth":"none","summary":"A malicious IMAP server can cause excessive CPU consumption in Ruby clients via crafted responses, leading to denial of service.","user_interaction":"required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"net\\","vendor":"ruby-lang"}],"cvss":{"score":2.3,"severity":"low","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"description":"Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.4.24, 0.5.14, and 0.6.4, Net::IMAP::ResponseReader has quadratic time complexity when reading large responses containing many string literals. A hostile server can send responses which are crafted to exhaust the client's CPU for a denial of service attack. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"net-imap: Quadratic complexity when reading response literals","id":"CVE-2026-42245","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":6,"n_references":7,"next":{"headline":"net-imap vulnerable to STARTTLS stripping via invalid response timing","id":"CVE-2026-42246"},"packages":[{"ecosystem":"RubyGems","fixed":["0.4.24"],"introduced":["0"],"last_affected":[],"package":"net-imap","purl":null,"source":"GHSA-q2mw-fvj9-vvcw"},{"ecosystem":"RubyGems","fixed":["0.4.24"],"introduced":["0"],"last_affected":[],"package":"net-imap","purl":"pkg:gem/net-imap","source":"GHSA-q2mw-fvj9-vvcw"},{"ecosystem":"RubyGems","fixed":["0.5.14"],"introduced":["0.5.0"],"last_affected":[],"package":"net-imap","purl":null,"source":"GHSA-q2mw-fvj9-vvcw"},{"ecosystem":"RubyGems","fixed":["0.5.14"],"introduced":["0.5.0"],"last_affected":[],"package":"net-imap","purl":"pkg:gem/net-imap","source":"GHSA-q2mw-fvj9-vvcw"},{"ecosystem":"RubyGems","fixed":["0.6.4"],"introduced":["0.6.0"],"last_affected":[],"package":"net-imap","purl":null,"source":"GHSA-q2mw-fvj9-vvcw"},{"ecosystem":"RubyGems","fixed":["0.6.4"],"introduced":["0.6.0"],"last_affected":[],"package":"net-imap","purl":"pkg:gem/net-imap","source":"GHSA-q2mw-fvj9-vvcw"}],"prev":{"headline":"ParquetSharp: Possible Stack Overflow When Reading a ParquetFile with Large Decimal Type Width","id":"CVE-2026-42241"},"products":["net-imap"],"published":"2026-05-09","related":[{"cvss_score":7.6,"headline":"net-imap vulnerable to STARTTLS stripping via invalid response timing","id":"CVE-2026-42246","kev_date_added":null,"published":"2026-05-09"},{"cvss_score":6,"headline":"net-imap: Denial of service via high iteration count for `SCRAM-*` authentication","id":"CVE-2026-42256","kev_date_added":null,"published":"2026-05-09"},{"cvss_score":6,"headline":"net-imap rubygem vulnerable to possible DoS by memory exhaustion","id":"CVE-2025-43857","kev_date_added":null,"published":"2025-04-28"},{"cvss_score":5.8,"headline":"net-imap: Command Injection via \"raw\" arguments to multiple commands","id":"CVE-2026-42257","kev_date_added":null,"published":"2026-05-09"},{"cvss_score":5.8,"headline":"net-imap: Command Injection via unvalidated Symbol inputs","id":"CVE-2026-42258","kev_date_added":null,"published":"2026-05-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-12","vendors":["ruby"]},"summary":"A malicious IMAP server can cause excessive CPU consumption in Ruby clients via crafted responses, leading to denial of service.","url":"https://insights.sbomify.com/CVE-2026-42245/"}