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-5027: CWE-22 Improper Limitation of a Pathname to a Restricted Directory in langflow-ai langflow

0
High
VulnerabilityCVE-2026-5027cvecve-2026-5027cwe-22
Published: Fri Mar 27 2026 (03/27/2026, 14:54:53 UTC)
Source: CVE Database V5
Vendor/Project: langflow-ai
Product: langflow

Description

CVE-2026-5027 is a high-severity path traversal vulnerability in langflow-ai's langflow product affecting version 0. The vulnerability exists in the 'POST /api/v2/files' endpoint, which fails to properly sanitize the 'filename' parameter in multipart form data. This allows an attacker with limited privileges to write files to arbitrary locations on the filesystem by using '.. /' sequences in the filename. Exploitation requires no user interaction but does require some level of privileges (PR:L). The vulnerability impacts confidentiality, integrity, and availability, as arbitrary file writes can lead to code execution, data corruption, or system compromise. No known exploits are currently reported in the wild. Organizations using langflow should urgently apply patches or implement mitigations to prevent exploitation. Countries with significant use of langflow, especially in AI research and development sectors, are at higher risk.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/27/2026, 15:29:47 UTC

Technical Analysis

CVE-2026-5027 is a critical path traversal vulnerability classified under CWE-22, affecting the langflow product by langflow-ai, specifically version 0. The vulnerability arises because the 'POST /api/v2/files' API endpoint does not properly sanitize the 'filename' parameter received via multipart form data. This lack of validation allows attackers to include path traversal sequences such as '../' in the filename, enabling them to write files outside the intended directory. Since the endpoint accepts file uploads, an attacker can craft a malicious request to place arbitrary files anywhere on the server's filesystem, potentially overwriting critical system or application files. The CVSS 3.1 score of 8.8 reflects the high impact on confidentiality, integrity, and availability, with network attack vector (AV:N), low attack complexity (AC:L), requiring privileges (PR:L), no user interaction (UI:N), and unchanged scope (S:U). The vulnerability could be exploited to deploy web shells, escalate privileges, or disrupt services. Although no public exploits are currently known, the severity and ease of exploitation make it a significant threat. The vulnerability was published on March 27, 2026, and no patches have been linked yet, indicating that users must be vigilant and apply mitigations promptly once available.

Potential Impact

The impact of CVE-2026-5027 is substantial for organizations using langflow, particularly those deploying it in production or sensitive environments. Successful exploitation allows attackers to write arbitrary files anywhere on the server, which can lead to remote code execution, data tampering, or denial of service. This compromises the confidentiality of sensitive data, the integrity of application and system files, and the availability of services. Attackers with limited privileges can escalate their control over the system, potentially pivoting within the network. The vulnerability poses a risk to AI development environments, research institutions, and enterprises relying on langflow for workflow automation or AI model management. The absence of known exploits in the wild currently reduces immediate risk but does not eliminate the threat, as attackers may develop exploits rapidly given the vulnerability's nature and severity.

Mitigation Recommendations

To mitigate CVE-2026-5027, organizations should immediately implement strict input validation and sanitization on the 'filename' parameter in the 'POST /api/v2/files' endpoint, ensuring that path traversal sequences such as '../' are detected and blocked. Employ allowlisting of acceptable filenames or enforce filename normalization to restrict file writes to designated directories. Until an official patch is released, consider deploying web application firewalls (WAFs) with custom rules to detect and block suspicious multipart requests containing path traversal patterns. Restrict file system permissions for the application process to the minimum necessary, preventing writes outside intended directories. Monitor logs for unusual file upload activities and conduct regular security audits of the langflow deployment. Additionally, isolate langflow instances in segmented network zones to limit potential lateral movement if compromised. Stay updated with vendor advisories and apply patches promptly once available.

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
tenable
Date Reserved
2026-03-27T14:51:30.515Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69c69ee73c064ed76fb956b7

Added to database: 3/27/2026, 3:14:47 PM

Last enriched: 3/27/2026, 3:29:47 PM

Last updated: 3/27/2026, 5:38:13 PM

Views: 5

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