Vulnerability · Published Aug 25, 2025 · Assigned by GitHub_M
CVE-2025-57760Langflow Vulnerable to Privilege Escalation via CLI Superuser Creation
High 8.8
In plain English
A high-severity privilege mismanagement in langflow from langflow-ai. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Langflow is a tool for building and deploying AI-powered agents and workflows. A privilege escalation vulnerability exists in Langflow containers where an authenticated user with RCE access can invoke the internal CLI command langflow superuser to create a new administrative user. This results in full superuser access, even if the user initially registered through the UI as a regular (non-admin) account. A patched version has not been made public at this time.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | langflow | 1.5.1 | GHSA-4gv9-mp8m-592r |
| PyPI | langflow | 1.5.0 | PYSEC-2025-243 |
| PyPI | langflow-base | 0.5.1 | GHSA-4gv9-mp8m-592r |
| PyPI | langflow-base | 0.5.1 | PYSEC-2026-1526 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| langflow-ai | langflow | <= 1.5.0 |
Weakness: CWE-269 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/langflow-ai/langflow/security/advisories/GHSA-4gv9-mp8m-592r x_refsource_CONFIRM
- https://github.com/langflow-ai/langflow/commit/c188ec113c9ca46154ad01d0eded1754cc6bef97 x_refsource_MISC
- http://github.com/langflow-ai/langflow/pull/9152 x_refsource_MISC