Home / mailings [USN-9458-1] PyMongo vulnerabilities
Posted on 03 December 2026
Ubuntu Security==========================================================================Ubuntu Security Notice USN-9458-1
December 02, 2026
pymongo vulnerabilities
==========================================================================
A security issue affects these releases of Ubuntu and its derivatives:
- Ubuntu 26.04 LTS
- Ubuntu 24.04 LTS
- Ubuntu 22.04 LTS
- Ubuntu 20.04 LTS
- Ubuntu 18.04 LTS
- Ubuntu 16.04 LTS
- Ubuntu 14.04 LTS
Summary:
Several security issues were fixed in PyMongo.
Software Description:
- pymongo: Python interface to the MongoDB document-oriented database
Details:
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)
Update instructions:
The problem can be corrected by updating your system to the following
package versions:
Ubuntu 26.04 LTS
python3-bson-ext 4.16.0-1ubuntu0.1
python3-pymongo 4.16.0-1ubuntu0.1
Ubuntu 24.04 LTS
python3-bson-ext 3.11.0-1ubuntu0.24.04.2
python3-pymongo 3.11.0-1ubuntu0.24.04.2
Ubuntu 22.04 LTS
python3-bson-ext 3.11.0-1ubuntu0.22.04.2
python3-pymongo 3.11.0-1ubuntu0.22.04.2
Ubuntu 20.04 LTS
python3-bson-ext 3.10.1-0ubuntu2.1+esm1
Available with Ubuntu Pro
python3-pymongo 3.10.1-0ubuntu2.1+esm1
Available with Ubuntu Pro
Ubuntu 18.04 LTS
python-bson-ext 3.6.1+dfsg1-1ubuntu0.1~esm2
Available with Ubuntu Pro
python-pymongo 3.6.1+dfsg1-1ubuntu0.1~esm2
Available with Ubuntu Pro
python3-bson-ext 3.6.1+dfsg1-1ubuntu0.1~esm2
Available with Ubuntu Pro
python3-pymongo 3.6.1+dfsg1-1ubuntu0.1~esm2
Available with Ubuntu Pro
Ubuntu 16.04 LTS
python-bson-ext 3.2-1ubuntu0.1~esm2
Available with Ubuntu Pro
python-pymongo 3.2-1ubuntu0.1~esm2
Available with Ubuntu Pro
python3-bson-ext 3.2-1ubuntu0.1~esm2
Available with Ubuntu Pro
python3-pymongo 3.2-1ubuntu0.1~esm2
Available with Ubuntu Pro
Ubuntu 14.04 LTS
python-bson-ext 2.6.3-1ubuntu0.1~esm1
Available with Ubuntu Pro
python3-bson-ext 2.6.3-1ubuntu0.1~esm1
Available with Ubuntu Pro
In general, a standard system update will make all the necessary changes.
References:
https://ubuntu.com/security/notices/USN-9458-1
CVE-2024-5629, CVE-2026-106435, CVE-2026-129926, CVE-2026-129927,
CVE-2026-135146, CVE-2026-135898, CVE-2026-88029, CVE-2026-96747,
CVE-2026-96748, CVE-2026-96749
Package Information:
https://launchpad.net/ubuntu/+source/pymongo/4.16.0-1ubuntu0.1
https://launchpad.net/ubuntu/+source/pymongo/3.11.0-1ubuntu0.24.04.2
https://launchpad.net/ubuntu/+source/pymongo/3.11.0-1ubuntu0.22.04.2
--===============2500628440106442363==Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
