CVE-2025-5150 Details
Description
A vulnerability was found in docarray up to 0.40.1. It has been rated as critical. Affected by this issue is the function __getitem__ of the file /docarray/data/torch_dataset.py of the component Web API. The manipulation leads to improperly controlled modification of object prototype attributes ('prototype pollution'). The attack may be launched remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
A critical prototype pollution vulnerability has been identified in Docarray versions through 0.40.1. The issue arises in the Web API component, specifically within the `__getitem__` method of the `torch_dataset.py` file. This vulnerability allows for improper modification of object prototype attributes, which can be exploited remotely. The manipulation involves accessing internal class objects through unsanitized dotted paths, potentially leading to denial-of-service conditions. Furthermore, when combined with certain backend code, this vulnerability could facilitate other attacks, such as remote code execution or cross-site scripting.
It is recommended to update Docarray to a version that addresses this vulnerability. Users should also implement checks in the `__getitem__` method of the `MultiModalDataset` class to prevent unauthorized access to internal attributes.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 27, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/superboy-zjc/56502343bcb12eb653081b426debf2c8 | CISA-ADP | ExploitMitigation |
| https://gist.github.com/superboy-zjc/56502343bcb12eb653081b426debf2c8 | [email protected] | ExploitMitigation |
| https://vuldb.com/?ctiid.310238 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.310238 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.574696 | [email protected] | Third Party AdvisoryVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') | [email protected] |
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linuxfoundation docarray | <= 0.40.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 3, 2025 | Initial Analysis | [email protected] |
| May 28, 2025 | CVE Modified | CISA-ADP |
| May 25, 2025 | New CVE Received | [email protected] |