Baja

OpenClaw: TOCTOU read in exec script preflight

  • Publicada: 16.04.2026
  • Actualizado: 11.10.2026 10:22

Summary

OpenClaw's exec script preflight validator previously validated and then read a script by mutable pathname. A local race could swap the path between validation and read, causing preflight analysis to inspect a different file identity than the one that passed the workspace boundary check.

Affected Packages / Versions

  • Package: openclaw
  • Ecosystem: npm
  • Affected versions: < 2026.4.10
  • Patched versions: >= 2026.4.10

Impact

The impact is limited. This was not arbitrary full-file disclosure through the preflight error path. The validator only surfaced derived preflight content, such as a matched token, a line number, or the first non-empty JavaScript line in one branch. Exploitation also required the ability to mutate the relevant workspace path during the preflight window.

Still, this was a real TOCTOU boundary bug in code that is supposed to reason about workspace-local script files before execution. A file identity that passed the initial boundary validation could differ from the identity that was later read for preflight analysis.

Technical Details

The vulnerable flow performed separate path validation and file reads in validateScriptFileForShellBleed. Because the read was path-based, an attacker with write access to the workspace path could race replacement of the target after validation but before preflight read.

Fix

PR #62333 replaced the check-then-read flow with a pinned safe-open/read path using the shared readFileWithinRoot helper. The fixed path performs boundary verification around the opened file identity and avoids relying on a mutable pathname for the final preflight read. Regression tests cover both pre-open and post-open swap windows.

Fix Commit(s)

  • b024fae9e5df43e9b69b2daebb72be3469d52e91 (fix(exec): replace TOCTOU check-then-read with atomic pinned-fd open in script preflight [AI])
  • PR: #62333

Release Process Note

The fix first shipped in v2026.4.10. Users should upgrade to openclaw 2026.4.10 or newer; the latest npm release already includes the fix.

Credits

Thanks to @kikayli for reporting this issue.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Paquete de npm openclaw < 2026.4.10 2026.4.10

Referencias

Puntuación CVSS -
Vector CVSS
CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Debilidad (CWE)
CWE-367
Plataforma
npm
Paquete
openclaw
Publicada
16.04.2026
Actualizado
11.10.2026 10:22

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-gj9q-8w99-mp8j - CC BY 4.0

Historial de vulnerabilidades: openclaw

Todas las vulnerabilidades publicadas de este paquete (Paquete de npm), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Todas (589) en el archivo
Entradas en total
589
Primera → última
02.2026 10.2026
Sin corrección
9
Explotada en ataques
0

Distribución por gravedad

  • Crítica 20
  • Alta 215
  • Media 300
  • Baja 54

Divulgaciones por año

  1. 2026: 589
Gravedad:
  1. OpenClaw: TOCTOU read in exec script preflight esta entrada
    Baja CVE-2026-43529 < 2026.4.10 2026.4.10
  2. Alta · 8.8 CVE-2026-53811 < 2026.5.7 2026.5.7
  3. Alta · 8.8 CVE-2026-53806 < 2026.5.12 2026.5.12
  4. Alta · 7.8 CVE-2026-53813 < 2026.4.25 2026.4.25
  5. Alta · 7.5 CVE-2026-53834 < 2026.4.27 2026.4.27
  6. Crítica CVE-2026-34507 < 2026.4.29 2026.4.29
  7. Alta CVE-2026-53823 < 2026.5.3 2026.5.3
  8. Alta · 8.4 CVE-2026-53814 < 2026.5.20 2026.5.20
  9. Alta · 6.5 CVE-2026-53815 < 2026.5.19 2026.5.19
  10. Alta · 8.1 CVE-2026-53849 < 2026.5.7 2026.5.7
  11. Alta · 8.1 CVE-2026-53857 < 2026.5.3 2026.5.3
  12. Alta · 8.1 CVE-2026-53866 < 2026.5.12 2026.5.12
  13. Alta · 8.1 CVE-2026-53864 < 2026.5.26 2026.5.26
Mostrar más (20) Mostrando 41 de 236

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.