# CVE-2026-47240: Net::IMAP: Command Injection via non-synchronizing literal in "raw" 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: UBUNTU-CVE-2026-47240, DEBIAN-CVE-2026-47240, CGA-3wxx-4wpf-c6rp, CGA-6c7f-5mr4-xgrh, CGA-8g39-grwr-cj3m, CGA-8gqp-83vc-x2f4, CGA-954v-j22j-jcw6, CGA-982v-x7x9-q8x6, CGA-9qv9-x5vc-w2c5, CGA-c9vw-66hj-5g34, CGA-cqx4-r8fq-f67w, CGA-f93m-6g9g-2f23, CGA-fjcg-9rh8-4p24, CGA-fv5f-4c8p-885q, CGA-gw89-xv4j-5r5p, CGA-j2vm-6hv9-ghmx, CGA-m26v-8m35-j274, CGA-m472-jc5x-fc33, CGA-mc99-jfgg-84v8, CGA-p36g-6xcm-hx28, CGA-p5jx-h284-59wq, CGA-qjgc-j7qq-fvc2, CGA-v77m-22hr-4h5f, CGA-vwmg-4hgf-wpm6, CGA-x9rx-59wp-xw79, CGA-xfm2-c7g2-539v, CGA-xq6x-w7pj-33j8, CGA-262j-r542-gvc8, CGA-286q-49r8-75x4, CGA-2c95-v269-wwm6, CGA-2qrg-r9j2-88q6, CGA-33f8-27mf-2q43, CGA-33q9-hmpr-qc76, CGA-3747-2685-45w9, CGA-3g9x-wx47-3m65, CGA-3j27-c43r-4jvv, CGA-3mv2-vwpr-3xqx, CGA-48mw-mq43-3cfg, CGA-497p-qg6v-2jqm, CGA-4cm9-qp72-6mq8, CGA-4rg5-c3hx-hw4m, CGA-4w62-mwpc-xc3c, CGA-5632-cv64-r4qc, CGA-5c46-v4rr-5rhq, CGA-5fjm-hm39-r2m3, CGA-5hw4-qq6q-7m4r, CGA-5rg5-wcvc-mfw7, CGA-683m-8wqr-x8r8, CGA-72xr-3vf3-g373, CGA-783w-mfc6-vpvr, CGA-78j9-994f-933x, CGA-7fvq-w732-qrr6, CGA-7hh8-p9rc-vhr4, CGA-83pv-22w8-2fwr, CGA-86cj-g53g-jrh4, CGA-888m-whch-mpvq, CGA-8gf9-qwxg-59cx, CGA-8j65-h9pm-7xv9, CGA-8q2m-9p58-hvpq, CGA-95jr-f6v2-3xwh, CGA-9pgm-c8p9-m433, CGA-9r85-hcxg-75rw, CGA-9wp8-5q93-2jg3, CGA-cfvr-jqfv-9x3w, CGA-cg2v-955q-9xw5, CGA-cgrv-r4w6-2q3f, CGA-f73r-rfrv-894v, CGA-fcqr-475g-8wg7, CGA-fg9p-g5j7-v6c7, CGA-fpqx-h2vr-f7hv, CGA-fq8r-q54w-rhc7, CGA-gh2w-xc3w-2cmm, CGA-gjv4-xgr2-wp22, CGA-gv73-hcvm-272f, CGA-gw45-c5g7-xg7p, CGA-h3mx-prx7-ph9c, CGA-h53p-4vwf-qh6m, CGA-h68c-974x-57q2, CGA-hmvx-cwhj-gmq5, CGA-hv84-rjqf-wv2h, CGA-hvjw-82w4-vhgr, CGA-hvwq-5rq3-23q6, CGA-hxq8-mm7v-74q2, CGA-j2fr-j738-pq92, CGA-jgj2-xvv5-q5r5, CGA-jm3p-pwqj-99rg, CGA-m8qh-fmg4-3m5h, CGA-mhrp-8mx6-cpxv, CGA-mp6m-3gw7-3g6j, CGA-mq5v-q9q9-v897, CGA-p2j8-ffx2-v28f, CGA-p35v-cr9p-5vch, CGA-p9jw-qfv5-f6mf, CGA-pv9r-h9h9-7mp8, GHSA-8p34-64r3-mwg8, CGA-pwgm-rg53-wpjc, CGA-pwqx-hhgr-7rmv, CGA-q4g3-mj2r-4982, CGA-q9cp-x3cg-pr95, CGA-qp5c-98p9-6h8f, CGA-qwrf-p34j-22xv, CGA-rmcp-qvxh-pmc4, CGA-rxj5-xgvf-gh88, CGA-vc3m-52rh-hg46, CGA-vgcv-grch-wq5f, CGA-vgrq-wr96-f763, CGA-vj9r-3v2x-5fvh, CGA-vp83-2f9h-cm24, CGA-vqmh-4pv5-r849, CGA-wg5m-fm3h-ggv2, CGA-wm8m-wwm8-rrm6, CGA-wp2f-jj5w-xwmf, CGA-x288-cgg3-5xwr, CGA-x4mj-38cq-fh39, CGA-x8xc-v732-33xh, CGA-xcrp-93xh-3mjc, CGA-xghm-cxph-cfxr, CGA-xpr8-2hr2-wqc8, CGA-xq55-hxm3-7r94, ALPINE-CVE-2026-47240
- Record: https://cvemate.com/vulnerability/CVE-2026-47240 · JSON: https://cvemate.com/vulnerability/CVE-2026-47240/json

## Description

```text
Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, several Net::IMAP commands accept a "raw data" argument that is sent verbatim after validation to prevent command injection. However, if a server does not support non-synchronizing literals, it may still be possible to inject arbitrary IMAP commands inside non-synchronizing literals.  A server without support for non-synchronizing literals may interpret the "+}\r\n" as the end of a malformed command line and respond with a tagged BAD. In that case, the contents of the literal will be interpreted as one or more new pipelined commands, allowing a CRLF command injection attack to succeed. This affects criteria for #search and #uid_search; search_keys for #sort, #thread, #uid_sort, and #uid_thread; and attr for #fetch and #uid_fetch. 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.491%, percentile 43.792%, 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 78)

- 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-8p34-64r3-mwg8>
- <https://ubuntu.com/security/CVE-2026-47240>
- <https://www.cve.org/CVERecord?id=CVE-2026-47240>
- <https://security-tracker.debian.org/tracker/CVE-2026-47240>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47240.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-47240>
- <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-47240.yml>
- <https://security.alpinelinux.org/vuln/CVE-2026-47240>

---

Data as of 2026-12-05T04:22:54.681Z. 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
