CVE-2025-5151
defog-ai introspect analysis_tools.py execute_analysis_code_safely code injection
- State
- Published
- Severity
- 4.8 Medium
- Published
- May 25, 2025
- Updated
- May 28, 2025
- Reserved
- May 24, 2025
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."
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 4.8 Medium | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N | VulDB |
| 3.1 | 5.3 Medium | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L | VulDB |
| 3.0 | 5.3 Medium | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L | VulDB |
| 2.0 | 4.3 Medium | AV:L/AC:L/Au:S/C:P/I:P/A:P | VulDB |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
introspectdefog-ai |
|
References
- VDB-310239 | defog-ai introspect analysis_tools.py execute_analysis_code_safely code injectionvdb-entrytechnical-description
- VDB-310239 | CTI Indicators (IOB, IOC, TTP, IOA)signaturepermissions-required
- Submit #574809 | defog-ai introspect v0.1.0 to v0.1.4 Code Injectionthird-party-advisory
- https://github.com/defog-ai/introspect/issues/495issue-tracking
- https://github.com/defog-ai/introspect/issues/495#issuecomment-2894640278issue-tracking
- https://github.com/defog-ai/introspect/issues/495#issue-3036141048exploitissue-tracking
- https://github.com/defog-ai/introspect/pull/502issue-trackingpatch
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.