Improper restriction of read-only attributes with dotted keys in Mongoid

State
Published
Severity
6.0 Medium
Published
Nov 25, 2026
Updated
Nov 25, 2026
Reserved
Nov 23, 2026

Read the record on cve.org

Description

Mongoid does not consistently apply its read-only attribute protection when attribute names are supplied dynamically by the caller. In an application that forwards caller-supplied attribute names into a document update, a user with basic application privileges may change values held inside a field the model declared immutable. This may result in unintended modification of data the application treats as trusted, such as flags used for its own access decisions.

ProductVersions
Ruby Driver MongoDB3.0.0 to before 9.1.3 Affected

Weaknesses

  • CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.