Vulnerability · Published Feb 10, 2026 · Assigned by mongodb
CVE-2026-2302Unsafe Reflection in Mongoid::Criteria.from_hash
Medium 6.5
In plain English
A medium-severity security flaw in MongoDB Ruby Driver from MongoDB Inc. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities).
Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.2%top 85.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
Under specific conditions when processing a maliciously crafted value of type Hash r, Mongoid::Criteria.from_hash may allow for executing arbitrary Ruby code.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu:22.04:LTS | ruby-mongo | no fix listed | UBUNTU-CVE-2026-2302 |
| Ubuntu:24.04:LTS | ruby-mongo | no fix listed | UBUNTU-CVE-2026-2302 |
| Ubuntu:25.10 | ruby-mongo | no fix listed | UBUNTU-CVE-2026-2302 |
| Ubuntu:26.04:LTS | ruby-mongo | no fix listed | UBUNTU-CVE-2026-2302 |
| Ubuntu:26.10 | ruby-mongo | no fix listed | UBUNTU-CVE-2026-2302 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| MongoDB Inc | MongoDB Ruby Driver | 7.0.0 – through 7.6.18.0.0 – through 8.0.128.1.0 – through 8.1.129.0.0 – through 9.0.10 |
Weakness: CWE-183 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N