# GHSA-CR6F-GF5W-VHRC

- Priority: **Routine**
- Reason: Not severe (CVSS 5.2, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-04-06 · Modified: 2026-09-10
- Record: https://cvemate.com/vulnerability/GHSA-CR6F-GF5W-VHRC · JSON: https://cvemate.com/vulnerability/GHSA-CR6F-GF5W-VHRC/json

## Description

```text
PyMongo Out-of-bounds Read in the bson module

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.

This advisory was initially published as CVE-2024-21506, which has since been rejected as a duplicate of CVE-2024-5629.
```

## Signals

- CVSS: 5.2 medium (v3.1, OSV · Pypi) CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L
- EPSS: not scored
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- PyPI pymongo (PyPI): \< 4.6.3

## References

- <https://nvd.nist.gov/vuln/detail/CVE-2024-21506>
- <https://github.com/mongodb/mongo-python-driver/commit/56b6b6dbc267d365d97c037082369dabf37405d2>
- <https://gist.github.com/keltecc/62a7c2bf74a997d0a7b48a0ff3853a03>
- <https://github.com/mongodb/mongo-python-driver>
- <https://security.snyk.io/vuln/SNYK-PYTHON-PYMONGO-6370597>

---

Data as of 2026-12-05T13:19:16.028Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
