Browse / AI Framework and Platform Flaws / CVE-2025-68478
External Control of File Name or Path in Langflow
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Path traversal and file access
- Affected
- langflow (PyPI)
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
- EPSS
- 5.8% chance of exploitation in 30 days
How it works, in short
An authenticated user can set an arbitrary fs_path in a flow request, so the server writes the flow JSON to any file path. (Our summary, written by a model. The source text is below.)
Details
Vulnerability Overview
If an arbitrary path is specified in the request body's fs_path, the server serializes the Flow object into JSON and creates/overwrites a file at that path. There is no path restriction, normalization, or allowed directory enforcement, so absolute paths (e.g., /etc/poc.txt) are interpreted as is.
Vulnerable Code
- It receives the request body (flow), updates the DB, and then passes it to the file-writing sink.
- https://github.com/langflow-ai/langflow/blob/ac6e2d2eabeee28085f2739d79f7ce4205ca082c/src/backend/base/langflow/api/v1/flows.py#L154-L168