llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · openclaw

GHSA-65RX-FVH6-R4H2

Shell command injection in exec allowlist mode via unquoted heredoc expansion

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -2 d de la divulgación
Exposición273 dDesde la divulgación, 21 feb 2026, 1:16 p. m.
Detección271 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de la severidad declarada por GHSA (alta) y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Medio riesgo, cero excusas.Las PoC crecen rápido, como las llamas bebé.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 2026.2.19
Monitoreo
Detectada +1
19 feb 26
21 feb 26
19 nov 26
21 nov 26
19 feb 26
29 abr 26
7 jul 26
14 sept 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 2026.2.19 openclaw · -2 d desde divulgación
Divulgación Publicada GHSA-65RX-FVH6-R4H2 divulgada
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

OpenClaw's shell allowlist analyzer allowed unquoted heredoc bodies to bypass token checks. In unquoted heredocs, the shell evaluates expansion tokens such as `$(...)`, `${...}`, and backticks, which could execute unexpected commands while still passing allowlist analysis.

Deployment Scope

This issue does not affect standard/default installs.

  • Default exec policy is `tools.exec.security=deny`.
  • The vulnerable path requires exec to be enabled in `security=allowlist` mode.

Impact

In deployments using `security=allowlist`, an allowlisted binary invocation could carry an unquoted heredoc body that performs command/variable expansion at execution time.

Affected Packages / Versions

  • Package: `openclaw` (npm)
  • Latest published vulnerable version: `2026.2.19-2`
  • Affected range: `<= 2026.2.19-2`
  • Planned patched version: `>= 2026.2.21`

Technical Details

The parser in `src/infra/exec-approvals-analysis.ts` accepted heredoc syntax but previously skipped expansion-token enforcement for unquoted heredoc body lines. The gateway allowlist path then executed shell commands via `-c`, enabling shell expansion behavior.

Fixes now:

  • track quoted/unquoted heredoc delimiters
  • reject unquoted heredoc expansion tokens in body lines
  • reject unterminated heredocs to avoid parser/runtime divergence
  • require explicit approval for allowlisted heredoc execution on gateway hosts as additional defense-in-depth

Fix Commit(s)

  • `92cada2acad80b05e3d2f89913d4a7ed5fd43499`
  • `f23da067f67e81af0e6817984ec650f1712a61f8`

Release Process Note

`patched_versions` is pre-set to the planned next release (`>= 2026.2.21`). After npm release is out, publish the advisory without further content edits.

Thanks @torturado for reporting.

Versiones

Rangos afectados

Afectada Corregida Última
openclaw≤ 2026.2.19-2
2026.2.19-2
2026.11.3
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npmopenclaw
Corregida 2026.2.19 -2 d 2026.11.3 no afectada
Versiones corregidas2026.2.19
Explotación

Arsenal público

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

Referencias
Advisoryhttps://github.com/openclaw/openclaw/security/advisories/GHSA-65rx-fvh6-r4h2

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