CVE-2026-135222
Incorrect authorization in AWS credential selection in the C Driver
2.0
Description
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 products and versions
| Product / package | Ecosystem / vendor | Versions | Fixed in | Source |
|---|---|---|---|---|
| c driver | mongodb | 1.18.0 → <1.30.17; 2.0.0 → <2.5.10 | 2.5.10 | CVE.org |