Arbitrary Command Injection Affecting ruby3.1 package, versions *


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.41% (33rd 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-DEBIAN12-RUBY31-16750486
  • published18 May 2026
  • disclosed9 May 2026

Introduced: 9 May 2026

CVE-2026-42257  (opens in a new tab)
CWE-77  (opens in a new tab)
CWE-93  (opens in a new tab)

How to fix?

There is no fixed version for Debian:12 ruby3.1.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby3.1 package and not the ruby3.1 package as distributed by Debian. See How to fix? for Debian:12 relevant fixed versions and status.

Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.4.24, 0.5.14, and 0.6.4, several Net::IMAP commands accept a raw string argument that is sent to the server without validation or escaping. If this string is derived from user-controlled input, it may contain contain CRLF sequences, which an attacker can use to inject arbitrary IMAP commands. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.

CVSS Base Scores

version 3.1