Arbitrary Command Injection Affecting ruby:2.5/rubygem-mongo-doc package, versions <0:2.5.1-2.module_el8.5.0+2625+ec418553


Severity

Recommended
high

Based on AlmaLinux security rating.

Threat Intelligence

EPSS
0.81% (53rd 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 IDSNYK-ALMALINUX8-RUBY-17816144
  • published4 Jul 2026
  • disclosed30 Jun 2026

Introduced: 30 Jun 2026

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

How to fix?

Upgrade AlmaLinux:8 ruby:2.5/rubygem-mongo-doc to version 0:2.5.1-2.module_el8.5.0+2625+ec418553 or higher.
This issue was patched in ALSA-2026:33514.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby:2.5/rubygem-mongo-doc package and not the ruby:2.5/rubygem-mongo-doc package as distributed by AlmaLinux. See How to fix? for AlmaLinux:8 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, symbol arguments to commands are vulnerable to a CRLF Injection / IMAP Command injection via Symbol arguments passed to IMAP commands. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.

References

CVSS Base Scores

version 3.1