Summary
It was discovered that PyMongo incorrectly handled malformed BSON data
received from a server. A malicious server could possibly use this issue to
obtain sensitive information from application memory. This issue only
affected Ubuntu 14.04 LTS. (CVE-2024-5629)
It was discovered that PyMongo incorrectly handled file identifiers in
GridFS, which could cause them to be interpreted as query conditions. An
authenticated user could possibly use this issue to obtain stored file
content, delete stored file content, or rename unintended files.
(CVE-2026-88029)
It was discovered that PyMongo incorrectly handled key management endpoint
values in client-side field level encryption. A user able to modify
encryption key metadata could possibly use this issue to cause applications
to connect to local sockets. This issue only affected Ubuntu 20.04 LTS,
Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, and Ubuntu 26.04 LTS. (CVE-2026-96747)
It was discovered that PyMongo incorrectly parsed connection strings. A
remote attacker could possibly use this issue to cause applications to
connect to servers of the attacker's choosing, resulting in the disclosure
of limited information or altered results. This issue only affected Ubuntu
16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu
24.04 LTS, and Ubuntu 26.04 LTS. (CVE-2026-96748)
It was discovered that PyMongo incorrectly handled very large documents
when encoding BSON data. An attacker could possibly use this issue to cause
PyMongo to crash, resulting in a denial of service, or possibly execute
arbitrary code. (CVE-2026-96749)
It was discovered that PyMongo incorrectly handled certain malformed BSON
data. An attacker could possibly use this issue to cause PyMongo to crash,
resulting in a denial of service. (CVE-2026-106435)
It was discovered that PyMongo incorrectly handled NUL characters in user
names and passwords used for SASL PLAIN authentication. An attacker could
possibly use this issue to cause a receiving system to read different
credentials than the application supplied. (CVE-2026-129926)
It was discovered that PyMongo incorrectly handled certain private key
configuration values. A local attacker could possibly use this issue to
obtain sensitive information from application output or log files. This
issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS,
Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, and Ubuntu 26.04 LTS. (CVE-2026-129927)
It was discovered that PyMongo incorrectly checked certificate revocation
when making TLS connections. A remote attacker holding a revoked
certificate could possibly use this issue to have connections accepted and
obtain sensitive information. This issue only affected Ubuntu 22.04 LTS,
Ubuntu 24.04 LTS, and Ubuntu 26.04 LTS. (CVE-2026-135146)
It was discovered that PyMongo incorrectly handled certain crafted BSON
data. An attacker could possibly use this issue to cause PyMongo to crash,
resulting in a denial of service, or obtain sensitive information.
(CVE-2026-135898)
Fixed packages 7
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu · 22.04 LTS 22.04:LTS | pymongo | 3.11.0-1ubuntu0.22.04.2 |
| Ubuntu · 24.04 LTS 24.04:LTS | pymongo | 3.11.0-1ubuntu0.24.04.2 |
| Ubuntu · 26.04 LTS 26.04:LTS | pymongo | 4.16.0-1ubuntu0.1 |
| Ubuntu · Pro 14.04 LTS Pro:14.04:LTS | pymongo | 2.6.3-1ubuntu0.1~esm1 |
| Ubuntu · Pro 16.04 LTS Pro:16.04:LTS | pymongo | 3.2-1ubuntu0.1~esm2 |
| Ubuntu · Pro 18.04 LTS Pro:18.04:LTS | pymongo | 3.6.1+dfsg1-1ubuntu0.1~esm2 |
| Ubuntu · Pro 20.04 LTS Pro:20.04:LTS | pymongo | 3.10.1-0ubuntu2.1+esm1 |
Vulnerabilities 10
-
High 8.4
Heap out-of-bounds write via signed size overflow in BSON document encoding
An integer overflow in the BSON document encoding component of the MongoDB Python Driver's bundled native extension may occur when a single document is built from an unusually large amount of caller-supplied data. Size arithmetic is performed in a signed 32-b…
-
High 8.3
GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Python Driver
Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB Python Driver can cause a caller-supplied structured file identifier to be interpreted as a query condition rather than as a literal identifier. An authenti…
-
High 8.2
Out-of-bounds read in BSON array decoding in the Python Driver C extension
An out-of-bounds read in the native C BSON decoding extension of the MongoDB Python Driver may allow an unauthenticated party who can supply crafted BSON data to the decoder to cause the application process to terminate. In some configurations, nearby process…
-
High 7.4
Improper certificate revocation check for stapled OCSP responses in the Python Driver
An improper certificate revocation check in the MongoDB Python Driver's optional TLS revocation-checking support allows an unauthenticated party that operates the network endpoint a client connects to, and that holds a revoked but still-dated certificate trus…
-
Medium 6.5
Connection redirection via percent-encoded delimiter injection in connection string hosts
PyMongo's connection string parsing decodes percent-encoded characters in the host portion before the host list is separated on its delimiters. When an application places a hostname value supplied by an unauthenticated party into a connection string, that par…
-
Medium 5.5
Credential exposure via unmasked option value in Python driver object text output
A credential-handling weakness in the MongoDB Python Driver allows a configuration option value that protects private key material to be written in clear text into the embedding application's own output and log records when a driver object is converted to tex…
-
Medium 5.1
Application denial of service via out-of-bounds read in BSON Regex decoding in MongoDB Python Driver
The MongoDB Python Driver's binary accelerator can read outside a buffer when an application decodes malformed BSON containing a truncated regular-expression element without a trailing NUL byte. An actor who can supply BSON to the documented decode or decode_…
-
Medium 5.0
Forced local Unix socket connection via dot-sock KMS endpoint in client-side field encryption
The client-side field level encryption support in the MongoDB Python Driver can treat a key management endpoint value ending in ".sock" as a local Unix domain socket path rather than a remote host. A user with write access to the encryption key metadata store…
-
Medium 4.7
Out-of-bounds read in bson module of PyMongo
An out-of-bounds read in the 'bson' module of PyMongo 4.6.2 or earlier allows deserialization of malformed BSON provided by a Server to raise an exception which may contain arbitrary application memory.
-
Low 3.7
Authentication identity confusion via NUL-byte injection in SASL PLAIN credentials
The MongoDB Python Driver does not neutralize NUL characters in the user name and password values it places into the message it builds for SASL PLAIN authentication. A party who can choose the login values that an application passes to the driver can alter wh…
References
-
report
https://ubuntu.com/security/CVE-2024-5629
-
report
https://ubuntu.com/security/CVE-2026-88029
-
report
https://ubuntu.com/security/CVE-2026-96747
-
report
https://ubuntu.com/security/CVE-2026-96748
-
report
https://ubuntu.com/security/CVE-2026-96749
-
report
https://ubuntu.com/security/CVE-2026-106435
-
report
https://ubuntu.com/security/CVE-2026-129926
-
report
https://ubuntu.com/security/CVE-2026-129927
-
report
https://ubuntu.com/security/CVE-2026-135146
-
report
https://ubuntu.com/security/CVE-2026-135898