Skip to main content
CVE-2026-2302VulnerabilityPublished Updated

CVE-2026-2302: MongoDB Ruby Driver · 183

Affects MongoDB Ruby DriverSource CVE Database V5

0

Not known to be exploited · CVSS 6.9 Medium.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 4.0 base score
6.9Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Feb 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
MongoDB IncMongoDB Ruby DriverAffected
  • >=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–

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.

References

Community reviews

Loading reviews…