{"id":"CVE-2025-12695","state":"PUBLISHED","title":"Insecure configuration in DSPy lead to arbitrary file read when running untrusted code inside the sandbox","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.","publishedAt":"2025-11-04T13:24:42.358Z","updatedAt":"2025-11-04T14:19:33.945Z","severity":{"score":5.9,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"JFROG"},"assigner":"JFROG","products":["dspy"],"affected":[{"packageName":"dspy","versions":[{"version":"0","status":"affected","versionType":"python"}],"collectionURL":"https://pypi.org/project/pip"}],"references":["https://research.jfrog.com/vulnerabilities/dspy-sandbox-escape-arbitrary-file-read-jfsa-2025-001495652/"],"weaknesses":["CWE-653"],"ingestedAt":"2026-10-29T20:08:31.050Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/12xxx/CVE-2025-12695.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-12695","state":"PUBLISHED","datePublished":"2025-11-04T13:24:42.358Z","dateUpdated":"2025-11-04T14:19:33.945Z","assignerShortName":"JFROG","assignerOrgId":"48a46f29-ae42-4e1d-90dd-c1676c1e5e6d","dateReserved":"2025-11-04T13:05:46.639Z"},"containers":{"cna":{"title":"Insecure configuration in DSPy lead to arbitrary file read when running untrusted code inside the sandbox","descriptions":[{"lang":"en","value":"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":[{"packageName":"dspy","versions":[{"version":"0","status":"affected","versionType":"python"}],"collectionURL":"https://pypi.org/project/pip"}],"references":[{"url":"https://research.jfrog.com/vulnerabilities/dspy-sandbox-escape-arbitrary-file-read-jfsa-2025-001495652/","tags":["third-party-advisory"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.9,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-653","description":"CWE-653 Improper Isolation or Compartmentalization","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"JFROG","orgId":"48a46f29-ae42-4e1d-90dd-c1676c1e5e6d","dateUpdated":"2025-11-04T13:24:42.358Z"},"source":{"discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-11-04T14:19:21.124251Z","id":"CVE-2025-12695","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-11-04T14:19:33.945Z"}}]}}}