Read the docs

Mongoid read-only attributes bypassed via dotted keys in Ruby Driver

Priority LOW 27CWE-915Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
Tampering
Confidentiality · integrity · availability
None · High · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-915.

Summary

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 can change values inside a field the model declared immutable, which may lead to unintended modification of data the application trusts, such as flags used for access decisions. MongoDB's Ruby Driver versions from 3.0.0 before 9.1.3 are affected.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00483 34th percentileScored 2026-11-30
Fix Fixed Ruby Driver (MongoDB): 9.1.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
MongoDBRuby Driver3.0.0 to before 9.1.39.1.3Patch availableCNA
  • Ruby Driver VendorMongoDB Affected 3.0.0 to before 9.1.3 Fixed in 9.1.3 Patch available CNA

Remediation

Upgrade MongoDB's Ruby Driver to version 9.1.3 or later.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

  • Fix · CNA Ruby Driver (MongoDB) Fixed in 9.1.3

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    MongoDB Ruby Driver 9.1.3

    6 records Highest priority Priority MEDIUM 1 MEDIUM, 5 LOW

    Other records, highest priority first

    • TI-2026-98380 Improper restriction of object attributes in Mongoid belongs_to assignmentPriority MEDIUM 43
    • TI-2026-98378 Incorrect authorization from a discarded default scope in MongoidPriority LOW 38
    • TI-2026-98374 Cleartext storage of encrypted embedded fields in MongoidPriority LOW 31

Timeline

  1. 2026-11-25 Threatist record created from CVE-2026-135138
  2. 2026-11-25 Alias added: GHSA-wrx7-gv98-4q54
  3. 2026-11-25 CISA SSVC decision points changed

References

  • TI-2019-08023 Remote code execution in mongo-express via toBSON endpoints KEVCVSS 3.1CRITICAL 9.9
  • TI-2025-13542 Zlib header length mismatch in MongoDB Server allows memory read KEVCVSS 4.0HIGH 8.7
  • TI-2026-89295 MongoDB Server Missing Authorization Check in Replication Administrative Command CVSS 4.0HIGH 8.6
  • TI-2026-89289 Incorrect authorization in MongoDB Server allows admin access CVSS 4.0HIGH 8.6
  • TI-2026-79432 BSON output corruption via out-of-range binary subtype in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
  • TI-2026-79424 NoSQL command injection via mismatched BSON length in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
See all 449 →

Sources