Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. langflow
  4. ›
  5. CVE-2025-3248

CVE-2025-3248: Langflow Vulnerable to Code Injection via the `/api/v1/validate/code` endpoint

April 7, 2025 (updated April 10, 2025)

Langflow versions prior to 1.3.0 are susceptible to code injection in the /api/v1/validate/code endpoint. A remote and unauthenticated attacker can send crafted HTTP requests to execute arbitrary code.

References

  • github.com/advisories/GHSA-c995-4fw3-j39m
  • github.com/langflow-ai/langflow
  • github.com/langflow-ai/langflow/pull/6911
  • github.com/langflow-ai/langflow/releases/tag/1.3.0
  • nvd.nist.gov/vuln/detail/CVE-2025-3248
  • www.horizon3.ai/attack-research/disclosures/unsafe-at-any-speed-abusing-python-exec-for-unauth-rce-in-langflow-ai

Code Behaviors & Features

Detect and mitigate CVE-2025-3248 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.3.0

Fixed versions

  • 1.3.0

Solution

Upgrade to version 1.3.0 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-306: Missing Authentication for Critical Function
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/langflow/CVE-2025-3248.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:23 +0000.