{"id":"CVE-2025-12695","aliases":["CVE-2025-12695","GHSA-vvw2-h478-xwr3","PYSEC-2026-1318"],"related":[],"kind":"vulnerability","state":"published","title":"Insecure configuration in DSPy lead to arbitrary file read when running untrusted code inside the sandbox","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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”.","source":"nvd"}],"published":"2025-11-04T13:24:42.358Z","modified":"2026-11-05T14:10:00.273Z","severity":{"scorer":"JFROG","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"JFROG","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-653"],"affected":[{"ranges":[{"type":"python","version":"0","status":"affected"}],"package":"dspy","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"3.0.3"}],"ecosystem":"PyPI","package":"dspy","purl":"pkg:pypi/dspy","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"3.0.3"}],"ecosystem":"PyPI","package":"dspy","purl":"pkg:pypi/dspy","source":"pysec"}],"references":[{"url":"https://research.jfrog.com/vulnerabilities/dspy-sandbox-escape-arbitrary-file-read-jfsa-2025-001495652/","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-12695","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/stanfordnlp/dspy","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://research.jfrog.com/vulnerabilities/dspy-sandbox-escape-arbitrary-file-read-jfsa-2025-001495652","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/dspy","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-vvw2-h478-xwr3","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"JFROG","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-11-04T14:19:21.124Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-12695","url":"https://www.cve.org/CVERecord?id=CVE-2025-12695","licence":"CVE Terms of Use","modified":"2025-11-04T14:19:33.945Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vvw2-h478-xwr3","url":"https://github.com/advisories/GHSA-vvw2-h478-xwr3","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:24.503Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-12695","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-12695","licence":"Public domain","modified":"2026-11-05T14:10:00.273Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1318","url":"https://osv.dev/vulnerability/PYSEC-2026-1318","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:39.452Z"}],"updatedAt":"2026-11-25T22:59:07.201Z","epss":{"score":0.00338,"percentile":0.29192,"date":"2026-12-01T12:00:22.000Z"}}