# CVE-2026-42258: net-imap: Command Injection via unvalidated Symbol inputs

- Severity: Medium 5.8 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-01)
- Published: 2026-05-04T22:04:08.000Z
- Modified: 2026-09-10T03:50:46.299Z
- Also known as: GHSA-75xq-5h9v-w6px
- Weaknesses: CWE-77, CWE-93
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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, 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.

(As written by CVE List.)

## Affected

- ruby net-imap: < 0.4.24; >= 0.5.0, < 0.5.14; >= 0.6.0, < 0.6.4
- ruby4.0: no versions given (not affected: from 0:4.0.3-35.el10_2 before *)
- ruby: no versions given (not affected: from 0:3.3.10-13.el10_2 before *; from 0:3.3.10-11.el10_0.2 before *; from 0:2.0.0.648-39.el7_9.1 before *; from 0:3.0.7-167.el9_8 before *; from 0:3.0.4-161.el9_2.3 before *; from 0:3.0.7-162.el9_4.3 before *; from 0:3.0.7-165.el9_6.1 before *)
- ruby:2.5: no versions given (not affected: from 8100020260615131019.489197e6 before *; from 8040020260630124058.522a0ee4 before *; from 8060020260630123825.ad008a3a before *; from 8080020260625114827.63b34585 before *)
- ruby:3.3: no versions given (not affected: from 8100020260615131010.489197e6 before *; from 9080020260615131001.9 before *; from 9040020260630065449.9 before *; from 9060020260630075016.9 before *)
- ruby:4.0: no versions given (not affected: from 9080020260619130154.9 before *)
- ruby4-0-main: no versions given (not affected: from 4.0.5-35.hum1 before *)
- ruby3-4-main: no versions given (not affected: from 3.4.10-31.hum1 before *)
- ruby3-3-main: no versions given (not affected: from 3.3.10-23.4.hum1 before *)
- 3scale-amp21/system: no versions given
- 3scale-amp21/zync: no versions given
- 3scale-amp22/system: no versions given
- 3scale-amp22/zync: no versions given
- 3scale-amp2/system-rhel7: no versions given
- 3scale-amp2/system-rhel8: no versions given
- 3scale-amp2/system-rhel9: no versions given
- 3scale-amp2/zync-rhel8: no versions given
- 3scale-amp2/zync-rhel9: no versions given
- rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9: no versions given
- openshift/ose-rhel-coreos-9: no versions given
- devspaces/code-rhel9: no versions given
- net-imap (RubyGems): from 0.6.0 before 0.6.4; from 0.5.0 before 0.5.14; before 0.4.24
- ruby-lang net::imap: before 0.4.24; from 0.5.0 before 0.5.14; from 0.6.0 before 0.6.4

## Every score

- GitHub_M: CVSS:4.0 5.8 Medium `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N`
- redhat-SADP: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L`

## References

- <https://github.com/ruby/net-imap/security/advisories/GHSA-75xq-5h9v-w6px> (mitigation, vendor-advisory, web)
- <https://github.com/ruby/net-imap/releases/tag/v0.4.24> (release-notes, web)
- <https://github.com/ruby/net-imap/releases/tag/v0.5.14> (release-notes, web)
- <https://github.com/ruby/net-imap/releases/tag/v0.6.4> (release-notes, web)
- <https://access.redhat.com/security/cve/CVE-2026-42258> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2468498> (issue-tracking, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42258.json> (web)
- <https://access.redhat.com/errata/RHSA-2026:37397> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:35895> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:33565> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:33540> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:33514> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:33515> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:35866> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:35867> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34076> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:35834> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:33630> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:36099> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:33462> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:37238> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:33512> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:33576> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:33577> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:40380> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:38694> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:36978> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42258> (advisory)
- <https://github.com/ruby/net-imap/commit/aec06996eb87a7e1bbcef1f9f8926e8add2b8c71> (web)
- <https://github.com/ruby/net-imap/commit/9db3e9d60bfb8f3735ea95015bf8a700f4af9cbb> (web)
- <https://github.com/ruby/net-imap/commit/6bf02aef7e0b5931010c36e377f79a71636b306b> (web)
- <https://github.com/ruby/net-imap> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/net-imap/CVE-2026-42258.yml> (web)
- <https://access.redhat.com/errata/RHSA-2026:33721> (web)
- <https://access.redhat.com/errata/RHSA-2026:35447> (web)

## Sources

- CVE List: [CVE-2026-42258](https://www.cve.org/CVERecord?id=CVE-2026-42258), CVE Terms of Use, modified 2026-09-01
- GitHub Advisory Database: [GHSA-75xq-5h9v-w6px](https://github.com/advisories/GHSA-75xq-5h9v-w6px), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-42258](https://nvd.nist.gov/vuln/detail/CVE-2026-42258), Public domain, modified 2026-08-24

---

Page: https://cve.day/CVE-2026-42258 · Whole record: https://cve.day/CVE-2026-42258.json · Rebuilt by cve.day 2026-11-25T22:59:21.150Z
