Bug 2273859 (CVE-2024-21506) - CVE-2024-21506 python-pymongo: out of bounds read
Summary: CVE-2024-21506 python-pymongo: out of bounds read
Keywords:
Status: NEW
Alias: CVE-2024-21506
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2273860 2273864 2273868 2273869 2273863 2273865 2273866 2273867
Blocks: 2273862
TreeView+ depends on / blocked
 
Reported: 2024-04-07 14:03 UTC by ybuenos
Modified: 2024-04-18 07:19 UTC (History)
21 users (show)

Fixed In Version: python-pymongo 4.6.3
Doc Type: ---
Doc Text:
An out-of-bounds read vulnerability was found in Pymongo. When using a crafted payload, this flaw allows an attacker to force the parser to deserialize unmanaged memory.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description ybuenos 2024-04-07 14:03:33 UTC
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.

https://gist.github.com/keltecc/62a7c2bf74a997d0a7b48a0ff3853a03
https://github.com/mongodb/mongo-python-driver/commit/56b6b6dbc267d365d97c037082369dabf37405d2
https://security.snyk.io/vuln/SNYK-PYTHON-PYMONGO-6370597

Comment 1 ybuenos 2024-04-07 14:03:50 UTC
Created python-pymongo tracking bugs for this issue:

Affects: fedora-all [bug 2273860]

Comment 2 ybuenos 2024-04-07 14:06:53 UTC
Created python-pdfminer tracking bugs for this issue:

Affects: epel-all [bug 2273863]
Affects: fedora-all [bug 2273865]


Created python-pymongo tracking bugs for this issue:

Affects: epel-all [bug 2273864]


Note You need to log in before you can comment on or make changes to this bug.