defog-ai introspect up to 0.1.4 analysis_tools.py execute_analysis_code_safely code code injection
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.0 | $0-$5k | 0.00 |
Summary
A vulnerability classified as critical has been found in defog-ai introspect up to 0.1.4. The affected element is the function execute_analysis_code_safely of the file introspect/backend/tools/analysis_tools.py. Performing a manipulation of the argument code results in code injection.
This vulnerability is cataloged as CVE-2025-5151. The attack must be initiated from a local position. Furthermore, there is an exploit available.
It is recommended to apply a patch to fix this issue.
The code maintainer explains, that "[they] have added some workarounds to address this in #502, but will not be implementing a full fix. This is because this repo is meant to be run in a docker environment, which will significantly mitigate potential security risks. Having said that, we have added a SECURITY section in our README to make this clearer to users."
Details
A vulnerability classified as critical has been found in defog-ai introspect up to 0.1.4. This affects the function execute_analysis_code_safely of the file introspect/backend/tools/analysis_tools.py. The manipulation of the argument code with an unknown input leads to a code injection vulnerability. CWE is classifying the issue as CWE-94. The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. This is going to have an impact on confidentiality, integrity, and availability.
The weakness was shared with XingTu Team of Legendsec at QI-ANXIN as 495. It is possible to read the advisory at github.com. This vulnerability is uniquely identified as CVE-2025-5151. The exploitability is told to be easy. Attacking locally is a requirement. Technical details and a public exploit are known. The attack technique deployed by this issue is T1059 according to MITRE ATT&CK.
The exploit is shared for download at github.com. It is declared as proof-of-concept. The code maintainer explains, that "[they] have added some workarounds to address this in #502, but will not be implementing a full fix. This is because this repo is meant to be run in a docker environment, which will significantly mitigate potential security risks. Having said that, we have added a SECURITY section in our README to make this clearer to users."
Applying the patch 502 is able to eliminate this problem. The bugfix is ready for download at github.com.
Be aware that VulDB is the high quality source for vulnerability data.
Product
Type
Vendor
Name
Version
Website
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CNA CVSS-B Score: 🔍
CNA CVSS-BT Score: 🔍
CNA Vector: 🔍
CVSSv3
VulDB Meta Base Score: 6.1VulDB Meta Temp Score: 6.0
VulDB Base Score: 5.3
VulDB Temp Score: 4.8
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 7.8
NVD Vector: 🔍
CNA Base Score: 5.3
CNA Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Code injectionCWE: CWE-94 / CWE-74 / CWE-707
CAPEC: 🔍
ATT&CK: 🔍
Physical: Partially
Local: Yes
Remote: No
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: PatchStatus: 🔍
0-Day Time: 🔍
Patch: 502
Timeline
05/24/2025 🔍05/24/2025 🔍
06/03/2025 🔍
Sources
Product: github.comAdvisory: 495
Organization: XingTu Team of Legendsec at QI-ANXIN
Status: Confirmed
Confirmation: 🔍
CVE: CVE-2025-5151 (🔍)
GCVE (CVE): GCVE-0-2025-5151
GCVE (VulDB): GCVE-100-310239
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 05/24/2025 19:48Updated: 06/03/2025 15:33
Changes: 05/24/2025 19:48 (63), 05/25/2025 19:46 (30), 05/27/2025 13:51 (1), 06/03/2025 15:33 (12)
Complete: 🔍
Submitter: ybdesire
Committer: ybdesire
Cache ID: 216::103
Submit
Accepted
- Submit #574809: defog-ai introspect v0.1.0 to v0.1.4 Code Injection (by ybdesire)
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.