Vulnerability Details : CVE-2024-21506
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.
Products affected by CVE-2024-21506
Please log in to view affected product information.
Exploit prediction scoring system (EPSS) score for CVE-2024-21506
0.04%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 9 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2024-21506
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.2
|
MEDIUM | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L |
1.0
|
3.7
|
Snyk | 2024-04-06 |
CWE ids for CVE-2024-21506
-
The product reads data past the end, or before the beginning, of the intended buffer.Assigned by: report@snyk.io (Secondary)
References for CVE-2024-21506
-
https://gist.github.com/keltecc/62a7c2bf74a997d0a7b48a0ff3853a03
[pymongo] out-of-bounds read PoC · GitHub
-
https://github.com/mongodb/mongo-python-driver/commit/56b6b6dbc267d365d97c037082369dabf37405d2
PYTHON-4305 Fix bson size check (#1564) · mongodb/mongo-python-driver@56b6b6d · GitHub
-
https://security.snyk.io/vuln/SNYK-PYTHON-PYMONGO-6370597
Out-of-bounds Read in pymongo | CVE-2024-21506 | Snyk
Jump to