Intel

AIKIDO-2026-534873

mongodb.mongo-c-driver is vulnerable to Double Free

Double FreeCVE-2026-84964 Published 4 days ago

82

High Risk

This Affects:

C++mongodb.mongo-c-driver
1.17.0 - 1.30.8
Fixed in 1.30.9
2.0.0 - 2.5.1
Fixed in 2.5.2
Are you affected? Scan for Free

TL;DR

libmongoc checks certificate revocation over OpenSSL by building an OCSP request for each responder URL listed in a peer certificate. When a certificate advertises multiple OCSP responder URLs, mongoc-openssl.c frees the same request objects more than once along the request-handling path, producing a double free. A TLS peer presenting such a certificate triggers the crash during the handshake, terminating the client process. The fix makes the OCSP cleanup unconditional and single-shot so each object is released exactly once.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application uses TLS with OCSP revocation checking enabled (OCSP stapling disabled) against a server whose certificate advertises multiple OCSP responder URLs.

Background info

mongodb.mongo-c-driver is vulnerable to Double Free in versions 1.17.0 - 1.30.8 and 2.0.0 - 2.5.1.

How to fix this

Upgrade the mongodb.mongo-c-driver library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform