CVE-2025-5151CWE-74CWE-94

defog-ai introspect analysis_tools.py execute_analysis_code_safely code injection

Medium · published May 25, 2025

CVSS v4.0
4.8
EPSS
0%
Percentile
24.6
In the wild
Unconfirmed
What it is

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."

The record
Technical detail
CVSS v4.0
4.8 · MEDIUM
Vector
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
EPSS
0.00327 · 24.6th percentile
Weaknesses
CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'); CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2025-05-25T16:31Z
EPSS history
Timeline
  • 25 MAY 16:31Z
    defog-ai introspect analysis_tools.py execute_analysis_code_safely code injection
    cvelistv5