Vulnerability · Published Nov 4, 2025 · Assigned by JFROG
CVE-2025-12695Insecure configuration in DSPy lead to arbitrary file read when running untrusted code inside the sandbox
Medium 5.9
In plain English
A medium-severity security flaw in dspy. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 27% of all known vulnerabilities).
Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.3%top 72.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | dspy | no fix listed | GHSA-vvw2-h478-xwr3 |
| PyPI | dspy | no fix listed | PYSEC-2026-1318 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| dspy | 0 |
Weakness: CWE-653 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N