CVE-2026-2302
Mongoid::Criteria.from_hash method allows arbitrary method calls
Overview
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.
Source: OX vulnerability database
Severity
6.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Weakness: CWE-183
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | mongoid | — | ~> 7.6.1~> 8.0.12~> 8.1.129.0.10 |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- github.com https://github.com/advisories/GHSA-68xj-h57p-gg5j
- github.com https://github.com/mongodb/mongoid/pull/6083
- github.com https://github.com/mongodb/mongoid/pull/6084
- github.com https://github.com/mongodb/mongoid/pull/6085
- github.com https://github.com/mongodb/mongoid/pull/6086
- github.com https://github.com/mongodb/mongoid/pull/6087
- github.com https://github.com/mongodb/mongoid/pull/6099
- github.com https://github.com/mongodb/mongoid/releases/tag/v9.0.10
- jira.mongodb.org https://jira.mongodb.org/browse/MONGOID-5919
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-2302
Show all 13 references
- rubygems.org https://rubygems.org/gems/mongoid/versions/7.6.1 - https://github.com/mongodb/mongoid/releases/tag/v7.6.1 - https://github.com/mongodb/mongoid/pull/6102
- rubygems.org https://rubygems.org/gems/mongoid/versions/8.0.12 - https://github.com/mongodb/mongoid/releases/tag/v8.0.12 - https://github.com/mongodb/mongoid/pull/6101
- rubygems.org https://rubygems.org/gems/mongoid/versions/8.1.12 - https://github.com/mongodb/mongoid/releases/tag/v8.1.12 - https://github.com/mongodb/mongoid/pull/6100
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.