CVE-2025-12695

Insecure configuration in DSPy lead to arbitrary file read when running untrusted code inside the sandbox

Published Nov 4, 2025 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-vvw2-h478-xwr3 DSPy does not properly restrict file reads
History
Type Values Removed Values Added
First Time appeared Jfrog
Jfrog dspy
Vendors & Products Jfrog
Jfrog dspy
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Insecure configuration in DSPy lead to arbitrary file read when running untrusted code inside the sandbox
Weaknesses CWE-653
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
JFROG
Published
Updated
Nov 4, 2025, 2:19 PM
Reserved
Nov 4, 2025, 1:05 PM
Status
Deferred
Published
Nov 4, 2025, 2:15 PM
Modified
Nov 5, 2026, 2:10 PM