MediumVulnerability
CVE-2025-12695: DSPy sandbox configuration allows arbitrary file read via PythonInterpreter
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2025-12695
- Published
- Record updated
- Affected
- dspy <= 3.0.3
- Fixed in
- No fixed version was stated when the source was last read.
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.3%
Summary
CVE-2025-12695 is an overly permissive sandbox configuration in DSPy. It allows attackers to steal sensitive files when users build an AI agent that consumes user input and uses the "PythonInterpreter" class. The weakness is classified as CWE-653, Improper Isolation or Compartmentalization, and was reported by JFrog.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- dspyPyPILLM dependency since 2024-04-14 · 4 tracked dependents
Related items
- MediumCVE-2026-121936: easyVoice server-side request forgery through openaiBaseUrl in /api/v1/ttsSimilar attack · NVD/CVE Database
- MediumCVE-2026-118628: MLflow get-artifacts server-side request forgery information disclosureSimilar attack · NVD/CVE Database
- HighCVE-2026-118625: MLflow Tracking Server privilege escalation via get_endpointsSimilar attack · NVD/CVE Database
- InfoWhen trust becomes the payload: Inside the threats, etc quarterly reportSimilar attack · Elastic Security Labs
- MediumCritical Langflow flaws enable authentication bypass and RCESimilar attack · CSO Online