BreachSpiderVerified, not vibes

CVE-2024-5629 in Debian Linux and 1 more product

High 8.1 Fix available

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.

Affects 2 products from 2 vendors. Facts below cite their sources.

CVSS 3.18.1
EPSS1.4%
EPSS percentile72th
FixAvailable

Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Debian Debian Linux 10.0
Mongodb Pymongo < 4.6.3

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-5629
BreachSpider IDBS-2024-GLOBAL-049027-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
Published2024-06-05
Last modified2024-11-21
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-125: Out-of-Bounds Read

Software reads data past the boundary of an allocated buffer, leaking sensitive information or causing crashes.

Related attack patterns (CAPEC)

CAPEC-540 Overread Buffers via CWE-125

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

An out-of-bounds read vulnerability in the 'bson' module of PyMongo versions 4.6.2 and earlier can lead to the deserialization of malformed BSON, potentially exposing arbitrary application memory.

The vulnerability arises from improper bounds checking when deserializing BSON data. An attacker could exploit this by providing a specially crafted BSON payload to a server using an affected version of PyMongo, which could result in the server leaking sensitive information from its memory.

Questions

What is CVE-2024-5629?

An out-of-bounds read vulnerability in the 'bson' module of PyMongo versions 4.6.2 and earlier can lead to the deserialization of malformed BSON, potentially exposing arbitrary application memory.

What is the CVSS score for CVE-2024-5629?

CVE-2024-5629 has CVSS 8.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H. EPSS: 1.4%.

Is CVE-2024-5629 actively exploited?

No confirmed active exploitation of CVE-2024-5629 as of 2026-05-30.

How do I remediate CVE-2024-5629?

Priority: HIGH. Advisory: https://jira.mongodb.org/browse/PYTHON-4305

What systems are affected by CVE-2024-5629?

CVE-2024-5629 affects Debian Debian Linux; Mongodb Pymongo.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.