CVE-2026-42258
net-imap: Command Injection via unvalidated Symbol inputs
Reported by github_m · Published May 9, 2026
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, symbol arguments to commands are vulnerable to a CRLF Injection / IMAP Command injection via Symbol arguments passed to IMAP commands. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rubygem-io-console-debuginfo | errata.rockylinux.org | 0.7.1-13.el10 |
| rubygem-rss | errata.rockylinux.org | 0.3.2-33.module, 0.3.1-13.el10, 0.3.1-7.module, 0.2.9-167.el9 |
| gitlab-rails-ce-fips-18.11 | Chainguard | 18.11.3-r2 |
| rubygem-rdoc | errata.rockylinux.org | 7.0.3-33.module, 6.6.3.1-7.module, 6.3.4.1-167.el9 |
| rubygem-pg-doc | errata.rockylinux.org | 1.6.3-1.module, 1.5.4-2.module |
| ruby-libs-debuginfo | errata.rockylinux.org | 3.3.10-13.el10, 3.3.10-7.module, 2.5.9-115.module |
| rubygem-openssl | errata.rockylinux.org | 2.1.2-115.module |
| rubygem-typeprof | errata.rockylinux.org | 0.21.9-13.el10, 0.21.9-7.module |
| rubygem-mysql2 | errata.rockylinux.org | 0.5.7-1.module, 0.5.5-3.module, 0.5.5-1.module, 0.4.10-4.module |
| rubygem-rexml | errata.rockylinux.org | 3.4.4-33.module, 3.4.4-13.el10, 3.4.4-7.module, 3.2.5-167.el9 |
| rubygem-rake | errata.rockylinux.org | 13.3.1-33.module, 13.1.0-7.module, 13.0.3-167.el9, 12.3.3-115.module |
| ruby3.3-rails-8.0 | Chainguard | 8.0.5-r2 |
48 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| ruby | net-imap | < 0.4.24, >= 0.5.0, < 0.5.14, >= 0.6.0, < 0.6.4 |
| chainguard | gitlab-rails-ce-fips-18.11 | 0 |
| Red Hat | Red Hat OpenShift Dev Spaces | |
| Red Hat | Red Hat Enterprise Linux AppStream AUS (v.8.4) | |
| chainguard | ruby3.3-rails-8.0 | 0 |
| chainguard | ruby4.0-rails-8.1 | 0 |
| amazon:2023 | ruby4.0-rubygem-minitest | 0 |
| chainguard | logstash-8.19 | 0 |
| Red Hat | Red Hat Enterprise Linux 8 | |
| Red Hat | Red Hat 3scale API Management Platform 2 | |
| chainguard | logstash-9.1 | 0 |
| chainguard | ruby3.2-rails-7.2 | 0 |
| amazon:2023 | ruby3.4-rubygem-rdoc | 0 |
| wolfi | ruby3.3-rails-8.1 | 0 |
| amazon:2023 | ruby3.4-rubygem-racc | 0 |
| chainguard | ruby4.0-rails-7.2 | 0 |
| wolfi | ruby3.4-rails-8.1 | 0 |
| amazon:2023 | ruby4.0-rubygems-devel | 0 |
| chainguard | gitlab-rails-ce-fips-18.9 | 0 |
| amazon:2023 | ruby4.0-libs | 0 |
…and 156 more
Timeline
- May 4, 2026 CVE Published
- May 10, 2026 Security Advisory (27 in total, the first dated here)
- May 18, 2026 EPSS Score (30 in total, the first dated here)
- Jun 30, 2026 Distribution Patch (33 in total, the first dated here)
- Aug 4, 2026 Coalition ESS Score
- Sep 1, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-42258
vulnetix vdb fixes CVE-2026-42258
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-42258/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/ruby/net-imap/security/advisories/GHSA-75xq-5h9v-w6px x_refsource_CONFIRM
- https://github.com/ruby/net-imap/releases/tag/v0.4.24 x_refsource_MISC
- https://github.com/ruby/net-imap/releases/tag/v0.5.14 x_refsource_MISC
- https://github.com/ruby/net-imap/releases/tag/v0.6.4 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-42258 advisory
- https://github.com/advisories/GHSA-75xq-5h9v-w6px advisory
- https://github.com/ruby/net-imap/commit/6bf02aef7e0b5931010c36e377f79a71636b306b patch
- https://github.com/ruby/net-imap/commit/9db3e9d60bfb8f3735ea95015bf8a700f4af9cbb patch
- https://github.com/ruby/net-imap/commit/aec06996eb87a7e1bbcef1f9f8926e8add2b8c71 patch
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/net-imap/CVE-2026-42258.yml advisory
- https://access.redhat.com/errata/RHSA-2026:35447 url
- https://access.redhat.com/errata/RHSA-2026:33721 url
- https://access.redhat.com/security/cve/CVE-2026-42258 vdb
- RHBZ#2468498 issue
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42258.json url
- https://access.redhat.com/errata/RHSA-2026:37397 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:35895 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:33565 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:33540 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:33514 vendor-advisory
…and 16 more