CVE-2026-2302: MongoDB Ruby Driver · 183
Affects MongoDB Ruby DriverSource CVE Database V5
Not known to be exploited · CVSS 6.9 Medium.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 13% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 10 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| MongoDB IncMongoDB Ruby Driver | Affected
| Fixed in– |
AI-suggested
To mitigate CVE-2026-2302, organizations should first avoid passing untrusted or unsanitized input to the Mongoid::Criteria.from_hash method. Implement strict input validation and sanitization routines to ensure that only expected data structures are processed. Employ the principle of least privilege by limiting the permissions of the application and database users to reduce the impact of potential exploitation. Monitor application logs and behavior for unusual activity that could indicate exploitation attempts. Stay informed about vendor updates and apply patches promptly once available. If patches are not yet released, consider implementing application-level workarounds such as disabling or restricting the use of from_hash in contexts where input cannot be fully trusted. Conduct code reviews and security testing focused on areas interacting with Mongoid criteria construction. Additionally, use runtime application self-protection (RASP) or web application firewalls (WAFs) configured to detect and block suspicious payloads targeting Ruby code injection. Finally, educate developers about secure coding practices related to deserialization and dynamic code execution in Ruby.
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.