CVE-2024-37014 in langflow

LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.

What the vulnerability is

Langflow through 0.6.19 allows remote code execution if untrusted users are able to reach the "POST /api/v1/custom_component" endpoint and provide a Python script.

Affected software: langflow

Scores

What LogPulse has for it

How to mitigate it

Upgrade Langflow to 1.0.15 or later and require login

Patch or upgrade. Langflow through 0.6.19 runs the Python code of a component posted to /api/v1/custom_component for anyone who can reach it. Later releases require authentication; keep Langflow off the internet as well.

Applies to: Langflow through 0.6.19 (packages before 1.0.15) reachable by untrusted users

  1. Upgrade Langflow to the latest release (1.0.15 is the minimum fixed package).
  2. Set LANGFLOW_AUTO_LOGIN=false and create named users with LANGFLOW_SUPERUSER and LANGFLOW_SUPERUSER_PASSWORD.
  3. Put Langflow behind a VPN or a reverse proxy that only lets known users in.
  4. Rotate API keys stored in flows if the endpoint was reachable from the internet.

Sources:

Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.

We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.

Start free with LogPulse