CVE-2026-72742: DSPy 3.3.0b1 Local File Read via Image/Audio Output Field Parsing
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 parsevalue into TypeAdapter validation, which triggers encodeimage or encodeaudio 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 Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-72742?
The severity of CVE-2026-72742 is rated high with a score of 8.6.
How do I fix CVE-2026-72742?
To fix CVE-2026-72742, update to the latest secure version of DSPy that addresses the file exfiltration vulnerability.
What type of vulnerability is CVE-2026-72742?
CVE-2026-72742 is a local file read vulnerability that allows attackers to exfiltrate local files.
Which software is affected by CVE-2026-72742?
The affected software for CVE-2026-72742 is DSPy version 3.3.0b1.
Can exploiting CVE-2026-72742 lead to data breaches?
Yes, exploiting CVE-2026-72742 can allow attackers to access arbitrary local files, potentially leading to data breaches.