PyMongo < 4.6.3 Out-of-bounds Read

high 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: High

ID: 193202

File Name: pymongo_4.6.3.nasl

Version: 1.7

Type: local

Agent: unix

Family: Misc.

Published: 4/11/2024

Updated: 11/12/2024

Configuration: Enable thorough checks

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.2

CVSS v2

Risk Factor: High

Base Score: 9.4

Temporal Score: 7

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

CVSS Score Source: CVE-2024-5629

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.1

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

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

Vulnerability Information

CPE: cpe:/a:python:pymongo

Required KB Items: Host/nix/packages, 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-5629

IAVB: 2024-B-0037