{"answers":{"affected":"4 open source packages ship an affected version, including net-imap.","exploited":"There is no known exploitation of CVE-2026-47242 in the wild and no public exploit code.","fix":"Upgrade net-imap to a fixed version for your release line: 0.5.15 or 0.6.4.1.","what":"CVE-2026-47242 is a medium-severity command injection vulnerability in ruby net-imap, published on 22 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-47242 and fix it if it is affected.\n\nWhat it is: CVE-2026-47242 is a medium-severity command injection vulnerability in ruby net-imap, published on 22 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-47242 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- net-imap (RubyGems): affected all versions; fixed in 0.5.15\n- net-imap (RubyGems): affected all versions; fixed in 0.5.15\n- net-imap (RubyGems): affected from 0.6.0; fixed in 0.6.4.1\n- net-imap (RubyGems): affected from 0.6.0; fixed in 0.6.4.1\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-47242/ (Markdown: https://insights.sbomify.com/CVE-2026-47242/index.md)","id":"CVE-2026-47242","markdown":"https://insights.sbomify.com/CVE-2026-47242/index.md","name":"CVE-2026-47242","record":{"aliases":["ALPINE-CVE-2026-47242","AZL-91284","BELL-CVE-2026-47242","CLEANSTART-2026-FP14746","CLEANSTART-2026-YF80791","DEBIAN-CVE-2026-47242","ECHO-d8b1-4397-2a2e","GHSA-46q3-7gv7-qmgg","MINI-5rrx-5qwr-wqvm","MINI-5wpw-974x-p8q7","MINI-6mc8-m78c-mfhc","MINI-6r5v-vjhv-qgrg","MINI-fcwf-h2rm-m547","MINI-fpqq-fpjx-cr84","MINI-m4mm-6g6w-q6hw","MINI-p5c7-gv53-jf2w","MINI-pcgg-wv5g-pfr2","MINI-q3j4-8cvr-7vhw","MINI-qjhr-4qc2-qfpr","MINI-rh55-x2w5-88rc","MINI-vjc3-gxhx-7458","MINI-xhpx-xg48-q48c","MINI-xr2h-cjhc-988p","RHSA-2026:54391","RHSA-2026:54393","RHSA-2026:54416","UBUNTU-CVE-2026-47242"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Ruby IMAP client library","requires_auth":"none","summary":"Attackers can inject arbitrary IMAP commands via unsanitized arguments in the Ruby Net::IMAP library, potentially leading to code execution.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.8,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"},{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"description":"Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, when Net::IMAP#id is called with a hash argument, although the ID field value strings are correctly quoted (escaping quoted specials), they were not validated to prohibit CRLF sequences. While Net::IMAP#enable does process its arguments for aliases, it does not validate them as valid atoms (or as a list of valid atoms). The #to_s value is sent verbatim. Arguments to either command could be used by an attacker to inject arbitrary IMAP commands. This vulnerability is fixed in 0.6.5 and 0.5.15.","ecosystems":["Red Hat:enterprise_linux_eus:10.0","Red Hat:rhel_e4s:9.4::appstream","Red Hat:rhel_eus:9.6::appstream","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: Command Injection via ID command argument","id":"CVE-2026-47242","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":122,"n_references":1,"next":{"headline":"Kata guest escape: runtime-rs guest-root to host-root escape via virtiofs","id":"CVE-2026-47243"},"packages":[{"ecosystem":"RubyGems","fixed":["0.5.15"],"introduced":["0"],"last_affected":[],"package":"net-imap","purl":null,"source":"GHSA-46q3-7gv7-qmgg"},{"ecosystem":"RubyGems","fixed":["0.5.15"],"introduced":["0"],"last_affected":[],"package":"net-imap","purl":"pkg:gem/net-imap","source":"GHSA-46q3-7gv7-qmgg"},{"ecosystem":"RubyGems","fixed":["0.6.4.1"],"introduced":["0.6.0"],"last_affected":[],"package":"net-imap","purl":null,"source":"GHSA-46q3-7gv7-qmgg"},{"ecosystem":"RubyGems","fixed":["0.6.4.1"],"introduced":["0.6.0"],"last_affected":[],"package":"net-imap","purl":"pkg:gem/net-imap","source":"GHSA-46q3-7gv7-qmgg"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.3.12-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"ruby","purl":"pkg:rpm/redhat/ruby","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.3.12-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"ruby-bundled-gems","purl":"pkg:rpm/redhat/ruby-bundled-gems","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.3.12-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"ruby-bundled-gems-debuginfo","purl":"pkg:rpm/redhat/ruby-bundled-gems-debuginfo","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.3.12-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"ruby-debuginfo","purl":"pkg:rpm/redhat/ruby-debuginfo","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.3.12-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"ruby-debugsource","purl":"pkg:rpm/redhat/ruby-debugsource","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.3.12-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"ruby-default-gems","purl":"pkg:rpm/redhat/ruby-default-gems","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.3.12-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"ruby-devel","purl":"pkg:rpm/redhat/ruby-devel","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.3.12-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"ruby-doc","purl":"pkg:rpm/redhat/ruby-doc","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.3.12-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"ruby-libs","purl":"pkg:rpm/redhat/ruby-libs","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.3.12-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"ruby-libs-debuginfo","purl":"pkg:rpm/redhat/ruby-libs-debuginfo","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.1.5-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-bigdecimal","purl":"pkg:rpm/redhat/rubygem-bigdecimal","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.1.5-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-bigdecimal-debuginfo","purl":"pkg:rpm/redhat/rubygem-bigdecimal-debuginfo","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:2.5.22-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-bundler","purl":"pkg:rpm/redhat/rubygem-bundler","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:0.7.1-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-io-console","purl":"pkg:rpm/redhat/rubygem-io-console","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:0.7.1-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-io-console-debuginfo","purl":"pkg:rpm/redhat/rubygem-io-console-debuginfo","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:1.13.1-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-irb","purl":"pkg:rpm/redhat/rubygem-irb","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:2.7.2-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-json","purl":"pkg:rpm/redhat/rubygem-json","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:2.7.2-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-json-debuginfo","purl":"pkg:rpm/redhat/rubygem-json-debuginfo","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:5.20.0-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-minitest","purl":"pkg:rpm/redhat/rubygem-minitest","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:2.0.3-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-power_assert","purl":"pkg:rpm/redhat/rubygem-power_assert","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:5.1.2-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-psych","purl":"pkg:rpm/redhat/rubygem-psych","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:5.1.2-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-psych-debuginfo","purl":"pkg:rpm/redhat/rubygem-psych-debuginfo","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:1.7.3-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-racc","purl":"pkg:rpm/redhat/rubygem-racc","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:1.7.3-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-racc-debuginfo","purl":"pkg:rpm/redhat/rubygem-racc-debuginfo","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:13.1.0-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-rake","purl":"pkg:rpm/redhat/rubygem-rake","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.4.0-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-rbs","purl":"pkg:rpm/redhat/rubygem-rbs","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.4.0-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-rbs-debuginfo","purl":"pkg:rpm/redhat/rubygem-rbs-debuginfo","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:6.6.3.1-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-rdoc","purl":"pkg:rpm/redhat/rubygem-rdoc","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.4.4-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-rexml","purl":"pkg:rpm/redhat/rubygem-rexml","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:0.3.1-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-rss","purl":"pkg:rpm/redhat/rubygem-rss","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.6.1-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-test-unit","purl":"pkg:rpm/redhat/rubygem-test-unit","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:0.21.9-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-typeprof","purl":"pkg:rpm/redhat/rubygem-typeprof","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.5.22-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygems","purl":"pkg:rpm/redhat/rubygems","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.5.22-11.el10_0.3"],"introduced":["0"],"last_affected":[],"package":"rubygems-devel","purl":"pkg:rpm/redhat/rubygems-devel","source":"RHSA-2026:54391"},{"ecosystem":"Red Hat:rhel_e4s:9.4::appstream","fixed":["0:3.3.12-7.module+el9.4.0+24628+a370c2b9.2"],"introduced":["0"],"last_affected":[],"package":"ruby","purl":"pkg:rpm/redhat/ruby","source":"RHSA-2026:54393"},{"ecosystem":"Red Hat:rhel_e4s:9.4::appstream","fixed":["0:3.3.12-7.module+el9.4.0+24628+a370c2b9.2"],"introduced":["0"],"last_affected":[],"package":"ruby-bundled-gems","purl":"pkg:rpm/redhat/ruby-bundled-gems","source":"RHSA-2026:54393"}],"prev":{"headline":"Net::IMAP: Denial of Service via incomplete raw argument validation","id":"CVE-2026-47241"},"products":["net-imap"],"published":"2026-06-22","related":[],"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":"Red Hat","prefix":"RHSA"},{"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-06-23","vendors":["ruby"]},"summary":"Attackers can inject arbitrary IMAP commands via unsanitized arguments in the Ruby Net::IMAP library, potentially leading to code execution.","url":"https://insights.sbomify.com/CVE-2026-47242/"}