CVE-2024-5629
PyMongo Out-of-bounds Read in the bson module
Auswirkung
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.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, allerdings muss ein Nutzer etwas tun, etwa eine Datei oder einen Link öffnen. Dafür müssen bestimmte Bedingungen erfüllt sein, was einen Angriff erschwert. Bei Erfolg: geringes Risiko, dass Daten ausgelesen werden, geringes Risiko für Ausfälle. Der Angriff kann über die verwundbare Komponente hinaus wirken.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| pip | pymongo | < 4.6.3 | 4.6.3 |
Betroffene Produkte
| Hersteller | Produkt | Betroffene Versionen |
|---|---|---|
| Debian | Debian Linux | Version 10.0 |
| MongoDB | Pymongo | vor 4.6.3 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://jira.mongodb.org/browse/PYTHON-4305
- https://lists.debian.org/debian-lts-announce/2024/06/msg00007.html
- https://lists.debian.org/debian-lts-announce/2024/09/msg00032.html
- https://github.com/advisories/GHSA-m87m-mmvp-v9qm
- https://nvd.nist.gov/vuln/detail/CVE-2024-5629
- https://github.com/mongodb/mongo-python-driver/commit/56b6b6dbc267d365d97c037082369dabf37405d2
- https://gist.github.com/keltecc/62a7c2bf74a997d0a7b48a0ff3853a03
- https://security.snyk.io/vuln/SNYK-PYTHON-PYMONGO-6370597