{"answers":{"affected":"8 open source packages ship an affected version, including net-imap. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-42246 in the wild and no public exploit code.","fix":"Upgrade net-imap to a fixed version for your release line: 0.3.10, 0.4.24, 0.5.14 or 0.6.4.","what":"CVE-2026-42246 is a high-severity 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-42246 and fix it if it is affected.\n\nWhat it is: CVE-2026-42246 is a high-severity 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-42246 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- net-imap (RubyGems): affected all versions; fixed in 0.3.10\n- net-imap (RubyGems): affected all versions; fixed in 0.3.10\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-42246/ (Markdown: https://insights.sbomify.com/CVE-2026-42246/index.md)","id":"CVE-2026-42246","markdown":"https://insights.sbomify.com/CVE-2026-42246/index.md","name":"CVE-2026-42246","record":{"aliases":["ALPINE-CVE-2026-42246","BELL-CVE-2026-42246","CLEANSTART-2026-FA36805","CLEANSTART-2026-MW08049","CLSA-2026-1783525446","DEBIAN-CVE-2026-42246","ECHO-eef9-a5b3-0486","GHSA-vcgp-9326-pqcp","MINI-26jr-fhcm-gccr","MINI-2c6w-pfmf-85wp","MINI-3h68-2cm2-wgch","MINI-7r98-q4pj-rchq","MINI-8pqj-4hh8-745v","MINI-8xqq-cxcm-g8rr","MINI-c59h-9gxp-67vp","MINI-c6ff-pq6q-mhvf","MINI-fqvm-7vhq-4rjh","MINI-gxcw-m398-7r43","MINI-hc4c-3prc-92pc","MINI-hw86-3285-6jh8","MINI-p4pw-q4v5-m5xx","MINI-phm7-xjqf-292c","MINI-v2pf-fphg-vw4p","MINI-w2v5-qm7x-592x","MINI-w7g8-9cp6-vcgh","ROOT-APP-RUBY-CVE-2026-42246"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby IMAP client library","requires_auth":"none","summary":"A man-in-the-middle attacker can bypass TLS encryption in the Ruby net-imap library, exposing email data to interception.","user_interaction":"required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"net\\","vendor":"ruby-lang"}],"cvss":{"score":7.6,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-325","name":"Missing Cryptographic Step"},{"id":"CWE-841","name":"Improper Enforcement of Behavioral Workflow"},{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"},{"id":"CWE-636","name":"Not Failing Securely"},{"id":"CWE-393","name":"Return of Wrong Status Code"},{"id":"CWE-392","name":"Missing Report of Error Condition"}],"description":"Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.3.10, 0.4.24, 0.5.14, and 0.6.4, a man-in-the-middle attacker can cause Net::IMAP#starttls to return \"successfully\", without starting TLS. This issue has been patched in versions 0.3.10, 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 vulnerable to STARTTLS stripping via invalid response timing","id":"CVE-2026-42246","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"security_feature_bypass","year":"2026"},"n_packages":8,"n_references":8,"next":{"headline":"Missing Signature Verification for Updates in Ollama","id":"CVE-2026-42248"},"packages":[{"ecosystem":"RubyGems","fixed":["0.3.10"],"introduced":["0"],"last_affected":[],"package":"net-imap","purl":null,"source":"GHSA-vcgp-9326-pqcp"},{"ecosystem":"RubyGems","fixed":["0.3.10"],"introduced":["0"],"last_affected":[],"package":"net-imap","purl":"pkg:gem/net-imap","source":"GHSA-vcgp-9326-pqcp"},{"ecosystem":"RubyGems","fixed":["0.4.24"],"introduced":["0.4.0"],"last_affected":[],"package":"net-imap","purl":null,"source":"GHSA-vcgp-9326-pqcp"},{"ecosystem":"RubyGems","fixed":["0.4.24"],"introduced":["0.4.0"],"last_affected":[],"package":"net-imap","purl":"pkg:gem/net-imap","source":"GHSA-vcgp-9326-pqcp"},{"ecosystem":"RubyGems","fixed":["0.5.14"],"introduced":["0.5.0"],"last_affected":[],"package":"net-imap","purl":null,"source":"GHSA-vcgp-9326-pqcp"},{"ecosystem":"RubyGems","fixed":["0.5.14"],"introduced":["0.5.0"],"last_affected":[],"package":"net-imap","purl":"pkg:gem/net-imap","source":"GHSA-vcgp-9326-pqcp"},{"ecosystem":"RubyGems","fixed":["0.6.4"],"introduced":["0.6.0"],"last_affected":[],"package":"net-imap","purl":null,"source":"GHSA-vcgp-9326-pqcp"},{"ecosystem":"RubyGems","fixed":["0.6.4"],"introduced":["0.6.0"],"last_affected":[],"package":"net-imap","purl":"pkg:gem/net-imap","source":"GHSA-vcgp-9326-pqcp"}],"prev":{"headline":"net-imap: Quadratic complexity when reading response literals","id":"CVE-2026-42245"},"products":["net-imap"],"published":"2026-05-09","related":[{"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"},{"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":"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":"total"},"state":"PUBLISHED","updated":"2026-08-24","vendors":["ruby"]},"summary":"A man-in-the-middle attacker can bypass TLS encryption in the Ruby net-imap library, exposing email data to interception.","url":"https://insights.sbomify.com/CVE-2026-42246/"}