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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
- WID-SEC-2026-0386 MongoDB Server, Go Driver, Ruby Driver: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 18, 2026