CVE-2026-2302 Unsafe Reflection in Mongoid::Criteria.from_hash
MediumCVSS 6.9
EPSS 0.23%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
5 packages: 1 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/ruby-mongo(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/ruby-mongo(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/ruby-mongo(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/ruby-mongo(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| 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 | after 7.6.1, 8.0.12, 8.1.12, 9.0.10 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| MongoDB Ruby Driver | >= 7.0.0, <= 7.6.1 | No fix listed |
| MongoDB Ruby Driver | >= 8.0.0, <= 8.0.12 | No fix listed |
| MongoDB Ruby Driver | >= 8.1.0, <= 8.1.12 | No fix listed |
| MongoDB Ruby Driver | >= 9.0.0, <= 9.0.10 | No fix listed |
| ubuntu/ruby-mongo(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/ruby-mongo(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/ruby-mongo(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/ruby-mongo(Ubuntu:26.10) | All versions | No fix listed |
References
- jira.mongodb.org
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- Debian Security Tracker CVE-2026-2302 vendor-advisory