CVE-2025-12695
JSON

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 packageVersionsReported by
dspy0CVE List
dspy (PyPI)up to 3.0.3GitHub Advisory Database, PyPA Advisory Database

All scores

JFROG5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
PyPA Advisory Database5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-653

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

SourceRecordLicence
CVE ListCVE-2025-12695 changed 2025-11-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-vvw2-h478-xwr3 changed 2026-07-07CC-BY-4.0
NVDCVE-2025-12695 changed 2026-11-05Public domain
PyPA Advisory DatabasePYSEC-2026-1318 changed 2026-07-07CC-BY-4.0