Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. net-imap
  4. ›
  5. CVE-2026-47240

CVE-2026-47240: Net::IMAP: Command Injection via non-synchronizing literal in "raw" argument

June 9, 2026 (updated July 6, 2026)

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.

References

  • github.com/advisories/GHSA-8p34-64r3-mwg8
  • github.com/ruby/net-imap/releases/tag/v0.6.4.1
  • github.com/ruby/net-imap/security/advisories/GHSA-8p34-64r3-mwg8
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/net-imap/CVE-2026-47240.yml
  • nvd.nist.gov/vuln/detail/CVE-2026-47240
  • www.cve.org/CVERecord?id=CVE-2026-47240

Code Behaviors & Features

Detect and mitigate CVE-2026-47240 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.5.15, all versions starting from 0.6.0 before 0.6.4.1

Fixed versions

  • 0.5.15
  • 0.6.4.1

Solution

Upgrade to versions 0.5.15, 0.6.4.1 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
  • CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')

Source file

gem/net-imap/CVE-2026-47240.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:26 +0000.