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


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.19% (42nd 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-17277006
  • published10 Jun 2026
  • disclosed9 Jun 2026
  • creditnicholas a. evans

Introduced: 9 Jun 2026

NewCVE-2026-47240  (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 (such as criteria, search_keys and attr). An attacker can execute arbitrary IMAP commands by injecting CRLF sequences into user-controlled input, which are then interpreted as new commands by servers that do not properly support non-synchronizing literals.

CVSS Base Scores

version 4.0
version 3.1