CVE-2025-5151 Details
Description
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 leads to code injection. It is possible to launch the attack on the local host. The exploit has been disclosed to the public and may be used. The patch is named 502. 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."
A critical code injection vulnerability has been identified in Defog-AI Introspect versions through 0.1.4. The issue arises in the 'execute_analysis_code_safely' function within 'introspect/backend/tools/analysis_tools.py'. This function executes user-provided code using the 'exec' function, which can be exploited by crafting malicious input. The vulnerability allows attackers to manipulate libraries included in the execution namespace, potentially leading to unauthorized actions such as reading sensitive files or modifying system configurations.
Users are advised to update to the patched version of Defog-AI Introspect, which is available in the GitHub repository.
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://github.com/defog-ai/introspect/issues/495#issuecomment-2894640278 | CISA-ADP | ExploitIssue TrackingPatch |
| https://github.com/defog-ai/introspect/issues/495 | [email protected] | ExploitIssue TrackingPatch |
| https://github.com/defog-ai/introspect/issues/495#issue-3036141048 | [email protected] | ExploitIssue TrackingPatch |
| https://github.com/defog-ai/introspect/issues/495#issuecomment-2894640278 | [email protected] | ExploitIssue TrackingPatch |
| https://github.com/defog-ai/introspect/pull/502 | [email protected] | Broken Link |
| https://vuldb.com/?ctiid.310239 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.310239 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.574809 | [email protected] | Third Party AdvisoryVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| defog introspect | >= 0.1.0, <= 0.1.4 |
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] |