Mongoid::Criteria.from_hash allows ARB Ruby code exec via crafted Hash
CVE-2026-2302 Published on February 10, 2026
Unsafe Reflection in Mongoid::Criteria.from_hash
Under specific conditions when processing a maliciously crafted value of type Hash r, Mongoid::Criteria.from_hash may allow for executing arbitrary Ruby code.
Vulnerability Analysis
CVE-2026-2302 is exploitable with network access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality, a high impact on integrity, and no impact on availability.
Weakness Type
What is an Allowlist / Allow List Vulnerability?
The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are explicitly allowed by policy because the inputs are assumed to be safe, but the list is too permissive - that is, it allows an input that is unsafe, leading to resultant weaknesses.
CVE-2026-2302 has been classified to as an Allowlist / Allow List vulnerability or weakness.
Products Associated with CVE-2026-2302
Want to know whenever a new CVE is published for MongoDB? stack.watch will email you.
Affected Versions
MongoDB Inc MongoDB Ruby Driver:- Version 7.0.0, <= 7.6.1 is affected.
- Version 8.0.0, <= 8.0.12 is affected.
- Version 8.1.0, <= 8.1.12 is affected.
- Version 9.0.0, <= 9.0.10 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.