# CVE-2026-2302: Unsafe Reflection in Mongoid::Criteria.from\_hash

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-02-10 · Modified: 2026-02-27
- Aliases: UBUNTU-CVE-2026-2302
- Record: https://cvemate.com/vulnerability/CVE-2026-2302 · JSON: https://cvemate.com/vulnerability/CVE-2026-2302/json

## Description

```text
Under specific conditions when processing a maliciously crafted value of type Hash r, Mongoid::Criteria.from_hash may allow for executing arbitrary Ruby code.
```

## Signals

- CVSS: 6.9 medium (v4.0, CVE.org) 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
- EPSS: 0.232%, percentile 15.094%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ubuntu ruby-mongo (Ubuntu): All versions (No fix recorded)
- 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

- <https://jira.mongodb.org/browse/MONGOID-5919>
- <https://ubuntu.com/security/CVE-2026-2302>
- <https://www.cve.org/CVERecord?id=CVE-2026-2302>

---

Data as of 2026-12-05T05:17:53.279Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
