Description

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.

Severity (CVSS)

Base score8.3
SeverityHigh
VersionCVSS 4.0
VectorCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Provided byCNA

Weaknesses

  • CWE-470 — CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')

Affected products

VendorProductVersions
MongoDB Inc.Mongoid9.1.0; 9.0.0 to <=9.0.11; 8.1.0 to <=8.1.12; 8.0.0 to <=8.0.12

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Generated from the official CVE List on 19 Sep 2026 07:08 UTC.