CVE-2025-12695
MediumCVSS 5.9Exploitation Probability (EPSS)
Low risk27th percentile - higher than 27% of all known CVEs
Summary
The overly permissive sandbox configuration in DSPy allows attackers to steal sensitive files when users build an AI agent that consumes user input and uses the PythonInterpreter class.
Risk Assessment
Organizations building DSPy-based AI agents that accept user input may be exposed to leakage of sensitive files from the host system. The risk mainly affects environments where agents have access to the local filesystem.
Recommendation
Restrict the privileges of the process running the AI agent and review the DSPy sandbox configuration. Consider running agents in an isolated container without access to sensitive files.
Other vulnerabilities in DSPy
Original NVD description (English source)
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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

