Read the docs

Improper restriction of object attributes in Mongoid belongs_to assignment

Priority MEDIUM 43CWE-915Published · Updated

Key facts

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

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

Summary

Mongoid's belongs_to association handling does not restrict dynamically determined object attributes (CWE-915), so structured input supplied in place of a simple identifier becomes an object treated as an already-stored record of a caller-chosen model class. In applications that pass unfiltered request data into this handling, an unauthenticated attacker can modify or remove stored records and make an individual record unreadable through that association. The issue affects MongoDB Ruby Driver from 9.1.0 before 9.1.3, carries a CVSS 4.0 base score of 8.3 (HIGH), and CISA has not added it to KEV.

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

Description from the CNA

An improper restriction of dynamically determined object attributes in the object-document mapping library's association handling allows structured input supplied in place of a simple identifier value to be turned into an object that is treated as an already-stored record of a caller-chosen model class. In applications that pass unfiltered request data into the affected association handling, an unauthenticated party may cause unintended modification or removal of stored records, and may render an individual record unreadable through that association.

Why it matters now

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

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
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 Driver9.1.0 to before 9.1.39.1.3Patch availableCNA
  • Ruby Driver VendorMongoDB Affected 9.1.0 to before 9.1.3 Fixed in 9.1.3 Patch available CNA

Remediation

Update MongoDB Ruby Driver to 9.1.3, the fixed release. Versions from 9.1.0 before 9.1.3 remain affected until updated.

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-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
    • TI-2026-98376 Incorrect authorization in Mongoid has_many delete_all removes extra recordsPriority LOW 27

Timeline

  1. 2026-11-25 Threatist record created from CVE-2026-135227
  2. 2026-11-25 Alias added: GHSA-9h3x-67qv-f384
  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