CVE-2026-47240: Net::IMAP: Command Injection via non-synchronizing literal in "raw" argument
(updated )
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 →