Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-2302 EUVD-2026-6762GHSA-68xj-h57p-gg5j

Unsafe Reflection in Mongoid::Criteria.from_hash

Published Feb 10, 2026 · Updated Feb 27, 2026 · 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.

Affected products

VendorProductAffectedFixed
MongoDB 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 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 ruby-mongo No fix yet —
Ubuntu 26.04 LTS ruby-mongo No fix yet —
Ubuntu 25.10 ruby-mongo No fix yet —
Ubuntu 24.04 LTS ruby-mongo No fix yet —
Ubuntu 22.04 LTS ruby-mongo No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS ruby-mongo No fix yet —
Ubuntu 18.04 LTS ruby-mongo No fix yet —
Ubuntu 16.04 LTS ruby-mongo No fix yet —

Advisories 1

References