CERT-In Rates Multiple MongoDB Driver Flaws High Severity Across Python, Ruby, PHP and C
According to CERT-In, advisory CIVN-2026-0583 covers several MongoDB driver vulnerabilities and rates them High. The flaws range from application crashes and data exposure to unauthorized changes of stored records, and fixed versions are stated for three packages.
PythonRubyDatabasesVulnerabilitiesKey points
- CERT-In advisory CIVN-2026-0583 covers multiple MongoDB driver flaws and rates them High.
- Python Driver, Ruby Driver with Mongoid, and BSON Ruby have stated fixed versions.
- Several flaws can expose or alter stored data, and some can crash client processes.
- The sources do not give fixed versions for the PHP driver, Laravel integration or C driver.
CERT-In has published advisory CIVN-2026-0583 covering multiple vulnerabilities in MongoDB drivers and related libraries, and rates the set as High. The excerpt available here is incomplete, so the full advisory should be checked for any further products.
Affected packages
The advisory lists these versions as affected:
- MongoDB Python Driver: versions prior to 4.20.2, with affected versions starting from 1.9.0 and 3.11.0.
- MongoDB Ruby Driver and Mongoid: versions prior to 9.1.3, with affected versions starting from 4.0.0, 9.0.0 and 9.1.0.
- BSON Ruby: versions prior to 5.2.1, with affected versions starting from 4.8.0.
What the flaws allow
The NVD entries describe several problems. In the Python driver, CVE-2026-135898 is an out-of-bounds read in the native BSON decoder that can terminate the process when crafted data is supplied, and can leak nearby memory in some error messages. CVE-2026-135146 is a certificate revocation check weakness in optional TLS checking that can let a revoked certificate be accepted.
In the Ruby ecosystem, CVE-2026-135135 can cause Mongoid to write values the application marked as encrypted in cleartext without any error. CVE-2026-135141 can cause a default restriction to be dropped from queries. CVE-2026-135226 and CVE-2026-135227 can lead to modification or removal of stored data through crafted input, with CVE-2026-135227 depending on applications passing unfiltered request data into association handling.
The PHP driver entries include CVE-2026-135133, a memory handling fault that may allow memory corruption, and several Laravel integration issues (CVE-2026-135228, CVE-2026-135147, CVE-2026-135145, CVE-2026-135144 and CVE-2026-135142) that can bypass attribute protections, query filters or ownership checks. In the C driver, CVE-2026-135134 can crash a client through a crafted server discovery response, and CVE-2026-135224 can let a withdrawn certificate be accepted.
Fixed versions
The sources give fixed versions only for the Python driver, Ruby driver and Mongoid, and BSON Ruby. They do not state fixed versions for the PHP driver, the Laravel integration or the C driver.
For the full advisory and any further details, see the original CERT-In report at cert-in.org.in.
What to do
- Upgrade the MongoDB Python Driver to 4.20.2 or later.
- Upgrade the MongoDB Ruby Driver and Mongoid to 9.1.3 or later, and BSON Ruby to 5.2.1 or later.
- Check PHP driver, Laravel and C driver versions against the CERT-In advisory, as fixed versions are not stated in the sources.
- Review applications that pass unfiltered request data into model or association code, since several of the flaws depend on this.
Original report
“Multiple Vulnerabilities in MongoDB (CIVN-2026-0583)”
CERT-In rates it High. Affected: MongoDB Python Driver versions prior to 4.20.2 (affected versions starting from 1.9.0 and 3.11.0); MongoDB Ruby Driver / Mongoid versions prior to 9.1.3 (affected versions starting from 4.0.0, 9.0.0 and 9.1.0); BSON Ruby versions prior to 5.2.1 (affected versions starting from 4.8.0); …. Multiple vulnerabilities have been reported in MongoDB drivers and related in…
Vulnerabilities mentioned
- CVE-2026-135898 — MongoDB Python Driver High
- CVE-2026-135146 — MongoDB Python Driver Critical
- CVE-2026-135135 — MongoDB Ruby Driver High
- CVE-2026-135141 — MongoDB Ruby Driver High
- CVE-2026-135226 — MongoDB Ruby Driver High
- CVE-2026-135227 — MongoDB Ruby Driver High
- CVE-2026-135133 — MongoDB PHP Driver High
- CVE-2026-135228 — MongoDB PHP Driver High
- CVE-2026-135147 — MongoDB PHP Driver High
- CVE-2026-135145 — MongoDB PHP Driver High
- CVE-2026-135144 — MongoDB PHP Driver High
- CVE-2026-135142 — MongoDB PHP Driver High
- CVE-2026-135134 — MongoDB C Driver High
- CVE-2026-135224 — MongoDB C Driver Critical
- MongoDB Python Driver Out-of-Bounds Read Vulnerability
- MongoDB Ruby Driver Vulnerability Enables Unauthenticated Data Manipulation
- CVE-2026-135146 — MongoDB Python Driver
- MongoDB Ruby Driver Logic Flaw Enables Unauthorized Data Access
- MongoDB Ruby Driver Type Confusion Vulnerability in Extended JSON Parsing