Out-of-bounds read in bson module of PyMongo

4.7MEDIUM

CVE-2024-5629

Key Information:

Vendor

MongoDB

Status
CVE ID
CVE ID:
CVE-2024-5629
Vendor
CVE Published:
5 June 2024

Timeline

  • Vulnerability published

How risky is it?

  • Partly: Works over the network, but a user must act
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Monitor

Low risk for most. Patch in your normal cycle.

What to do

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

Read the vendor advisory β†—
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Pymongo. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Monitor"
  • Its CVSS severity is medium (4.7).

What is CVE-2024-5629?

An out-of-bounds read was identified in the bson module of PyMongo versions prior to 4.6.3. This vulnerability permits the deserialization of malformed BSON data sent from a server, which can trigger an exception potentially exposing arbitrary application memory. The implications of this vulnerability could lead to unauthorized access to sensitive data or system instability. Users are advised to upgrade to the latest version of PyMongo to mitigate risks associated with this vulnerability.

Affected Version(s)

PyMongo 0 <= 4.6.2

References

Use-After-Free Vulnerability in MongoDB Server's Replication Component

CVE-2026-118383
MongodbMongodb ServerπŸ˜„πŸ‘Ύ9.5CRITICAL

TLS Implementation Flaw in MongoDB on macOS for IPv6 Connections

CVE-2026-120808
MongodbMongodb Server9.1CRITICAL

Memory Exhaustion Vulnerability in MongoDB

CVE-2026-25611
MongoDBMongodb Server8.7HIGH
View more MongoDB vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction

CVSS V3.1

Score:
4.7
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
Low
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
Required
Scope:
Changed
.