Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit request with crafted input keys
-
DeliveryApp forwards keys to Mongoid array update
-
ExploitReflected key invokes unintended internal method
-
ExecutionStored records removed or app hangs
-
ImpactData loss and denial of service
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V15 - Secure Coding and Architecture Reflection safety, class allowlisting
|
| Exploitation Conditions | Exploitation requires the embedding application to pass unauthenticated, attacker-controlled input keys directly through to Mongoid's document persistence layer for an array field update, where a crafted key is unsafely reflected into an internal method invocation (CWE-470). The CVSS 4.0 AT:P (Attack Requirements: Present) metric reflects this dependency: Mongoid alone is not exploitable unless the surrounding app forwards raw untrusted keys without sanitization. There is no user-interaction and no authentication requirement (UI:N, PR:N) once such an app exists, but the non-default application coding pattern (passing untrusted keys into array-field updates) is the primary limiting factor on real-world exploitability. |
| Impact | This is a genuine integrity/availability concern rather than a confidentiality problem, and the vendor's own tag ('Information Disclosure') contradicts its own CVSS 4.0 vector (VC:N - no confidentiality impact; VI:H/VA:H - high integrity and availability). The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) describes an unauthenticated network attack against an application that must forward attacker-controlled input keys into Mongoid's persistence layer - the AT:P (Attack Requirements: Present) metric captures exactly this dependency, so it is NOT a turnkey remote exploit against Mongoid in isolation; the embedding application must be built to pass raw untrusted keys through to array-field updates. No EPSS score, no CISA KEV listing, and no public POC are present in the provided data, so there is no evidence of active exploitation or automatable weaponization - this places it below KEV-listed or POC-backed issues in real-world urgency despite the 8.3 base score. The signals are consistent with a real but not yet exploited library weakness whose actual exposure varies sharply by how each embedding app handles user input. Key caveat: the only reference is an internal MongoDB Jira ticket (MONGOID-5973) with no public advisory detail, so affected version ranges and the precise fix are not independently confirmable from this input. |
| Exploit ScenarioDerived | An attacker submits a request to a Rails/Ruby web application that forwards user-supplied parameter keys directly into a Mongoid array-field update on an embedded document. Because Mongoid reflects those keys into internal method calls (CWE-470 unsafe reflection), a crafted key invokes an unintended internal method instead of updating the array, causing stored records to be removed or the application to hang. No public exploit code is identified at time of analysis, and success depends on the app passing unauthenticated keys through unsanitized. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 18, 2026
Unsafe reflection (CWE-470) in Mongoid's document persistence layer allows a crafted key to be reflected into an internal method invocation instead of the intended array-field update, which can delete stored records and render the embedding application unresponsive. The affected component is Mongoid, MongoDB's Ruby object-document mapper; the CPE record (cpe:2.3:a:mongodb_inc.:mongoid:*:*:*:*:*:*:*) carries no version bounds, so the vendor has not published a bounded version range, and exposure applies to any embedding application that forwards unauthenticated, attacker-controlled keys directly into an array-field update. The CVSS 4.0 vector marks this dependency as AT:P (Attack Requirements: Present), meaning Mongoid is not exploitable in isolation, but where that non-default coding pattern exists there is no authentication or user-interaction barrier (PR:N, UI:N/A:H). Impact is integrity and availability only (VI:H/VA:H, VC:N), and no public exploit code has been identified at time of analysis.
RemediationAI
No vendor-released patch was identified at time of analysis; the only tracking reference provided is MongoDB JIRA MONGOID-5973 (https://jira.mongodb.org/browse/MONGOID-5973), so the first action is to monitor that issue for an exact fixed release and treat the CPE's wildcard version as covering all installed Mongoid versions until MongoDB publishes a bounded advisory. Because the prerequisite is application-side, the most effective compensating control is to stop untrusted keys from reaching the array-field update path: filter incoming parameter names against a strict allow-list (for Rails, strong parameters with explicit permit lists and rejection of dynamically derived keys) before building any Mongoid update hash, and reject or normalize keys containing characters that resemble method names (leading underscores, 'send', 'public_send', 'method', 'instance_variable', 'system', 'eval'-style tokens). The trade-off is that any code path relying on dynamically generated field names will break and must be refactored to a fixed, validated key set; log rejected keys during rollout to size that impact. As a containment measure, restrict the database user used by the application to read and update only the collections it legitimately needs, withholding deleteCollection/drop and broad delete privileges so a reflected call cannot purge records - the cost is that legitimate bulk-delete maintenance jobs must be moved to a separate, audited credential. Additionally, wrap Mongoid write operations in timeouts and process supervision to limit the availability impact of a hang, and alert on unexpected spikes in delete operations or unresponsive worker processes as a detection signal. Do not rely on these controls as a substitute for the upstream fix once a patched Mongoid release is published.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Mongoid is the Ruby ODM (object-document mapper) used to model and persist MongoDB documents from Ruby and Rails applications, and the flaw sits in the code path that applies updates to embedded array fields. The root cause class is CWE-470, Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection'): key names supplied by the caller reach a reflective dispatch (method-name-driven invocation) rather than being treated as inert document keys, so a key that looks like an internal method name triggers that method instead of performing the array update. The practical consequence of the reflected call is destructive rather than disclosive - record removal plus a hang that makes the calling process unresponsive - which matches the assessed CVSS:3.1 vector AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H and the CVSS 4.0 metrics VC:N/VI:H/VA:H. Note that the vendor-supplied tag 'Information Disclosure' is inconsistent with the vendor's own CVSS 4.0 vector (VC:N) and with the independent assessment; treat the descriptor as a tagging artifact and rely on the integrity/availability impact. The AT:P (Attack Requirements: Present) metric is the key operational caveat: the vulnerability is only reachable through an embedding application that passes untrusted parameter keys through to Mongoid array updates without sanitization, which is a non-default application-side coding pattern rather than a defect exploitable against Mongoid on its own. No EPSS score or KEV listing was provided for this record, and the single reference, MONGOID-5973 in MongoDB's JIRA, is the tracking issue.
Know when Mongoid gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
AC:H reflects the AT:P precondition that the app must forward untrusted keys; PR:N/UI:N per unauthenticated reach; C:N since no data disclosure, I:H/A:H for record removal and hang.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
DescriptionCVE.org
Mongoid contains an unsafe reflection weakness in the document persistence layer of its object-document mapping code. Input whose keys are passed through from an unauthenticated party by an embedding application can cause unintended internal method invocation instead of the intended array field update. This may result in unintended removal of stored records and in the embedding application becoming unresponsive.
Executive ViewAI
Mongoid, MongoDB’s Ruby object-document mapper, has a high-severity unsafe-reflection flaw that can delete stored records and render an embedding application unresponsive, but only where a non-default coding pattern forwards unauthenticated, attacker-controlled keys directly into array-field updates. Leadership should care because affected applications using that pattern could suffer data-integrity loss and availability disruption without authentication, though no public exploit identified at time of analysis and no vendor-released patch identified at time of analysis.
No vendor-released patch identified at time of analysis; interim mitigations include strict allowlisting and validation of keys before array-field updates, rejecting unexpected keys or operators, avoiding unauthenticated user-controlled input in Mongoid persistence calls, restricting or disabling vulnerable endpoints, monitoring for anomalous deletions and availability issues, and maintaining tested backups.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Data disclosure and permanent record deletion in Mongoid can be triggered by an unauthenticated remote attacker when an
Code injection in Mongoid allows unauthenticated attackers who can influence a query argument to execute arbitrary JavaS
CPU exhaustion in MongoDB's Mongoid Ruby ODM allows an unauthenticated remote party to render an embedding application u
Insecure direct object reference in Mongoid's nested-attributes handling lets an authenticated user with basic applicati
Unauthenticated, remote query-operator injection in Mongoid - the official MongoDB object-document mapper for Ruby - all
Silent, warning-free failure of encryption-configuration generation in the Mongoid object-document mapper causes fields
Mongoid can silently persist values in readable form that applications intended to encrypt, because its client-side fiel
Mongoid's automatic client-side encryption can silently store values that an application declared for encryption as clea
EUVD-2026-83190
GHSA-8899-fxx7-fwx3
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB