# CVE-2026-72742: DSPy 3.3.0b1 Local File Read via Image/Audio Output Field Parsing

- Severity: Critical 9.2 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-08-11T18:50:47.811Z
- Modified: 2026-10-24T15:10:00.190Z
- Weaknesses: CWE-73
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Stanford NLP DSPy: up to 3.3.0b1

## Every score

- VulnCheck: CVSS:4.0 9.2 Critical `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: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`

## References

- <https://github.com/stanfordnlp/dspy> (product)
- <https://github.com/stanfordnlp/dspy/issues/10067> (issue-tracking)
- <https://github.com/stanfordnlp/dspy/commit/c69136b29aca4c00ca6da7667f7b80783188980e> (patch)
- <https://www.vulncheck.com/advisories/dspy-0b1-local-file-read-via-image-audio-output-field-parsing> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-72742](https://www.cve.org/CVERecord?id=CVE-2026-72742), CVE Terms of Use, modified 2026-08-12
- NVD: [CVE-2026-72742](https://nvd.nist.gov/vuln/detail/CVE-2026-72742), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-72742 · Whole record: https://cve.day/CVE-2026-72742.json · Rebuilt by cve.day 2026-11-25T22:59:32.501Z
