Bug 2290585 (CVE-2024-5629)

Summary: CVE-2024-5629 python-pymongo: Out-of-bounds read in bson module
Product: [Other] Security Response Reporter: Marco Benatto <mbenatto>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: athomas, bbuckingham, bcourt, eglynn, ehelms, ggainey, jjoyce, jschluet, jsherril, juwatts, lhh, lsvaty, lzap, mburns, mgarciac, mhulan, mmagr, nmoumoul, orabin, pcreech, pgrist, rchan, rhos-maint, smallamp
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: pymongo 4.6.3 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the bson module contained in the python-pymongo package. A malformed BSON file may trigger an exception, leading to a denial of service and eventually sensitive memory data exposure.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2290587, 2290588, 2290589, 2290595, 2290596, 2290597    
Bug Blocks: 2290586    

Description Marco Benatto 2024-06-05 17:25:38 UTC
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.

https://jira.mongodb.org/browse/PYTHON-4305

Comment 1 Marco Benatto 2024-06-05 17:50:02 UTC
Created python-pdfminer tracking bugs for this issue:

Affects: fedora-all [bug 2290589]


Created python-pymongo tracking bugs for this issue:

Affects: epel-7 [bug 2290588]
Affects: fedora-all [bug 2290587]

Comment 4 Marco Benatto 2024-06-05 19:20:57 UTC
Upstream commit for this issue:
https://github.com/mongodb/mongo-python-driver/commit/56b6b6dbc267d365d97c037082369dabf37405d2

Comment 6 errata-xmlrpc 2025-06-03 01:57:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:8419 https://access.redhat.com/errata/RHSA-2025:8419