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

- Severity: Medium 6.9 (CVSS:4.0, scored by mongodb) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-02)
- Published: 2026-02-10T18:59:23.760Z
- Modified: 2026-06-17T10:30:45.050Z
- Weaknesses: CWE-183
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mongodb

## 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.

(As written by CVE List.)

## Affected

- MongoDB Inc MongoDB Ruby Driver: from 7.0.0 up to 7.6.1; from 8.0.0 up to 8.0.12; from 8.1.0 up to 8.1.12; from 9.0.0 up to 9.0.10

## Every score

- mongodb: CVSS:4.0 6.9 Medium `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`
- mongodb: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://jira.mongodb.org/browse/MONGOID-5919>

## Sources

- CVE List: [CVE-2026-2302](https://www.cve.org/CVERecord?id=CVE-2026-2302), CVE Terms of Use, modified 2026-02-27
- NVD: [CVE-2026-2302](https://nvd.nist.gov/vuln/detail/CVE-2026-2302), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-2302 · Whole record: https://cve.day/CVE-2026-2302.json · Rebuilt by cve.day 2026-11-25T22:59:13.754Z
