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

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

June 9, 2026

Two Net::IMAP commands, #id and #enable, do not validate their arguments. Arguments to either command could be used by an attacker to inject arbitrary IMAP commands.

Please note that passing untrusted inputs to these commands is usually inappropriate and expected to be uncommon.

References

  • github.com/advisories/GHSA-46q3-7gv7-qmgg
  • github.com/ruby/net-imap/releases/tag/v0.6.4.1
  • github.com/ruby/net-imap/security/advisories/GHSA-46q3-7gv7-qmgg
  • nvd.nist.gov/vuln/detail/CVE-2026-47242

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

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-47242.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 23 Jun 2026 12:22:48 +0000.