CVE-2025-12695
MEDIUM 5.9CVSS 3.1DSPy does not properly restrict file reads
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.
- Published
- 4 Nov 2025
- Last modified
- 5 Nov 2026
- Assigned by
- reefs@jfrog.com
- NVD status
- Deferred
- Weakness
- CWE-653
- Also known as
- GHSA-vvw2-h478-xwr3PYSEC-2026-1318
- Sources
- NVDJSONOSV GHSA-vvw2-h478-xwr3JSONOSV PYSEC-2026-1318JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | reefs@jfrog.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | dspy | <= 3.0.3 |
References
- https://research.jfrog.com/vulnerabilities/dspy-sandbox-escape-arbitrary-file-read-jfsa-2025-001495652/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-12695 · ADVISORY
- https://github.com/stanfordnlp/dspy · PACKAGE
- https://pypi.org/project/dspy · PACKAGE
- https://github.com/advisories/GHSA-vvw2-h478-xwr3 · ADVISORY
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 4 Nov 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 4 Nov 2025)