Skip to content
OpenAdvisories
Medium ALAS2023-2024-614 2 CVEs

Moderate: python-pymongo security update (Amazon Linux 2023)

Published May 9, 2024 · Updated Feb 26, 2025

Summary

Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2024-5629: 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-21506: 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.

Fixed packages 8

ReleasePackageFixed in
Amazon Linux · 2023 python-pymongo-debuginfo 0:3.10.1-5.amzn2023.0.3
Amazon Linux · 2023 python-pymongo-debugsource 0:3.10.1-5.amzn2023.0.3
Amazon Linux · 2023 python-pymongo-doc 0:3.10.1-5.amzn2023.0.3
Amazon Linux · 2023 python3-bson 0:3.10.1-5.amzn2023.0.3
Amazon Linux · 2023 python3-bson-debuginfo 0:3.10.1-5.amzn2023.0.3
Amazon Linux · 2023 python3-pymongo 0:3.10.1-5.amzn2023.0.3
Amazon Linux · 2023 python3-pymongo-debuginfo 0:3.10.1-5.amzn2023.0.3
Amazon Linux · 2023 python3-pymongo-gridfs 0:3.10.1-5.amzn2023.0.3

Vulnerabilities 2

References

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