PyMongo < 4.6.3 Out-of-bounds Read

medium Nessus Plugin ID 193202

Synopsis

A Python library installed on the remote host is affected by a vulnerability.

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.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to PyMongo or PyMongox version 4.6.3 or later.

See Also

http://www.nessus.org/u?8973be01

Plugin Details

Severity: Medium

ID: 193202

File Name: pymongo_4.6.3.nasl

Version: 1.1

Type: local

Family: Misc.

Published: 4/11/2024

Updated: 4/12/2024

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.7

CVSS v2

Risk Factor: Low

Base Score: 3.7

Temporal Score: 2.7

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

CVSS Score Source: CVE-2024-21506

CVSS v3

Risk Factor: Medium

Base Score: 5.2

Temporal Score: 4.5

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:python:pymongo

Required KB Items: Host/nix/Python/Packages/Enumerated

Exploit Ease: No known exploits are available

Patch Publication Date: 4/8/2024

Vulnerability Publication Date: 4/8/2024

Reference Information

CVE: CVE-2024-21506

IAVB: 2024-B-0037