{"data":{"id":"b6d1091b-f7a7-4587-a962-1417cbf3f629","title":"GHSA-g2j9-7rj2-gm6c: Langflow has an Arbitrary File Write (RCE) via v2 API","summary":"Langflow's file upload endpoint (POST /api/v2/files/) is vulnerable to arbitrary file write (a type of attack that lets attackers save files anywhere on a server) because it doesn't properly validate filenames from multipart requests. Attackers who are logged in can use directory traversal characters (like \"../\") in filenames to write files outside the intended directory, potentially achieving RCE (remote code execution, where attackers can run commands on the server).","solution":"The source recommends two fixes: (1) Sanitize the multipart filename by extracting only the file name component and rejecting names containing \"..\": `new_filename = StdPath(file.filename or \"\").name` and add validation to reject invalid names. (2) Add a canonical path containment check inside `LocalStorageService.save_file` using `resolve().is_relative_to(base_dir)` to ensure files are always saved within the intended base directory.","labels":["security"],"sourceUrl":"https://github.com/advisories/GHSA-g2j9-7rj2-gm6c","publishedAt":"2026-03-19T17:46:43.000Z","cveId":"CVE-2026-33309","cweIds":null,"cvssScore":null,"cvssSeverity":"critical","severity":"critical","attackType":["supply_chain"],"issueType":"vulnerability","affectedPackages":["langflow@>= 1.2.0, <= 1.8.1 (fixed: 1.9.0)"],"affectedVendors":["LangChain"],"affectedVendorsRaw":["Langflow"],"classifierModel":"claude-haiku-4-5-20251001","classifierPromptVersion":"v3","cvssVector":null,"attackVector":null,"attackComplexity":null,"privilegesRequired":null,"userInteraction":null,"exploitMaturity":"unknown","epssScore":0,"patchAvailable":true,"disclosureDate":"2026-03-19T17:46:43.000Z","capecIds":null,"crossRefCount":0,"attackSophistication":"moderate","impactType":["integrity","availability","confidentiality"],"aiComponentTargeted":"api","llmSpecific":false,"classifierConfidence":0.95,"researchCategory":null,"atlasIds":["AML.T0010"]}}