Vulnerabilities

CVE-2026-2302

Medium 6.9 CVSS 4.0

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.

Description as published by the source, in English.

Key facts

Published
2026-02-10
Last modified
2026-06-17
Assigned by
cna@mongodb.com
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:
Scored by
cna@mongodb.com
Probability of exploitation
0.2 % higher than 10 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
MongoDB Inc MongoDB Ruby Driver ≥ 7.0.0, ≤ 7.6.1 Affected
MongoDB Inc MongoDB Ruby Driver ≥ 8.0.0, ≤ 8.0.12 Affected
MongoDB Inc MongoDB Ruby Driver ≥ 8.1.0, ≤ 8.1.12 Affected
MongoDB Inc MongoDB Ruby Driver ≥ 9.0.0, ≤ 9.0.10 Affected

Weakness type

  • CWE-183: Permissive List of Allowed Inputs

    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 - t…

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities