# CVE-2026-47242: Net::IMAP: Command Injection via ID command argument

- Priority: **Routine**
- Reason: Not severe (CVSS 5.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-22 · Modified: 2026-06-23
- Aliases: RHSA-2026:54391, RHSA-2026:54393, RHSA-2026:54416, UBUNTU-CVE-2026-47242, DEBIAN-CVE-2026-47242, CGA-23cj-v6hh-ff57, CGA-2g9m-gj78-pxp5, CGA-3xpq-hqch-9v6f, CGA-4q62-h9vp-qj27, CGA-59fg-cpx9-3mcq, CGA-642r-q73j-pwg5, CGA-6f72-62q5-p765, CGA-6w96-8jxx-jjg2, CGA-6x5g-ff9p-cm5m, CGA-772m-v5c6-6jm4, CGA-79xh-4f23-8mmq, CGA-98v7-v96x-wc7h, CGA-9f6r-5537-49gq, CGA-fh75-j78v-ggrq, CGA-g8cv-fhp8-mg7q, CGA-gjrm-7fwx-96h6, CGA-gvm6-5pgh-m3f3, CGA-h267-j54m-m98h, CGA-h4q3-qv67-2rc5, CGA-hp73-cqq6-xff4, CGA-hr55-7m6g-573h, CGA-jffq-26h4-pr74, CGA-jfqr-673v-85pq, CGA-qh6g-cfgm-2j49, CGA-rhrp-9r77-8x32, CGA-22wv-whpr-phf9, CGA-288x-xc5x-77r5, CGA-2xr9-5876-x4wf, CGA-34v9-gq5r-67q8, CGA-359r-7fgr-5m7f, CGA-3c7r-4mrw-84wf, CGA-3pgh-f2qx-ch8q, CGA-3vx6-m282-8qxp, CGA-4679-7r6c-44cf, CGA-4f5c-xp39-v66f, CGA-5246-2h64-fqcx, CGA-56gf-w9gp-jg26, CGA-56qv-g6c6-gq7r, CGA-5q98-4pxj-5wwp, CGA-64cj-gq8g-ghr5, CGA-66cr-6m5q-mqfq, CGA-6v3h-338q-79h6, CGA-77xh-q7q4-h7gv, CGA-7hq2-hh8v-2w95, CGA-8468-xpvr-x8qv, CGA-85vh-m463-cpfv, CGA-87fj-mrgh-36rc, CGA-87xc-5v4w-hqjv, CGA-8pvp-jfq8-cq3m, CGA-8q2m-7xqh-fhpq, CGA-8r44-vq6p-mg6q, CGA-943c-v59j-r925, CGA-96xr-7pgf-966q, CGA-983c-pqq9-fr7f, CGA-9f3x-46rq-mqfq, CGA-c4rc-fxcc-h6q9, CGA-c8q9-vgmc-rx76, CGA-cg5v-5m6r-q7xv, CGA-cqx3-xw94-hg6r, CGA-cvvx-fc72-4v64, CGA-f4q4-fmgc-x87h, CGA-f5c4-q7p3-f45w, CGA-f65w-xjw7-pjr2, CGA-fq87-6h28-w88w, CGA-fr2f-hq5v-77mf, CGA-g5w9-vg53-rpj2, CGA-g66f-5hf8-rr5f, CGA-gc59-39f8-7mww, CGA-gq7v-w42f-crq3, CGA-h8gf-qj36-m2qm, CGA-h9mf-xc3j-5pfj, CGA-hg89-7xhj-g2rv, CGA-hpvh-vmfv-fgq3, CGA-hxjg-rfm6-pq5q, CGA-hxvq-c8px-2f2v, CGA-j4p7-c7m5-f5g7, CGA-j5gw-g4v5-3c2r, CGA-j633-5w29-f886, CGA-j8gw-j27m-5f4x, CGA-j968-jcpv-hq24, CGA-j9vv-vwg7-7436, CGA-jgc7-cxg7-v5rg, CGA-jm48-wp5p-fwxm, CGA-jm9v-j5jh-5wr3, CGA-jp89-c56q-hcpx, CGA-m848-jmc3-3rfq, CGA-m98v-3mf4-p578, CGA-m9m6-f3c2-62px, CGA-m9pw-g726-5x7g, CGA-mx3c-6xm7-m7j9, CGA-pcx7-7f94-jmch, CGA-pf25-hhg2-pv9f, GHSA-46q3-7gv7-qmgg, CGA-q65w-gxg2-qf6m, CGA-qc87-8cf4-q28p, CGA-qc8q-39c6-752m, CGA-qffp-q6qh-qc4h, CGA-r5wf-qrwm-98h7, CGA-r8gj-vch9-6jm3, CGA-rc6h-6fhc-xq2p, CGA-v7w6-x3g3-x49x, CGA-vhgr-39qw-5832, CGA-vw5v-g6hh-c2qv, CGA-vx9r-4xrr-4p2w, CGA-w4rq-c282-h3gc, CGA-w76w-f3rm-p5qx, CGA-wv8x-j57j-6xf6, CGA-ww3p-56fm-6w98, CGA-wxqj-2cpm-89p6, CGA-x256-mcvq-g898, CGA-x3cm-5555-4p54, CGA-x743-jq72-6c4w, CGA-xcj5-v545-pmwm, CGA-xpvh-5qjw-hgmj, CGA-xq4f-hhw6-47wv, CGA-xw82-hmg4-c8xp, CGA-xx79-h26p-8jm5, ALPINE-CVE-2026-47242
- Record: https://cvemate.com/vulnerability/CVE-2026-47242 · JSON: https://cvemate.com/vulnerability/CVE-2026-47242/json

## Description

```text
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.
```

## Signals

- CVSS: 5.8 medium (v4.0, CVE.org) 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
- EPSS: 0.131%, percentile 2.906%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 120)

- alpine ruby-net-imap (Alpine Linux): \< 0.4.25-r0 \| \< 0.5.15-r0
- chainguard gitlab-rails-ce-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): \< 18.11.5-r0
- chainguard gitlab-rails-ce-18.4 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): \< 18.9.8-r3
- chainguard gitlab-rails-ce-19.0 (Chainguard): \< 19.0.2-r0
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): \< 18.10.8-r2
- chainguard gitlab-rails-ce-fips-18.11 (Chainguard): \< 18.11.5-r0
- chainguard gitlab-rails-ce-fips-18.4 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.9 (Chainguard): All versions (No fix recorded)

## References

- <https://github.com/ruby/net-imap/security/advisories/GHSA-46q3-7gv7-qmgg>
- <https://access.redhat.com/errata/RHSA-2026:54391>
- <https://access.redhat.com/security/updates/classification/#important>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2491522>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_54391.json>
- <https://access.redhat.com/security/cve/CVE-2026-47242>
- <https://www.cve.org/CVERecord?id=CVE-2026-47242>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-47242>
- <https://access.redhat.com/errata/RHSA-2026:54393>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_54393.json>
- <https://access.redhat.com/errata/RHSA-2026:54416>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_54416.json>
- <https://ubuntu.com/security/CVE-2026-47242>
- <https://security-tracker.debian.org/tracker/CVE-2026-47242>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47242.json>
- <https://github.com/ruby/net-imap>
- <https://github.com/ruby/net-imap/releases/tag/v0.6.4.1>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/net-imap/CVE-2026-47242.yml>
- <https://security.alpinelinux.org/vuln/CVE-2026-47242>

---

Data as of 2026-12-05T05:33:15.723Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
