Arbitrary Command Injection Affecting net-imap package, versions <0.5.15>=0.6.0, <0.6.4.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-NETIMAP-17277096
  • published10 Jun 2026
  • disclosed9 Jun 2026
  • creditnicholas a. evans

Introduced: 9 Jun 2026

NewCVE-2026-47242  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade net-imap to version 0.5.15, 0.6.4.1 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Command Injection via the handling of raw data arguments in IMAP commands #id and enable. An attacker can inject arbitrary IMAP commands by supplying specially crafted input containing CRLF sequences as arguments. This may allow execution of unintended commands on the IMAP server.

CVSS Base Scores

version 4.0
version 3.1