6.5Medium

CVE-2026-2302Unsafe Reflection in Mongoid::Criteria.from_hash

MongoDB Inc MongoDB Ruby Driver Published: (9 months ago)

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.

Weakness (CWE): CWE-183

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
MongoDB Inc MongoDB Ruby Driver 7.0.0 – ≤ 7.6.1, 8.0.0 – ≤ 8.0.12, 8.1.0 – ≤ 8.1.12, 9.0.0 – ≤ 9.0.10

References and patches