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
- CVSS: 9.8 (critical)
- EPSS: 63.67% chance of exploitation in the next 30 days
- CISA KEV: Not listed
- Published: 2024-06-10
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): No
- Mitigation: Yes, see below
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
- Upgrade Langflow to the latest release (1.0.15 is the minimum fixed package).
- Set LANGFLOW_AUTO_LOGIN=false and create named users with LANGFLOW_SUPERUSER and LANGFLOW_SUPERUSER_PASSWORD.
- Put Langflow behind a VPN or a reverse proxy that only lets known users in.
- 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.