MongoDBCVE-2026-135222
MongoDB C Driver: improper authorization
Fix: upgrade to 1.30.17 or later (2 fixed versions below)
MongoDB C Driver contains an incorrect authorization weakness in the credential-selection logic used by its AWS authentication mechanism. A process-wide credential cache can take precedence over the credentials supplied for an individual connection, so a connection configured with one set of credentials may instead be authenticated under an identity cached earlier in the same process. A party able to cause the application process to open an additional connection may thereby obtain unintended privileges.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| C Driver Product | >= 1.18.0, < 1.30.17 | 1.30.17 |
| >= 2.0.0, < 2.5.10 | 2.5.10 |
Details and references
- CVSS 4.0
- CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- Severity from
- the vendor (its own CVE record or advisory)
- Weakness
- CWE-863
More MongoDB advisories
All MongoDBCVE-2026-135227Nov 25MongoDB Ruby Driver: mass assignmentAn 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...High8.3Fixed in 9.1.3CVE-2026-135898Nov 25MongoDB Python Driver: out-of-bounds readAn out-of-bounds read in the native C BSON decoding extension of the MongoDB Python Driver may allow an unauthenticated party who can supply crafted BSON data to the decoder to cause the application...High8.8Fixed in 4.20.2CVE-2026-135138Nov 25MongoDB Ruby Driver: mass assignmentMongoid does not consistently apply its read-only attribute protection when attribute names are supplied dynamically by the caller.Medium6.0Fixed in 9.1.3CVE-2026-135139Nov 25MongoDB Ruby Driver: improper authorizationMongoid contains an incorrect authorization weakness in the handling of caller-supplied filters for bulk removal through a referenced association.Medium6.0Fixed in 9.1.3CVE-2026-135140Nov 25MongoDB Ruby Driver: cleartext storageMongoid may omit a field from the client-side encryption settings it generates for a collection when that same field is also used as a reference to another record.Medium5.3Fixed in 9.1.3CVE-2026-135141Nov 25MongoDB Ruby Driver: improper authorizationA logic flaw in the query-building layer of the Mongoid object-document mapper causes a model-level default restriction that is meant to return no records to be silently discarded when it is combined...High8.6Fixed in 9.1.3