GitHub Advisoryadvisory · PyPI

GHSA-m87m-mmvp-v9qm PyMongo Out-of-bounds Read in the bson module

MEDIUM Published 2024-06-05 Modified 2024-06-18 Official page ↗
Aliases
CVE-2024-5629
Ecosystem
PyPI
Packages
pymongo
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:L
Weaknesses
CWE-125
Reviewed
2024-06-05

Affected packages

• PyPI pymongo: < 4.6.3 → fixed in 4.6.3

Description

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.

Related

Alias · CVE (1)

  • CVE-2024-5629 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… vulnerability

Weakness · CWE (1)

  • CWE-125 Out-of-bounds Read weakness

References