Niedrig

OpenClaw: TOCTOU read in exec script preflight

  • Veröffentlicht: 16.04.2026
  • Aktualisiert: 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.

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
npm-Paket openclaw < 2026.4.10 2026.4.10

Verweise

CVSS-Wert -
CVSS-Vektor
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
Schwäche (CWE)
CWE-367
Plattform
npm
Paket
openclaw
Veröffentlicht
16.04.2026
Aktualisiert
11.10.2026 10:22

Quellen und Lizenzen

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

Schwachstellenhistorie: openclaw

Alle veröffentlichten Schwachstellen dieses Pakets (npm-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Alle (588) im Archiv
Einträge insgesamt
588
Erste → letzte
02.2026 07.2026
Ohne Fix
9
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Kritisch 20
  • Hoch 215
  • Mittel 299
  • Niedrig 54

Veröffentlichungen pro Jahr

  1. 2026: 588
Schweregrad:
  1. Hoch · 8.8 CVE-2026-53811 < 2026.5.7 2026.5.7
  2. Hoch · 8.8 CVE-2026-53806 < 2026.5.12 2026.5.12
  3. Hoch · 7.8 CVE-2026-53813 < 2026.4.25 2026.4.25
  4. Hoch · 7.5 CVE-2026-53834 < 2026.4.27 2026.4.27
  5. Kritisch CVE-2026-34507 < 2026.4.29 2026.4.29
  6. Hoch CVE-2026-53823 < 2026.5.3 2026.5.3
  7. Hoch · 8.4 CVE-2026-53814 < 2026.5.20 2026.5.20
  8. Hoch · 6.5 CVE-2026-53815 < 2026.5.19 2026.5.19
  9. Hoch · 8.1 CVE-2026-53849 < 2026.5.7 2026.5.7
  10. Hoch · 8.1 CVE-2026-53857 < 2026.5.3 2026.5.3
  11. Hoch · 8.1 CVE-2026-53866 < 2026.5.12 2026.5.12
  12. Hoch · 8.1 CVE-2026-53864 < 2026.5.26 2026.5.26
  13. Kritisch · 9.8 CVE-2026-44109 < 2026.4.15 2026.4.15
  14. Kritisch · 8.1 CVE-2026-43585 < 2026.4.15 2026.4.15
  15. Hoch · 8.8 CVE-2026-43530 >= 2026.2.23, < 2026.4.12 2026.4.12
  16. Hoch · 8.8 CVE-2026-42434 >= 2026.4.5, < 2026.4.10 2026.4.10
  17. Hoch · 7.5 CVE-2026-42437 >= 2026.4.9, < 2026.4.10 2026.4.10
  18. OpenClaw: TOCTOU read in exec script preflight dieser Eintrag
    Niedrig CVE-2026-43529 < 2026.4.10 2026.4.10
Mehr anzeigen (20) 60 von 236 angezeigt

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.