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
17
pymongo
out-of-bounds read
bson module
vulnerable
crafted payload
attacker
deserialization
unmanaged memory
parser
exception
utf-8
software

4.7 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

NONE

Availability Impact

LOW

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

4.6 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

9.0%

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
github_advisory_databasepymongoRange<4.6.3
CPENameOperatorVersion
pymongolt4.6.3

4.7 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

NONE

Availability Impact

LOW

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

4.6 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

9.0%