PyPi: Pymongo

CVE-2024-5629

Safety vulnerability ID: 70626

This vulnerability was reviewed by experts

The information on this page was manually curated by our Cybersecurity Intelligence Team.

Created at Jun 05, 2024 Updated at Nov 29, 2024
Scan your Python projects for vulnerabilities →

Advisory

Versions of the package pymongo before 4.6.3 are vulnerable to Out-of-bounds Read in the bson module. Using the crafted payload the attacker could force the parser to deserialize unmanaged memory. The parser tries to interpret bytes next to buffer and throws an exception with string. If the following bytes are not printable UTF-8 the parser throws an exception with a single byte.

Affected package

pymongo

Latest version: 4.10.1

Python driver for MongoDB <http://www.mongodb.org>

Affected versions

Fixed versions

Vulnerability changelog

Versions of the package pymongo before 4.6.3 are vulnerable to Out-of-bounds Read in the bson module. Using the crafted payload the attacker could force the parser to deserialize unmanaged memory. The parser tries to interpret bytes next to buffer and throws an exception with string. If the following bytes are not printable UTF-8 the parser throws an exception with a single byte. See CVE-2024-21506.


MISC:https://gist.github.com/keltecc/62a7c2bf74a997d0a7b48a0ff3853a03: https://gist.github.com/keltecc/62a7c2bf74a997d0a7b48a0ff3853a03
MISC:https://github.com/mongodb/mongo-python-driver/commit/56b6b6dbc267d365d97c037082369dabf37405d2: https://github.com/mongodb/mongo-python-driver/commit/56b6b6dbc267d365d97c037082369dabf37405d2
MISC:https://security.snyk.io/vuln/SNYK-PYTHON-PYMONGO-6370597: https://security.snyk.io/vuln/SNYK-PYTHON-PYMONGO-6370597

Resources

Use this package?

Scan your Python project for dependency vulnerabilities in two minutes

Scan your application

Severity Details

CVSS Base Score

HIGH 8.1

CVSS v3 Details

HIGH 8.1
Attack Vector (AV)
NETWORK
Attack Complexity (AC)
LOW
Privileges Required (PR)
NONE
User Interaction (UI)
REQUIRED
Scope (S)
UNCHANGED
Confidentiality Impact (C)
HIGH
Integrity Impact (I)
NONE
Availability Availability (A)
HIGH