CVE-2024-21506

medium

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.

References

https://security.snyk.io/vuln/SNYK-PYTHON-PYMONGO-6370597

https://github.com/mongodb/mongo-python-driver/commit/56b6b6dbc267d365d97c037082369dabf37405d2

https://gist.github.com/keltecc/62a7c2bf74a997d0a7b48a0ff3853a03

Details

Source: Mitre, NVD

Published: 2024-04-06

Updated: 2024-04-08

Risk Information

CVSS v2

Base Score: 8.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:C

Severity: High

CVSS v3

Base Score: 5.2

Vector: CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L

Severity: Medium