Skip to content
CVE-2026-53998 Sumo Logic CSE · Sumo

Detect Arize Phoenix Format String Injection in applyChatTemplate (CVE-2026-53998) in Sumo Logic CSE

Detects exploitation and exposure of CVE-2026-53998, a CWE-134 format string injection in Arize Phoenix's applyChatTemplate functionality affecting arize-phoenix >= 13.0.0 and < 15.7.0 (CVSS 10.0, PoC public). Unsanitized user-controlled input flows into a Python format/template evaluation path, allowing attackers to read in-process memory, leak secrets (CWE-200), or crash the service. This detection surfaces vulnerable Phoenix deployments, suspicious format-specifier payloads sent to Phoenix HTTP endpoints, and Python exceptions/crashes indicative of injection attempts.

MITRE ATT&CK

Tactic
Initial Access Collection

Sumo Detection Query

Sumo Logic CSE (Sumo)
sql
// df00tech DF00-b7ac50596e · https://df00tech.com/detections/CVE-2026-53998 · licence: https://df00tech.com/detections/licence
_sourceCategory=*web* OR _sourceCategory=*proxy* OR _sourceCategory=*phoenix*
| parse regex "(?<method>\w+)\s+(?<url>\S+)" nodrop
| where url matches /.*(applyChatTemplate|\/v1\/chat|\/v1\/prompts|\/graphql).*/
| where _raw matches /.*(\{0\.__class__|__globals__|__builtins__|\{self\.|\{event\.|__mro__).*/
| count by src_ip, url
| sort by _count
critical severity medium confidence

Sumo Logic search for Phoenix endpoint requests carrying Python introspection/format payloads associated with CVE-2026-53998.

Data Sources

Web Server LogsProxy Logs

Required Tables

_sourceCategory=web_sourceCategory=proxy

False Positives & Tuning

  • Prompt templates with legitimate curly-brace placeholders
  • Scanner or pentest activity
  • Internal test traffic exercising template endpoints

Other platforms for CVE-2026-53998


Testing Methodology

Validate this detection against 3 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 further down this page.

  1. Test 1 Phoenix format-string payload via applyChatTemplate endpoint

    Expected signal: Web/proxy log entry for POST /v1/chat containing the {0.__class__...__globals__} payload; Phoenix application traceback for a format/template evaluation error.

  2. Test 2 Phoenix percent-format disclosure probe

    Expected signal: Access log entry for POST /v1/prompts carrying the %(__builtins__)s payload.

  3. Test 3 Vulnerable arize-phoenix version install and enumeration

    Expected signal: Process/package telemetry showing pip install of arize-phoenix 15.6.0 (within the vulnerable >=13.0.0,<15.7.0 range).


Response Playbook

Triage

  1. Confirm whether the targeted host runs arize-phoenix and identify its version: `pip show arize-phoenix` or inspect the container image. Versions >= 13.0.0 and < 15.7.0 are vulnerable.
  2. Review the flagged request payload for Python format-string / introspection tokens ({0.__class__}, __globals__, __builtins__, __mro__) sent to applyChatTemplate / chat / prompt endpoints.
  3. Determine whether the Phoenix instance is internet-exposed or reachable by untrusted users, since AV:N/PR:N makes unauthenticated remote exploitation feasible.
  4. Correlate the source IP against known scanners, CI/CD runners, and legitimate users to separate opportunistic probing from targeted exploitation.

Containment

  1. Upgrade arize-phoenix to 15.7.0 or later across all deployments; this is the authoritative fix (commit e7224a685589f2ffae1fefcc68ff210bd6ad28b8).
  2. If immediate patching is not possible, restrict network access to the Phoenix UI/API to trusted networks via firewall/WAF and block requests containing brace-based introspection payloads.
  3. Rotate any secrets (API keys, DB credentials, JWT secrets) reachable from the Phoenix process, as CWE-200 secret disclosure may have occurred.

Evidence Collection

  1. Capture full web/proxy/WAF logs for all requests to Phoenix endpoints from the suspect source, including request bodies and query strings.
  2. Collect Phoenix application logs and Python tracebacks showing format/template exceptions or unexpected object reprs around the event window.
  3. Preserve the Phoenix process memory/core dumps if a crash occurred, and snapshot the container/host for forensic analysis.

Escalation Criteria

  • !Escalate to incident response if payloads successfully returned object internals, secrets, or environment data in the HTTP response (confirmed data disclosure).
  • !Escalate if the vulnerable version is confirmed on an internet-exposed instance with evidence of repeated exploitation attempts from external sources.

Investigation Guide

Forensic Artifacts

  • >Web server / proxy / WAF access logs containing format-string payloads to Phoenix endpoints
  • >Phoenix application logs and Python tracebacks referencing str.format / template evaluation
  • >Installed arize-phoenix package version metadata (pip, requirements.txt, container manifests)

Tuning Guidance

Baseline legitimate prompt templates in your environment first, many Phoenix prompts legitimately contain single curly-brace placeholders like {question}. Tighten the regex to dunder/introspection tokens (__class__, __globals__, __builtins__, __mro__) and percent-format sequences rather than any brace to minimize false positives, and allowlist known internal scanner and CI source IPs.


Hunting Queries

Hunts for repeated format-string injection probes against Phoenix chat/prompt endpoints grouped by source IP.

Hunting — KQL
kql
// df00tech DF00-b7ac50596e · https://df00tech.com/detections/CVE-2026-53998 · licence: https://df00tech.com/detections/licence
union isfuzzy=true W3CIISLog, AppServiceHTTPLogs | extend u = coalesce(column_ifexists("csUriStem",""), column_ifexists("CsUriStem","")), q = coalesce(column_ifexists("csUriQuery",""), column_ifexists("CsUriQuery","")) | where u has_any ("applyChatTemplate","/v1/chat","/v1/prompts") | where q has_any ("__globals__","__class__","__builtins__","{self.") | summarize count() by tostring(column_ifexists("cIP","")), u
Hunting — SPL
spl
``` df00tech DF00-b7ac50596e · https://df00tech.com/detections/CVE-2026-53998 · licence: https://df00tech.com/detections/licence ```
index=* (uri="*applyChatTemplate*" OR uri="*/v1/chat*" OR uri="*/v1/prompts*") | regex _raw="__globals__|__class__|__builtins__|\{self\." | stats count by src_ip, uri

Atomic Red Team Tests

Test 1 Phoenix format-string payload via applyChatTemplate endpoint
linux

Sends a crafted chat-template request containing a Python format-string introspection payload to a lab Phoenix instance to trigger CVE-2026-53998.

Command

bash
curl -s -X POST http://127.0.0.1:6006/v1/chat -H 'Content-Type: application/json' -d '{"template":"{0.__class__.__init__.__globals__}","variables":{}}'

Cleanup

bash
echo 'No persistent artifacts created; stop/restart the lab Phoenix container if it crashed: docker restart phoenix-lab'

Expected Telemetry

Web/proxy log entry for POST /v1/chat containing the {0.__class__...__globals__} payload; Phoenix application traceback for a format/template evaluation error.

Expected Detection

KQL/SPL/EQL rules match the __globals__/__class__ format-string payload sent to the Phoenix chat endpoint.

Test 2 Phoenix percent-format disclosure probe
linux

Sends a percent-style format payload to the prompt endpoint to attempt secret disclosure (CWE-200).

Command

bash
curl -s -X POST http://127.0.0.1:6006/v1/prompts -H 'Content-Type: application/json' -d '{"template":"%(__builtins__)s","variables":{}}'

Cleanup

bash
echo 'No cleanup required; no files written.'

Expected Telemetry

Access log entry for POST /v1/prompts carrying the %(__builtins__)s payload.

Expected Detection

Detection rules match the %( / __builtins__ format-string markers against the Phoenix prompt endpoint.

Test 3 Vulnerable arize-phoenix version install and enumeration
linux

Installs a vulnerable Phoenix version in a lab venv to validate version-based exposure detection.

Command

bash
python3 -m venv /tmp/phx && /tmp/phx/bin/pip install 'arize-phoenix==15.6.0' && /tmp/phx/bin/pip show arize-phoenix

Cleanup

bash
rm -rf /tmp/phx

Expected Telemetry

Process/package telemetry showing pip install of arize-phoenix 15.6.0 (within the vulnerable >=13.0.0,<15.7.0 range).

Expected Detection

Software inventory / vulnerability management flags the installed arize-phoenix version as affected by CVE-2026-53998.

Related Detections