CVE-2026-2302

Unsafe Reflection in Mongoid::Criteria.from_hash

State
Published
Severity
6.9 Medium
Published
Feb 10, 2026
Updated
Feb 27, 2026
Reserved
Feb 10, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.06.9 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:Nmongodb
3.16.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:Nmongodb

Weaknesses

  • CWE-183 Permissive List of Allowed Inputs

Affected Products

ProductVersions
MongoDB Ruby DriverMongoDB Inc
  • 7.0.0 through 7.6.1Affected
  • 8.0.0 through 8.0.12Affected
  • 8.1.0 through 8.1.12Affected
  • 9.0.0 through 9.0.10Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.