9.2critical
DSPy 3.3.0b1 Local File Read via Image/Audio Output Field Parsing
- Severity
- 9.2critical CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.37% (higher than 33% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
DSPy 3.3.0b1 contains a file exfiltration vulnerability in the Image and Audio output field adapters that allows attackers with influence over language model outputs to read arbitrary local files by injecting a filesystem path into the url field of a parsed Image or Audio typed output. The JSONAdapter and ChatAdapter parse untrusted language model completions through parse_value into TypeAdapter validation, which triggers encode_image or encode_audio to read and base64-encode any local file path via the os.path.isfile branch in image.py and audio.py, subsequently embedding the file contents into outgoing prompt messages sent to the attacker-controlled model endpoint.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Stanford NLP DSPy | up to 3.3.0b1 | CVE List |
All scores
| VulnCheck | 9.2critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N |
| VulnCheck | 8.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
DSPy 3.3.0b1 contains a file exfiltration vulnerability in the Image and Audio output field adapters that allows attackers with influence over language model outputs to read arbitrary local files by injecting a filesystem path into the url field of a parsed Image or Audio typed output. The JSONAdapter and ChatAdapter parse untrusted language model completions through parse_value into TypeAdapter validation, which triggers encode_image or encode_audio to read and base64-encode any local file path via the os.path.isfile branch in image.py and audio.py, subsequently embedding the file contents into outgoing prompt messages sent to the attacker-controlled model endpoint.
NVD (es)
DSPy 3.3.0b1 contiene una vulnerabilidad de exfiltración de archivos en los adaptadores de campo de salida de Imagen y Audio que permite a los atacantes con influencia sobre las salidas del modelo de lenguaje leer archivos locales arbitrarios inyectando una ruta del sistema de archivos en el campo url de una salida tipada de Imagen o Audio analizada. El JSONAdapter y el ChatAdapter analizan las finalizaciones no confiables del modelo de lenguaje a través de parse_value en la validación de TypeAdapter, lo que activa encode_image o encode_audio para leer y codificar en base64 cualquier ruta de archivo local a través de la rama os.path.isfile en image.py y audio.py, incrustando posteriormente el contenido del archivo en los mensajes de prompt salientes enviados al endpoint del modelo controlado por el atacante.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-72742 changed 2026-08-12 | CVE Terms of Use |
| NVD | CVE-2026-72742 changed 2026-10-24 | Public domain |