CVE-2025-12695
5.9medium
Insecure configuration in DSPy lead to arbitrary file read when running untrusted code inside the sandbox
- Severity
- 5.9medium CVSS:3.1 by JFROG
- Exploit likelihood
- 0.34% (higher than 29% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- JFROG
- Also known as
- GHSA-vvw2-h478-xwr3PYSEC-2026-1318
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| dspy | 0 | CVE List |
| dspy (PyPI) | up to 3.0.3 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| JFROG | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| PyPA Advisory Database | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
La configuración excesivamente permisiva de la sandbox en DSPy permite a los atacantes robar archivos sensibles en casos en que los usuarios construyen un agente de IA que consume la entrada del usuario y utiliza la clase “PythonInterpreter”.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-12695 changed 2025-11-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vvw2-h478-xwr3 changed 2026-07-07 | CC-BY-4.0 |
| NVD | CVE-2025-12695 changed 2026-11-05 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1318 changed 2026-07-07 | CC-BY-4.0 |