CVE-2026-54350 IBM QRadar · QRadar

Detect Budibase Anonymous NoSQL Operator Injection via Published-App Query Templates in IBM QRadar

CVE-2026-54350 is a critical (CVSS 10.0) NoSQL operator injection vulnerability in @budibase/server versions prior to 3.39.12. Unauthenticated attackers can inject MongoDB-style operators (e.g., $gt, $where, $regex) into published-app query templates, bypassing authentication and data access controls. Successful exploitation can lead to full database exfiltration, authentication bypass, and remote code execution via $where clauses. A public PoC is available.

MITRE ATT&CK

Tactic
Initial Access Credential Access Discovery Collection

QRadar Detection Query

IBM QRadar (QRadar)
sql
SELECT
  sourceip,
  starttime,
  "URL" as request_url,
  "UserAgent" as user_agent,
  REGEXP_EXTRACT("URL", '.*(\$(?:gt|gte|lt|lte|ne|in|nin|exists|where|regex|elemMatch|or|and|not|nor)).*') as nosql_operator,
  "BytesSent" as response_size,
  "ResponseCode" as http_status,
  CATEGORYNAME(category) as event_category,
  count(*) as event_count
FROM events
WHERE LOGSOURCETYPENAME(devicetype) IN ('Apache HTTP Server', 'NGINX', 'Microsoft IIS') 
  AND (
    "URL" IMATCHES '.*/(api/public/v1/queries|api/v1/queries|app/).*'
    OR PAYLOAD IMATCHES '.*(api/public/v1/queries|api/v1/queries).*'
  )
  AND (
    "URL" MATCHES '.*\$(gt|gte|lt|lte|ne|in|nin|exists|where|regex|elemMatch|or|and|not|nor).*'
    OR PAYLOAD MATCHES '.*\$(gt|gte|lt|lte|ne|in|nin|exists|where|regex|elemMatch|or|and|not|nor).*'
  )
  AND STARTTIME >= NOW() - 3600000
GROUP BY sourceip, starttime, request_url, user_agent, nosql_operator, response_size, http_status, event_category
ORDER BY event_count DESC
LAST 60 MINUTES
critical severity medium confidence

QRadar AQL query detecting NoSQL injection payloads in HTTP requests to Budibase query API paths. Correlates operator patterns in URLs and raw payloads across web server log sources.

Data Sources

QRadar Web Server Log SourcesNetwork ActivityApplication Logs

Required Tables

events

False Positives & Tuning

  • Legitimate complex API queries from Budibase front-end application that include filter operators
  • Data migration scripts passing MongoDB-style filter objects through the Budibase query API
  • Security scanner log sources that are already identified and allowlisted in QRadar

Other platforms for CVE-2026-54350


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 1Basic NoSQL Operator Injection via Budibase Published Query API

    Expected signal: HTTP POST request to /api/public/v1/queries/{id} with JSON body containing '$gt' operator visible in web proxy logs or network capture

  2. Test 2JavaScript Execution via $where NoSQL Operator (RCE Path)

    Expected signal: HTTP POST with '$where' string in request body; potentially elevated response time if JavaScript executes; MongoDB slow query log entry if profiling enabled

  3. Test 3Authentication Bypass via $ne Operator on User Collection Query

    Expected signal: POST request to Budibase query endpoint with $ne operators in both username and password fields; HTTP 200 response with user record(s) returned if vulnerable

  4. Test 4Data Exfiltration via $regex Operator Enumeration

    Expected signal: Series of POST requests to same Budibase query endpoint with varying $regex patterns; observable as repeated requests with incrementing operator values in proxy logs

Unlock Pro Content

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

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections