Arbitrary Code Execution Affecting mongoid package, versions <7.6.1>=8.0.0, <8.0.12>=8.1.0, <8.1.12>=9.0.0, <9.0.10


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.2% (10th 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-RUBY-MONGOID-15265427
  • published11 Feb 2026
  • disclosed10 Feb 2026
  • creditUnknown

Introduced: 10 Feb 2026

CVE-2026-2302  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade mongoid to version 7.6.1, 8.0.12, 8.1.12, 9.0.10 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Execution via the Mongoid::Criteria.from_hash() function. An attacker can execute arbitrary Ruby code by supplying a specially crafted Hash value.

CVSS Base Scores

version 4.0
version 3.1