Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1jcjZmLWdmNXctdmhyY84AA6rV

PyMongo Out-of-bounds Read in the bson module

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.

Permalink: https://github.com/advisories/GHSA-cr6f-gf5w-vhrc
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1jcjZmLWdmNXctdmhyY84AA6rV
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 29 days ago
Updated: 26 days ago


CVSS Score: 5.2
CVSS vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L

Identifiers: GHSA-cr6f-gf5w-vhrc, CVE-2024-21506
References: Repository: https://github.com/mongodb/mongo-python-driver
Blast Radius: 25.1

Affected Packages

pypi:pymongo
Dependent packages: 1,019
Dependent repositories: 66,984
Downloads: 27,881,656 last month
Affected Version Ranges: < 4.6.3
Fixed in: 4.6.3
All affected versions: 0.7.1, 0.7.2, 0.8.1, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6, 0.9.7, 0.10.1, 0.10.2, 0.10.3, 0.11.1, 0.11.2, 0.11.3, 0.14.1, 0.14.2, 0.15.1, 0.15.2, 1.1.1, 1.1.2, 1.2.1, 1.5.1, 1.5.2, 1.8.1, 1.10.1, 2.0.1, 2.1.1, 2.2.1, 2.4.1, 2.4.2, 2.5.1, 2.5.2, 2.6.1, 2.6.2, 2.6.3, 2.7.1, 2.7.2, 2.8.1, 2.9.1, 2.9.2, 2.9.3, 2.9.4, 2.9.5, 3.0.1, 3.0.2, 3.0.3, 3.1.1, 3.2.1, 3.2.2, 3.3.0, 3.3.1, 3.4.0, 3.5.0, 3.5.1, 3.6.0, 3.6.1, 3.7.0, 3.7.1, 3.7.2, 3.8.0, 3.9.0, 3.10.0, 3.10.1, 3.11.0, 3.11.1, 3.11.2, 3.11.3, 3.11.4, 3.12.0, 3.12.1, 3.12.2, 3.12.3, 3.13.0, 4.0.1, 4.0.2, 4.1.0, 4.1.1, 4.2.0, 4.3.2, 4.3.3, 4.4.0, 4.4.1, 4.5.0, 4.6.0, 4.6.1, 4.6.2
All unaffected versions: 4.6.3, 4.7.0, 4.7.1