medium5.9
CVE-2025-12695
DSPy does not properly restrict file reads
Impact
The overly permissive sandbox configuration in DSPy allows attackers to steal sensitive files in cases when users build an AI agent which consumes user input and uses the “PythonInterpreter” class.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | dspy | <= 3.0.3 | none recorded |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://research.jfrog.com/vulnerabilities/dspy-sandbox-escape-arbitrary-file-read-jfsa-2025-001495652/
- https://github.com/advisories/GHSA-vvw2-h478-xwr3
- https://nvd.nist.gov/vuln/detail/CVE-2025-12695
- https://research.jfrog.com/vulnerabilities/dspy-sandbox-escape-arbitrary-file-read-jfsa-2025-001495652