CVE-2025-5150
Python vulnerability analysis and mitigation

Overview

A critical vulnerability (CVE-2025-5150) was discovered in docarray versions up to 0.40.1, affecting the getitem function in the /docarray/data/torch_dataset.py file of the Web API component. The vulnerability was disclosed on May 25, 2025, and involves improperly controlled modification of object prototype attributes (prototype pollution). The vendor was contacted but did not respond to the disclosure (NVD).

Technical details

The vulnerability exists in the getitem method of MultiModalDataset class which recursively searches python object via dotted paths from input without proper sanitization against unauthorized internal object access. This allows attackers to access internal class objects through paths like .class.base and manipulate them. The vulnerability has received a CVSS v3.1 Base Score of 6.3 (Medium) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L (NVD, GitHub POC).

Impact

The vulnerability allows attackers to overwrite internal python runtime class objects, which can lead to Denial of Service (DoS) attacks. When combined with backend code enriching python runtime states, there is potential for Remote Code Execution (RCE) and Cross-Site Scripting (XSS) attacks. The impact is particularly severe when the multimodal dataset operation is deployed through web APIs like FastAPI (GitHub POC).

Mitigation and workarounds

The recommended mitigation is to implement checks against unauthorized internal attributes access in the getitem method of MultiModalDataset. Organizations should upgrade to versions newer than 0.40.1 once a patch is available (GitHub POC).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management