Lucene search

K
githubGitHub Advisory DatabaseGHSA-CR6F-GF5W-VHRC
HistoryApr 06, 2024 - 6:31 a.m.

PyMongo Out-of-bounds Read in the bson module

2024-04-0606:31:08
CWE-125
GitHub Advisory Database
github.com
22
pymongo
out-of-bounds read
bson module
vulnerable
crafted payload
attacker
deserialization
unmanaged memory
parser
exception
utf-8
software

CVSS3

8.1

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

HIGH

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

AI Score

4.6

Confidence

High

EPSS

0.001

Percentile

37.2%

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 of CVE-2024-5629.

Affected configurations

Vulners
Node
mongodbpymongoRange<4.6.3
VendorProductVersionCPE
mongodbpymongo*cpe:2.3:a:mongodb:pymongo:*:*:*:*:*:*:*:*

CVSS3

8.1

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

HIGH

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

AI Score

4.6

Confidence

High

EPSS

0.001

Percentile

37.2%