USN-9458-1: PyMongo vulnerabilities

Published Dec 2, 2026
·
Updated

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)

Affected Software

36 affected componentsFixes available
All of the following
ubuntu/python3-bson-ext<4.16.0-1ubuntu0.1
4.16.0-1ubuntu0.1
Ubuntu Ubuntu=26.04
All of the following
ubuntu/python3-pymongo<4.16.0-1ubuntu0.1
4.16.0-1ubuntu0.1
Ubuntu Ubuntu=26.04
All of the following
ubuntu/python3-bson-ext<3.11.0-1ubuntu0.24.04.2
3.11.0-1ubuntu0.24.04.2
Ubuntu Ubuntu=24.04
All of the following
ubuntu/python3-pymongo<3.11.0-1ubuntu0.24.04.2
3.11.0-1ubuntu0.24.04.2
Ubuntu Ubuntu=24.04
All of the following
ubuntu/python3-bson-ext<3.11.0-1ubuntu0.22.04.2
3.11.0-1ubuntu0.22.04.2
Ubuntu Ubuntu=22.04
All of the following
ubuntu/python3-pymongo<3.11.0-1ubuntu0.22.04.2
3.11.0-1ubuntu0.22.04.2
Ubuntu Ubuntu=22.04
All of the following
ubuntu/python3-bson-ext<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=20.04
All of the following
ubuntu/python3-pymongo<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=20.04
All of the following
ubuntu/python-bson-ext<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/python-pymongo<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/python3-bson-ext<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/python3-pymongo<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/python-bson-ext<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=16.04
All of the following
ubuntu/python-pymongo<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=16.04
All of the following
ubuntu/python3-bson-ext<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=16.04
All of the following
ubuntu/python3-pymongo<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=16.04
All of the following
ubuntu/python-bson-ext<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=14.04
All of the following
ubuntu/python3-bson-ext<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=14.04

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/python3-bson-ext to a version that resolves this vulnerability.

    Fixed in 4.16.0-1ubuntu0.1
  2. Upgrade

    Upgrade ubuntu/python3-pymongo to a version that resolves this vulnerability.

    Fixed in 4.16.0-1ubuntu0.1
  3. Upgrade

    Upgrade ubuntu/python3-bson-ext to a version that resolves this vulnerability.

    Fixed in 3.11.0-1ubuntu0.24.04.2
  4. Upgrade

    Upgrade ubuntu/python3-pymongo to a version that resolves this vulnerability.

    Fixed in 3.11.0-1ubuntu0.24.04.2
  5. Upgrade

    Upgrade ubuntu/python3-bson-ext to a version that resolves this vulnerability.

    Fixed in 3.11.0-1ubuntu0.22.04.2
  6. Upgrade

    Upgrade ubuntu/python3-pymongo to a version that resolves this vulnerability.

    Fixed in 3.11.0-1ubuntu0.22.04.2
  7. Upgrade

    Upgrade ubuntu/python3-bson-ext to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  8. Upgrade

    Upgrade ubuntu/python3-pymongo to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  9. Upgrade

    Upgrade ubuntu/python-bson-ext to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  10. Upgrade

    Upgrade ubuntu/python-pymongo to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro

Event History

Dec 2, 2026
Advisory Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
DescriptionAffected Software

Frequently Asked Questions

1

Who could exploit the malformed BSON handling issue?

An attacker would need to operate or control a server that sends malformed BSON data to the application. This issue affected only Ubuntu 14.04 LTS.

2

What access is required to abuse the GridFS file identifier issue?

The attacker must be an authenticated user. They could potentially read stored file content, delete stored file content, or rename files other than the intended target.

3

When is the client-side field level encryption issue relevant?

It is relevant where a user can modify encryption key metadata, including key management endpoint values. Such a user could cause the application to connect to local sockets; the issue affected Ubuntu 20.04 LTS, 22.04 LTS, 24.04 LTS, and 26.04 LTS.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203