The short version
- Affected: libmongoc 1.18.0 to 1.30.16 and 2.0.0 to 2.5.9, connecting over TLS with OpenSSL (CVE record, fix commit). Anything that bundles libmongoc is affected too, above all the PHP
mongodbextension below 2.5.9, 2.1.15 and 1.21.15. - Fixed in: C Driver 1.30.17 and 2.5.10, released 25 November 2026 (1.30.17, 2.5.10); PHP extension 2.5.9, 2.1.15 and 1.21.15 (2.5.9, 2.1.15, 1.21.15).
- Severity: CVSS 4.0 9.3 Critical and CVSS 3.1 9.1 Critical, both from MongoDB as the CVE Numbering Authority. NVD lists the record as Awaiting Analysis. CISA's SSVC note on the record says exploitation none, automatable yes, technical impact total.
- Exploited: not known. No source reports attacks and the CVE is not in the CISA KEV catalogue.
- Do now: find every process that loads libmongoc, including PHP, and upgrade to 1.30.17 or 2.5.10. No Linux distribution had a fixed package on 26 November 2026, so today the fix comes from the vendor, Homebrew or PECL.
1. What CVE-2026-135224 is
libmongoc is the C library behind MongoDB's C, C++ and PHP drivers. When it opens a TLS connection it verifies the server certificate, checks the hostname, and checks revocation through OCSP, the Online Certificate Status Protocol. The server can staple an OCSP response to the handshake, or the driver fetches one from the responder URL in the certificate (C Driver TLS docs).
A valid OCSP response must be signed by the certificate's issuing CA or by a responder that CA has delegated. Until this fix, libmongoc's OpenSSL code verified the response with the OCSP_TRUSTOTHER flag, which tells OpenSSL to trust any signer certificate found in the chain the server itself supplied, without checking that the signer was authorised (fix commit, OpenSSL docs). The server operator controls that chain. An attacker who holds a revoked certificate for your database hostname, and can place a server where your client connects, adds a certificate of their own to the chain and a "good" response signed by it. The driver accepts the revoked certificate.
MongoDB says this "may result in unintended disclosure of the application's database traffic and in the loss of the revocation decision" (CVE record). The fix is 11 changed lines in mongoc-openssl.c: the flag is dropped and the signer must be the issuing CA or a delegated responder with the OCSP signing key usage, per RFC 6960. The commit landed on 24 November 2026 and shipped in both branches on 25 November. The ticket CDRIVER-6500, opened 9 October 2026, points to a private security ticket, so no further write-up exists. The same releases also fix CVE-2026-135222 and CVE-2026-135134, per the release notes.
2. Impact: who is exposed and how badly
This is a man-in-the-middle bug, not remote code execution. The attacker needs a revoked but otherwise valid certificate for your MongoDB hostname, which means a key that leaked and was reported, plus a network position where your client's connection lands on their server. Given both, they read and alter database traffic. Revocation is the defence that is supposed to work after a key leaks, and this bug removes it, which is why MongoDB rates confidentiality and integrity High and availability None.
Only TLS connections are affected, and only when the driver performs an OCSP check. MongoDB's docs say OCSP checking happens only when the server certificate carries an OCSP URL, and that OCSP is "fully supported" on OpenSSL but only partially on Windows Secure Channel and macOS Secure Transport (TLS docs). The fix touches only the OpenSSL code path; the advisory does not say whether native Windows or macOS builds are affected. Linux server builds use OpenSSL.
| What you run | Affected | Fixed version |
|---|---|---|
| libmongoc 2.x | 2.0.0 to 2.5.9 | 2.5.10, 25 Nov 2026 (release) |
| libmongoc 1.x | 1.18.0 to 1.30.16 | 1.30.17, 25 Nov 2026 (release) |
PHP extension mongodb 2.5.x | below 2.5.9 | 2.5.9, bundles libmongoc 2.5.10 (release) |
PHP extension mongodb 2.1.x and 1.21.x | below 2.1.15 and 1.21.15 | 2.1.15 and 1.21.15, bundle libmongoc 1.30.17 (2.1.15, 1.21.15) |
| C++ driver mongocxx | uses the system libmongoc | upgrade libmongoc; r4.6.2 needs 2.5.8 or later (release) |
Debian sid libmongoc2-2, trixie libmongoc-1.0-0t64, bookworm libmongoc-1.0-0 | 2.5.9-1, 1.30.4-1+deb13u5, 1.23.1-1+deb12u3 | none yet (tracker) |
| Ubuntu 26.10, 26.04, 25.10, 24.04, 22.04 | 2.5.0-1, 2.2.2-1, 1.30.4-1ubuntu1, 1.26.0-1.1ubuntu2, 1.21.0-1build1 | none yet (Launchpad) |
Alpine edge and 3.24, and 3.21 to 3.23 mongo-c-driver | 1.30.14-r0 and 1.27.1-r0 | none yet (Alpine packages) |
| Fedora 43, 44, 45 and EPEL 8, 9, 10 | earlier builds | 1.30.17-1 and 2.5.10-1 submitted 26 Nov 2026, pending (Bodhi) |
Homebrew mongo-c-driver, mongo-c-driver@1 | earlier builds | 2.5.10 and 1.30.17 (formula, formula @1) |
Debian 11 (1.17.6-1) and Ubuntu 20.04 (1.16.1-1build2) ship versions below 1.18.0, outside the affected range in the CVE record. Red Hat's CVE database and Amazon Linux's ALAS feed had no entry on 26 November 2026, and Ubuntu's CVE page was returning a 504 error.
Not affected: applications on MongoDB's Node.js, Python, Java, Go, Rust, C# or Ruby drivers, which do not use libmongoc. The MongoDB server, Atlas and mongosh are not affected. Clients without TLS have no certificate check to bypass, and clients that already set tlsDisableCertificateRevocationCheck=true had no revocation decision to lose.
3. How to check if you are affected
- Find libmongoc on a host. Debian and Ubuntu name the runtime package
libmongoc-1.0-0orlibmongoc-1.0-0t64for 1.x andlibmongoc2-2for 2.x (Debian sid, trixie). No distribution package has been rebuilt yet, so any hit below 1.30.17 or 2.5.10 means affected. The pkg-config module islibmongoc-1.0for 1.x andmongoc2for 2.x (CMake build file, PHP config.m4).
dpkg -l 'libmongoc*' 2>/dev/null | grep '^ii'
rpm -qa 'mongo-c-driver*'
apk list --installed 2>/dev/null | grep mongo-c-driver
brew list --versions mongo-c-driver mongo-c-driver@1 2>/dev/null
pkg-config --modversion libmongoc-1.0 2>/dev/null; pkg-config --modversion mongoc2 2>/dev/null
- PHP. PECL and PIE builds of the
mongodbextension compile libmongoc in.php --ri mongodbprints the same information asphpinfo(), including a row namedlibmongoc bundled version(php.net CLI options, extension source). You want extension 2.5.9, 2.1.15 or 1.21.15 and libmongoc 2.5.10 or 1.30.17. An extension built with--with-mongodb-system-libs=yesuses the system library instead, so step 1 applies (PHP install docs).
php --ri mongodb | grep -i -E 'extension version|libmongoc'
- Container images. Run the same commands inside the image you deploy, and read the Dockerfile for the line that installs the extension or library. The official
phpimages do not include the extension, so that line is yours.
docker run --rm <your-image> php --ri mongodb | grep -i libmongoc
grep -n -E 'pecl install mongodb|pie install mongodb|libmongoc|mongo-c-driver' Dockerfile
- Composer projects.
composer.lockrecords onlyext-mongodbas a platform requirement, not a version, so step 2 or 3 is the real check. If you install through PIE, the package ismongodb/mongodb-extensionand 2.5.9 is on Packagist (Packagist).
- C and C++ applications.
mongoc_get_version()returns the version as a string and the header definesMONGOC_VERSION_S(mongoc_get_version, version header). For a dynamically linked binary, step 1 applies.
- Kubernetes and AWS ECS. List the images every workload runs, then apply step 3 to each distinct image. A PHP Lambda runs on a custom runtime or layer; inspect that layer's build the same way.
kubectl get pods -A -o jsonpath='{range .items[*]}{.spec.containers[*].image}{"\n"}{end}' | sort -u
aws ecs describe-task-definition --task-definition <family> --query 'taskDefinition.containerDefinitions[*].image'
- Does the connection check OCSP at all? With
tls=trueand defaults, revocation checking is on;tlsDisableCertificateRevocationCheck=trueturns it off (URI options). Upgrade either way.
4. How to fix it
- PHP, from PECL or PIE. Upgrade the extension to 2.5.9, or to 2.1.15 or 1.21.15 if you are held on an older branch (PECL). These commands change the system.
sudo pecl upgrade mongodb
pie install mongodb/mongodb-extension:2.5.9
php --ri mongodb | grep -i libmongoc
- PHP in a container. Pin the fixed version on the Dockerfile's install line, for example
pie install mongodb/mongodb-extension:2.5.9as in the release notes, rebuild and redeploy. Confirm with check step 3.
- libmongoc from source. Build 2.5.10 or 1.30.17 from the release tarballs (2.5.10, 1.30.17), then relink or restart every program that loads it. mongocxx users upgrade the C driver underneath; the C++ driver itself needs no change.
- Homebrew.
brew upgrade mongo-c-driverorbrew upgrade mongo-c-driver@1installs 2.5.10 or 1.30.17 (formula). This changes the system.
- Debian, Ubuntu, Alpine. No fixed package existed on 26 November 2026. Watch the Debian tracker, Launchpad and Alpine packages. Until then, PECL or a source build is the route. Fedora and EPEL updates were pending in Bodhi; once stable,
sudo dnf upgrade mongo-c-driverapplies them.
- Restart. PHP-FPM, Apache, long-running workers and any C or C++ service must restart or redeploy before the fix is live. Repeat the check against the running process.
5. If you cannot patch today
MongoDB documents no workaround; the release notes and the CVE record give only the upgrade. Generic exposure cuts that follow from the bug's shape:
- The attacker must sit between client and database. Keep MongoDB on a private network reachable only from application hosts, and resolve its hostname from DNS you control. This narrows who can stage the attack but does not fix the check.
- Do not set
tlsDisableCertificateRevocationCheck=trueortlsAllowInvalidCertificates=trueas a response. Both remove more protection than the bug does.
6. How to tell if you were already hit
Nothing is published. The CVE record, the release notes and the trackers we read give no indicators of compromise and no attack reports (OffSeq radar). A successful attack leaves no trace in the client; the connection looks like a normal TLS session. Evidence would be on the network side: DNS answers for the database hostname pointing somewhere unexpected, or application connections the database server never received. If you believe traffic was intercepted, assume the attacker read what the application sent, including database credentials, and rotate them.
7. How autonomous DevOps handles a bug like this
Check steps 3 and 6 above are inventory questions: which image each ECS task definition runs, and what each Dockerfile installs. Compass, Beamreach's open-source operations agent for AWS, keeps that map current, including apt-get install and apk add lines and whether the workload faces the internet (Compass). So "which containers install libmongoc from a distribution package" is a lookup on 26 November, not a sweep.
The fix is only partly the kind of change its patch pull requests make. MongoDB is not on Compass's default product list, but PHP is, and packages on the map are also matched through OSV by package URL, so a Debian, Ubuntu or Alpine libmongoc package is matched once those trackers carry a fix. At CVSS 9.3 the finding is above the 7.0 threshold and a pull request opens without a click. Today no distribution has a fixed package, so there is no OS package pin to change yet. A pecl install mongodb line is not a base image tag, OS package pin or lockfile dependency, so Compass does not edit it; that change, like a source build, is a person's job.
Compass does not watch processes in a container, so step 2, reading the version out of a running PHP, is not something it does. It covers AWS only, not Kubernetes clusters as such. Honeytokens do not help here: the attacker intercepts network traffic rather than running code inside the workload, so a decoy credential is never touched. For this bug the inventory answers "where is libmongoc", the pull request arrives when distributions ship a package, and the PECL bump is a person's five minutes (patching docs).
8. Sources
- MongoDB C Driver 2.5.10 release notes: https://github.com/mongodb/mongo-c-driver/releases/tag/2.5.10
- MongoDB C Driver 1.30.17 release notes: https://github.com/mongodb/mongo-c-driver/releases/tag/1.30.17
- MongoDB Jira CDRIVER-6500: https://jira.mongodb.org/browse/CDRIVER-6500
- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-135224
- CVE record JSON: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/135xxx/CVE-2026-135224.json
- NVD entry: https://nvd.nist.gov/vuln/detail/CVE-2026-135224
- Fix commit, 2.x branch: https://github.com/mongodb/mongo-c-driver/commit/f5bdabf0ccc7fe617066cda7941ac19d21e5cb43
- Fix commit, 1.x branch: https://github.com/mongodb/mongo-c-driver/commit/fb7c1e6013bf808945c57c0e3d9d1c0136c0e42b
- OpenSSL, OCSP_basic_verify and OCSP_TRUSTOTHER: https://docs.openssl.org/master/man3/OCSP_resp_find_status/
- C Driver TLS and OCSP documentation (2.x): https://www.mongodb.com/docs/languages/c/c-driver/current/security/tls/
- C Driver TLS and OCSP documentation (1.x): https://www.mongodb.com/docs/languages/c/c-driver/v1.x/security/tls/
- libmongoc URI options: https://mongoc.org/libmongoc/current/mongoc_uri_t.html
- libmongoc mongoc_get_version: https://mongoc.org/libmongoc/current/mongoc_get_version.html
- libmongoc version header: https://raw.githubusercontent.com/mongodb/mongo-c-driver/2.5.10/src/libmongoc/src/mongoc/mongoc-version.h.in
- libmongoc CMake build file: https://github.com/mongodb/mongo-c-driver/blob/2.5.10/src/libmongoc/CMakeLists.txt
- PHP extension 2.5.9 release: https://github.com/mongodb/mongo-php-driver/releases/tag/2.5.9
- PHP extension 2.1.15 release: https://github.com/mongodb/mongo-php-driver/releases/tag/2.1.15
- PHP extension 1.21.15 release: https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.15
- PHP extension config.m4: https://github.com/mongodb/mongo-php-driver/blob/2.5.9/config.m4
- PHP extension phongo.c (bundled version row): https://raw.githubusercontent.com/mongodb/mongo-php-driver/2.5.9/phongo.c
- PHP manual, PECL installation: https://www.php.net/manual/en/mongodb.installation.pecl.php
- PHP manual, command line options: https://www.php.net/manual/en/features.commandline.options.php
- PECL mongodb: https://pecl.php.net/package/mongodb
- Packagist mongodb/mongodb-extension: https://packagist.org/packages/mongodb/mongodb-extension
- mongocxx r4.6.2 release: https://github.com/mongodb/mongo-cxx-driver/releases/tag/r4.6.2
- Debian package tracker: https://tracker.debian.org/pkg/mongo-c-driver
- Debian security tracker: https://security-tracker.debian.org/tracker/CVE-2026-135224
- Debian source package, sid: https://packages.debian.org/source/sid/mongo-c-driver
- Debian source package, trixie: https://packages.debian.org/source/trixie/mongo-c-driver
- Ubuntu Launchpad, mongo-c-driver: https://launchpad.net/ubuntu/+source/mongo-c-driver
- Alpine packages, mongo-c-driver: https://pkgs.alpinelinux.org/packages?name=mongo-c-driver
- Fedora Bodhi, mongo-c-driver updates: https://bodhi.fedoraproject.org/updates/?packages=mongo-c-driver
- Homebrew mongo-c-driver: https://formulae.brew.sh/formula/mongo-c-driver
- Homebrew mongo-c-driver@1: https://formulae.brew.sh/formula/mongo-c-driver@1
- CISA KEV catalogue: https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- OffSeq radar entry: https://radar.offseq.com/threat/cve-2026-135224-cwe-295-improper-certificate-validation-in-mongodb-c-driver-17dbed4cd89ff22e
- Compass patching docs: https://github.com/beamreach-ai/compass/blob/main/docs/patching.md
9. FAQ
Is my application affected by CVE-2026-135224?
Only if it uses libmongoc between 1.18.0 and 1.30.16 or between 2.0.0 and 2.5.9 and connects to MongoDB over TLS. In practice that means C and C++ applications and PHP applications with the mongodb extension below 2.5.9, 2.1.15 or 1.21.15. Run php --ri mongodb or check the installed libmongoc package. Applications on the Node.js, Python, Java, Go, Rust, C# or Ruby drivers are not affected.
Which version fixes CVE-2026-135224?
MongoDB C Driver 1.30.17 and 2.5.10, released 25 November 2026. For PHP, extension 2.5.9 bundles libmongoc 2.5.10, and 2.1.15 and 1.21.15 bundle 1.30.17. Homebrew has both fixed versions. Debian, Ubuntu and Alpine had no fixed package on 26 November 2026; Fedora and EPEL builds were pending.
Is CVE-2026-135224 being exploited?
Not as far as anyone has reported by 26 November 2026. It is not in CISA's Known Exploited Vulnerabilities catalogue, and CISA's SSVC assessment on the CVE record says exploitation none. The attack needs a revoked certificate for your database hostname plus a network position, which keeps it out of mass scanning.
Is there a workaround for the MongoDB C Driver OCSP bug?
No. MongoDB documents only the upgrade. Keeping the database on a private network and resolving its name from DNS you control narrows who can stage the attack. Do not disable certificate or revocation checks in the connection string as a response.
Does CVE-2026-135224 affect MongoDB Atlas or the MongoDB server?
No. The flaw is in the client library. A PHP or C application connecting to Atlas with an affected libmongoc would still accept a revoked certificate from an attacker between it and Atlas, so upgrade the client.
Last checked: 26 November 2026. Written from the vendor advisory and the CVE record, linked below. Confirm against the vendor advisory before acting.
Related: CVE Watch: all pages · How to protect against *2Shell vulnerabilities · Automated patching compared · AWS canary credentials
Beamreach