Incorrect authorization in MongoDB driver for C - CVE-2026-135222

 

Incorrect authorization in MongoDB driver for C - CVE-2026-135222

Published: November 26, 2026


Vulnerability identifier: #VU170640
CSH Severity: Low
CVSS v4: 2 [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]
CVE-ID: CVE-2026-135222
CWE-ID: CWE-863
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to obtain privileges not granted by the AWS credentials configured for a connection.

The vulnerability exists due to incorrect authorization in the MongoDB C Driver's AWS credential selection logic when process-wide cached credentials take precedence over credentials supplied for an individual connection. A local user can cause the application to open another connection in the same process to obtain the privileges of a previously cached AWS identity.


Affected software

MongoDB driver for C
Fedora
mongo-c-driver

How to mitigate CVE-2026-135222

Install security update from vendor's website.

MongoDB driver for C - addressed in versions 1.30.17, 2.5.10
mongo-c-driver - addressed in versions 1.30.17-1.el8, 1.30.17-1.el9, 1.30.17-1.fc43, 1.30.17-1.fc44, 2.5.10-1.el10_3, 2.5.10-1.el10_4, 2.5.10-1.fc45

External References

Related Security Bulletins