Lucene search

K
osvGoogleOSV:GHSA-CR6F-GF5W-VHRC
HistoryApr 06, 2024 - 6:31 a.m.

PyMongo Out-of-bounds Read in the bson module

2024-04-0606:31:08
Google
osv.dev
8
pymongo
out-of-bounds read
vulnerable
bson module
crafted payload
attacker
unmanaged memory
deserialization
parser
exception
printable utf-8
single byte
software

5 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

9.1%

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.

This advisory was initially published as CVE-2024-21506, which has since been rejected as a duplicate. The underlying vulnerability is valid and so this advisory has not been withdrawn.

5 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

9.1%