Amazon Linux 2023 : python3-bson, python3-pymongo, python3-pymongo-gridfs (ALAS2023-2024-614)

high Nessus Plugin ID 196920

Synopsis

The remote Amazon Linux 2023 host is missing a security update.

Description

It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS2023-2024-614 advisory.

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. (CVE-2024-21506)

An out-of-bounds read in the 'bson' module of PyMongo 4.6.2 or earlier allows deserialization of malformed BSON provided by a Server to raise an exception which may contain arbitrary application memory.
(CVE-2024-5629)

Tenable has extracted the preceding description block directly from the tested product security advisory.

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

Solution

Run 'dnf update python-pymongo --releasever 2023.4.20240513' to update your system.

See Also

https://alas.aws.amazon.com/AL2023/ALAS-2024-614.html

https://alas.aws.amazon.com/faqs.html

https://alas.aws.amazon.com/cve/html/CVE-2024-21506.html

https://alas.aws.amazon.com/cve/html/CVE-2024-5629.html

Plugin Details

Severity: High

ID: 196920

File Name: al2023_ALAS2023-2024-614.nasl

Version: 1.2

Type: local

Agent: unix

Published: 5/13/2024

Updated: 3/1/2025

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, 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: p-cpe:/a:amazon:linux:python3-pymongo, p-cpe:/a:amazon:linux:python3-bson-debuginfo, cpe:/o:amazon:linux:2023, p-cpe:/a:amazon:linux:python-pymongo-debugsource, p-cpe:/a:amazon:linux:python3-pymongo-debuginfo, p-cpe:/a:amazon:linux:python-pymongo-doc, p-cpe:/a:amazon:linux:python3-bson, p-cpe:/a:amazon:linux:python-pymongo-debuginfo, p-cpe:/a:amazon:linux:python3-pymongo-gridfs

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Ease: No known exploits are available

Patch Publication Date: 5/9/2024

Vulnerability Publication Date: 4/6/2024

Reference Information

CVE: CVE-2024-21506, CVE-2024-5629