# CVE-2025-12695: Insecure configuration in DSPy lead to arbitrary file read when running untrusted code inside the sandbox

- Severity: Medium 5.9 (CVSS:3.1, scored by JFROG) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2025-11-04T13:24:42.358Z
- Modified: 2026-11-05T14:10:00.273Z
- Also known as: GHSA-vvw2-h478-xwr3, PYSEC-2026-1318
- Weaknesses: CWE-653
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: JFROG

## 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.

(As written by CVE List.)

## Affected

- dspy: 0
- dspy (PyPI): up to 3.0.3

## Every score

- JFROG: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://research.jfrog.com/vulnerabilities/dspy-sandbox-escape-arbitrary-file-read-jfsa-2025-001495652/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-12695> (advisory)
- <https://github.com/stanfordnlp/dspy> (package)
- <https://research.jfrog.com/vulnerabilities/dspy-sandbox-escape-arbitrary-file-read-jfsa-2025-001495652> (web)
- <https://pypi.org/project/dspy> (package)
- <https://github.com/advisories/GHSA-vvw2-h478-xwr3> (advisory)

## Sources

- CVE List: [CVE-2025-12695](https://www.cve.org/CVERecord?id=CVE-2025-12695), CVE Terms of Use, modified 2025-11-04
- GitHub Advisory Database: [GHSA-vvw2-h478-xwr3](https://github.com/advisories/GHSA-vvw2-h478-xwr3), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-12695](https://nvd.nist.gov/vuln/detail/CVE-2025-12695), Public domain, modified 2026-11-05
- PyPA Advisory Database: [PYSEC-2026-1318](https://osv.dev/vulnerability/PYSEC-2026-1318), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-12695 · Whole record: https://cve.day/CVE-2025-12695.json · Rebuilt by cve.day 2026-11-25T22:59:07.201Z
