Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-72742: External Control of File Name or Path in Stanford NLP DSPy

0
Critical
VulnerabilityCVE-2026-72742cvecve-2026-72742
Published: 08/11/2026 (08/11/2026, 18:50:47 UTC)
Source: CVE Database V5
Vendor/Project: Stanford NLP
Product: DSPy

Description

DSPy 3.3.0b1 from Stanford NLP contains a critical file exfiltration vulnerability. Attackers who can influence language model outputs can inject filesystem paths into Image or Audio output fields, causing the software to read and base64-encode arbitrary local files. This data is then embedded into outgoing prompt messages sent to an attacker-controlled endpoint. The vulnerability arises from untrusted language model completions being parsed and validated, triggering file reads via os.path.isfile checks in image.py and audio.py.

CVSS v4.0

Score 9.2critical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
None
Subsq. Availability
None
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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/11/2026, 19:26:09 UTC

Technical Analysis

CVE-2026-72742 describes a critical vulnerability in Stanford NLP's DSPy 3.3.0b1 where the Image and Audio output field adapters improperly handle untrusted language model outputs. Specifically, the JSONAdapter and ChatAdapter parse these outputs through parse_value into TypeAdapter validation, which calls encode_image or encode_audio functions. These functions check if a given path is a file using os.path.isfile and then read and base64-encode the file contents. An attacker able to influence the language model output can inject arbitrary filesystem paths into the url field of Image or Audio typed outputs, causing local files to be read and exfiltrated within the outgoing prompt messages sent to the attacker-controlled model endpoint.

Potential Impact

This vulnerability allows remote attackers with the ability to influence language model outputs to read arbitrary local files on the system running DSPy 3.3.0b1. The attacker can exfiltrate sensitive data by embedding file contents into prompt messages sent to their controlled endpoint. The CVSS 4.0 score is 9.2 (critical), indicating a high-impact remote attack with no privileges or user interaction required and high confidentiality impact.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary mitigation is currently documented. Until a patch is available, restrict or monitor access to language model output influences and avoid running DSPy 3.3.0b1 in untrusted environments.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-08-10T13:53:42.482Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a7b7426bf8831d539468001

Added to database: 08/11/2026, 19:12:38 UTC

Last enriched: 08/11/2026, 19:26:09 UTC

Last updated: 08/11/2026, 19:34:59 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses