{"id":"CVE-2024-5629","published":"2024-06-05T14:32:56Z","modified":"2025-02-13T17:54:22Z","title":"Out-of-bounds read in bson module of PyMongo","vendor":"MongoDB Inc","product":"PyMongo","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00663,"percentile":0.52632,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://jira.mongodb.org/browse/PYTHON-4305","tags":["release-notes"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00007.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00032.html","tags":[]}],"priority":{"score":13.8,"factors":[{"name":"EPSS percentile","points":10.53},{"name":"CVSS severity","points":3.29}]},"vendorSlug":"mongodb","affectedVersions":[{"vendor":"MongoDB Inc","product":"PyMongo","versions":["<= 4.6.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-05T20:52:39.427569Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pymongo","vulnerableRanges":["<4.6.3"],"patched":["4.6.3"],"from":["GHSA-m87m-mmvp-v9qm","PYSEC-2026-1826"],"provenance":"source"}],"summary":{"text":"The flaw is an out-of-bounds read in the bson module of PyMongo, a MongoDB Inc product, in which deserialization of malformed BSON from a server can raise an exception that may contain arbitrary application memory. An attacker who can supply malformed BSON to a client that connects to a malicious or compromised server can exploit this without authentication, though user interaction is required and the attack is considered high complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:44:19Z"},"euvd":{"id":"EUVD-2024-2101","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mongodb-inc-pymongo-cve-2013-2132","parents":[{"from":"CVE-2013-2132","to":"CVE-2024-5629","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["bson/_cbsonmodule.c"],"commits":["https://github.com/mongodb/mongo-python-driver/commit/a060c15ef87e0f0e72974c7c0e57fe811bbd06a2","https://github.com/mongodb/mongo-python-driver/commit/56b6b6dbc267d365d97c037082369dabf37405d2"],"basis":"shared function","functions":["get_value"]}]}],"children":[{"from":"CVE-2024-5629","to":"CVE-2026-106435","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["bson/_cbsonmodule.c"],"commits":["https://github.com/mongodb/mongo-python-driver/commit/56b6b6dbc267d365d97c037082369dabf37405d2","https://github.com/mongodb/mongo-python-driver/commit/bb8d4e195275e75bd94ebeffb53cc747d357fcf4"],"basis":"shared function","functions":["get_value"]}]}]}}