Skip to content
MediumVulnerability

CVE-2025-12695: DSPy sandbox configuration allows arbitrary file read via PythonInterpreter

Identifier
CVE-2025-12695
Published
Record updated
View JSON
Affected
  • dspy <= 3.0.3
Fixed in
No fixed version was stated when the source was last read.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

CVE-2025-12695 is an overly permissive sandbox configuration in DSPy. It allows attackers to steal sensitive files when users build an AI agent that consumes user input and uses the "PythonInterpreter" class. The weakness is classified as CWE-653, Improper Isolation or Compartmentalization, and was reported by JFrog.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.