{"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-42256 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-42256 is a medium-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-42256 and fix it if it is affected.\n\nWhat it is: CVE-2026-42256 is a medium-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-42256 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- net-imap (RubyGems): affected from 0.4.0; fixed in 0.4.24\n- net-imap (RubyGems): affected from 0.4.0; 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-42256/ (Markdown: https://insights.sbomify.com/CVE-2026-42256/index.md)","id":"CVE-2026-42256","markdown":"https://insights.sbomify.com/CVE-2026-42256/index.md","name":"CVE-2026-42256","record":{"aliases":["ALPINE-CVE-2026-42256","BELL-CVE-2026-42256","CLEANSTART-2026-MC27877","CLEANSTART-2026-MH39201","DEBIAN-CVE-2026-42256","ECHO-0e5e-7c8e-8329","GHSA-87pf-fpwv-p7m7","MINI-2x72-7w9w-v755","MINI-4j7f-7wcp-mhv2","MINI-6p2q-gr4x-vx4h","MINI-87rf-rrcq-pwjm","MINI-8r34-84wm-mp5x","MINI-97qf-jpr2-m7hf","MINI-ch2q-7q5p-m959","MINI-cvpv-cv26-jxx7","MINI-hmv5-2m52-vx4x","MINI-p969-6jr4-66qr","MINI-qgjr-q5xg-ccjp","MINI-qv73-2x32-59hr","MINI-r367-hmg3-fqx7","MINI-vp68-5frx-jcjg","SUSE-SU-2026:3792-1","openSUSE-SU-2026:21225-1"],"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 a denial of service in Ruby clients using SCRAM authentication by sending a high iteration count.","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":6,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-1322","name":"Use of Blocking Code in Single-threaded, Non-blocking Context"}],"description":"Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. From versions 0.4.0 to before 0.4.24, 0.5.0 to before 0.5.14, and 0.6.0 to before 0.6.4, when authenticating a connection with SCRAM-SHA1 or SCRAM-SHA256, a hostile server can perform a computational denial-of-service attack on the client process by sending a big iteration count value. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.","ecosystems":["RubyGems","SUSE:Linux Enterprise Module for Public Cloud 15 SP7","SUSE:Linux Enterprise Module for Server Applications 15 SP7","openSUSE:Leap 16.0"],"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: Denial of service via high iteration count for `SCRAM-*` authentication","id":"CVE-2026-42256","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":9,"n_references":7,"next":{"headline":"net-imap: Command Injection via \"raw\" arguments to multiple commands","id":"CVE-2026-42257"},"packages":[{"ecosystem":"RubyGems","fixed":["0.4.24"],"introduced":["0.4.0"],"last_affected":[],"package":"net-imap","purl":null,"source":"GHSA-87pf-fpwv-p7m7"},{"ecosystem":"RubyGems","fixed":["0.4.24"],"introduced":["0.4.0"],"last_affected":[],"package":"net-imap","purl":"pkg:gem/net-imap","source":"GHSA-87pf-fpwv-p7m7"},{"ecosystem":"RubyGems","fixed":["0.5.14"],"introduced":["0.5.0"],"last_affected":[],"package":"net-imap","purl":null,"source":"GHSA-87pf-fpwv-p7m7"},{"ecosystem":"RubyGems","fixed":["0.5.14"],"introduced":["0.5.0"],"last_affected":[],"package":"net-imap","purl":"pkg:gem/net-imap","source":"GHSA-87pf-fpwv-p7m7"},{"ecosystem":"RubyGems","fixed":["0.6.4"],"introduced":["0.6.0"],"last_affected":[],"package":"net-imap","purl":null,"source":"GHSA-87pf-fpwv-p7m7"},{"ecosystem":"RubyGems","fixed":["0.6.4"],"introduced":["0.6.0"],"last_affected":[],"package":"net-imap","purl":"pkg:gem/net-imap","source":"GHSA-87pf-fpwv-p7m7"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP7","fixed":["3.1.0-150700.3.28.1"],"introduced":["0"],"last_affected":[],"package":"rmt-server","purl":"pkg:rpm/suse/rmt-server\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP7","source":"SUSE-SU-2026:3792-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP7","fixed":["3.1.0-150700.3.28.1"],"introduced":["0"],"last_affected":[],"package":"rmt-server","purl":"pkg:rpm/suse/rmt-server\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP7","source":"SUSE-SU-2026:3792-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["3.0.0-160000.1.1"],"introduced":["0"],"last_affected":[],"package":"rmt-server","purl":"pkg:rpm/opensuse/rmt-server\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:21225-1"}],"prev":{"headline":"Denial of service in DnsServer","id":"CVE-2026-42255"},"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 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"},{"cvss_score":2.3,"headline":"net-imap: Quadratic complexity when reading response literals","id":"CVE-2026-42245","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":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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-11","vendors":["ruby"]},"summary":"A malicious IMAP server can cause a denial of service in Ruby clients using SCRAM authentication by sending a high iteration count.","url":"https://insights.sbomify.com/CVE-2026-42256/"}