CVE-2025-34291 IBM QRadar · QRadar

Detect CVE-2025-34291: Langflow Origin Validation Error Exploitation in IBM QRadar

Detects exploitation of CVE-2025-34291, an origin validation error (CWE-346) in Langflow that allows attackers to bypass origin checks. This vulnerability is actively exploited in the wild (CISA KEV) and may enable unauthorized access to Langflow API endpoints, flow execution, or administrative functions by bypassing cross-origin restrictions.

MITRE ATT&CK

Tactic
Initial Access Privilege Escalation Lateral Movement

QRadar Detection Query

IBM QRadar (QRadar)
sql
SELECT
  sourceip,
  destinationip,
  URL,
  "HTTP Method" AS http_method,
  "HTTP Response Code" AS response_code,
  "HTTP Referer" AS referer,
  "HTTP User Agent" AS user_agent,
  COUNT(*) AS event_count,
  MIN(starttime) AS first_seen,
  MAX(starttime) AS last_seen
FROM events
WHERE
  LOGSOURCETYPENAME(devicetype) IN ('IBM Security Network IPS', 'Apache HTTP Server', 'Nginx', 'Microsoft IIS')
  AND (
    URL LIKE '%/api/v1/%'
    OR URL LIKE '%/api/v2/%'
    OR URL LIKE '%/flows%'
    OR URL LIKE '%/run%'
    OR URL LIKE '%/build%'
  )
  AND "HTTP Method" IN ('POST', 'PUT', 'DELETE', 'PATCH')
  AND "HTTP Response Code" IN (200, 201, 202, 204)
  AND (
    "HTTP Referer" IS NULL
    OR "HTTP Referer" = ''
    OR "HTTP Referer" = 'null'
    OR ("HTTP Referer" NOT LIKE CONCAT('%', destinationip, '%')
        AND "HTTP Referer" NOT LIKE CONCAT('%', destinationhostname, '%'))
  )
  AND LOGSOURCENAME(logsourceid) ILIKE '%langflow%'
  AND starttime > NOW() - 86400000
GROUP BY sourceip, destinationip, URL, http_method, response_code, referer, user_agent
HAVING COUNT(*) >= 3
ORDER BY event_count DESC
high severity medium confidence

QRadar AQL query to identify potential CVE-2025-34291 exploitation through detection of repeated state-changing API requests to Langflow with missing or cross-origin Referer headers.

Data Sources

Apache HTTP ServerNginxMicrosoft IISIBM Security Network IPS

Required Tables

events

False Positives & Tuning

  • Backend automation scripts and orchestration tools interfacing directly with Langflow API
  • Load balancer health checks making HTTP POST requests without standard browser headers
  • Development environments where team members use direct API access tools
  • Third-party integrations that legitimately call Langflow without Origin/Referer propagation

Other platforms for CVE-2025-34291


Testing Methodology

Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1CVE-2025-34291 - Missing Origin Header Flow Execution

    Expected signal: Web server access log entry with POST to /api/v1/run/FLOW_ID, empty Referer field, HTTP 200 response code, source IP of test machine

  2. Test 2CVE-2025-34291 - Null Origin Header Bypass Attempt

    Expected signal: Web server log showing POST to /api/v1/flows with Origin: null and Referer: null headers, response code 200 or 201

  3. Test 3CVE-2025-34291 - Cross-Origin Mismatch API Access

    Expected signal: Web server log entry with POST to /api/v1/build/ path, Origin and Referer headers showing external domain not matching Langflow host, response code 200-204

  4. Test 4CVE-2025-34291 - Automated Flow Enumeration Without Origin

    Expected signal: Multiple GET requests to Langflow API endpoints within short timeframe from same source IP, all with empty Referer, varying response codes depending on authentication state

Unlock Pro Content

Get the full detection package for CVE-2025-34291 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections