CVE-2026-135222: Incorrect authorization in AWS credential selection in the C Driver
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 Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
The issue affects applications using the MongoDB C Driver's AWS authentication mechanism. The problematic credential cache is process-wide, so the relevant connections must be opened within the same application process.
What must an attacker be able to do to exploit it?
An attacker needs local access with low privileges and must be able to cause the application process to open an additional connection. Exploitation relies on credentials from an earlier connection already being cached in that process.
What is the expected security impact?
The stated impact is limited to integrity; confidentiality and availability impacts are not indicated. A connection can be authenticated as an unintended cached identity, potentially receiving that identity's privileges.