CVE-2026-2302
CVE-2026-2302 · Unsafe Reflection in Mongoid::Criteria.from_hash
CVSS 6.9 · Medium · EPSS 0.4%
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- mongodb ruby driverNo fix published
- ruby-mongo Ubuntu 16.04 LTSNo fix published
- ruby-mongo Ubuntu 18.04 LTSNo fix published
- ruby-mongo Ubuntu 20.04 LTSNo fix published
- and 5 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ruby-mongo"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
Under specific conditions when processing a maliciously crafted value of type Hash r, Mongoid::Criteria.from_hash may allow for executing arbitrary Ruby code.
- Published
- Updated
Stack: system
Affected products and versions
mongodb ruby driver
- Versions
- ≥ 7.0.0, ≤ 7.6.1: Affected (semver)
- ≥ 8.0.0, ≤ 8.0.12: Affected (semver)
- ≥ 8.1.0, ≤ 8.1.12: Affected (semver)
- ≥ 9.0.0, ≤ 9.0.10: Affected (semver)
No fix published
ruby-mongo Ubuntu 16.04 LTS
- Versions
- 1.10.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-mongo Ubuntu 18.04 LTS
- Versions
- 2.4.1-1
- 2.4.1-1ubuntu1
- 2.5.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-mongo Ubuntu 20.04 LTS
- Versions
- 2.5.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-mongo Ubuntu 22.04 LTS
- Versions
- 2.5.1-1ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-mongo Ubuntu 24.04 LTS
- Versions
- 2.5.1-1ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-mongo Ubuntu 25.10
- Versions
- 2.5.1-1.2ubuntu1
- 2.5.1-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-mongo Ubuntu 26.10
- Versions
- 2.23.0-1
- 2.24.0-1
- 2.24.1-1
- 2.25.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-mongo Ubuntu 26.04 LTS
- Versions
- 2.5.1-2
- 2.23.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published