NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-28459: OpenClaw has an arbitrary transcript path file write via gateway sessionFile

highCVSS 4.0 7.1 · 3.1 7.1GHSA-64qx-vpxx-mvqf

Before 2026.2.12, the OpenClaw gateway accepted an untrusted `sessionFile` path when it resolved the session transcript file. An authenticated gateway client could make it create files and append transcript records at any path the gateway can write. The advisory names corruption of configuration and denial of service as outcomes. Upgrade `openclaw` to 2026.2.12 or later; 2026.2.13 is recommended.

Published Feb 17, 2026 · Updated Mar 6, 2026 · Analysis Nov 1, 2026

What an attacker can do

The gateway keeps each session's transcript in a file in its sessions directory. In affected versions, a client could pass its own sessionFile value, and the gateway used it without checking that the path stayed inside that directory. The gateway then created the file if needed and appended transcript records to it.

The attacker must be an authenticated gateway client (CVSS PR:L). With that access, they choose where the gateway writes. Depending on the deployment and the file permissions of the gateway user, they can create files in places like the config directory or append repeatedly to existing files. Appending transcript lines to a configuration file corrupts it, and corrupting files the service needs can stop it.

The advisory says plainly that the issue does not by itself give a proven remote code execution path. The content written is OpenClaw transcript data, not attacker-chosen bytes, which limits direct abuse. Integrity impact is rated low and availability impact high.

Who is affected

The npm package openclaw below 2026.2.12. The advisory recommends 2026.2.13 or later. The attack path needs a client that can authenticate to the gateway. Gateways that hand out client access to semi-trusted users or devices carry the most risk.

npm ls -g openclaw
openclaw --version

openclaw

Ecosystem
npm
Affected
< 2026.2.12
Fixed in
2026.2.12
Check
npm ls openclaw

How to fix it

Upgrade to 2026.2.12 or later; the advisory recommends 2026.2.13 or later.

npm install -g [email protected]

The fix limits the transcript path to the sessions directory with containment checks in resolveSessionFilePath(...). Two commits carry it: 4199f988, and a compatibility commit, 25950bcb. The advisory lists no workaround, so upgrade, and limit gateway access to clients you trust in the meantime.

How to tell if you were hit

Look for files outside the OpenClaw sessions directory that contain OpenClaw transcript lines, and for new files in unexpected directories owned by the gateway user. Check gateway logs and request records for client calls that set sessionFile to an absolute path or one with .. segments. Check configuration files for appended JSON lines, and review gateway crashes or restarts that started after config changes.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

In OpenClaw versions prior to 2026.2.12, the gateway accepted an untrusted sessionFile path when resolving the session transcript file. This could allow an authenticated gateway client to create and append OpenClaw session transcript records at an arbitrary path on the gateway host.

Affected Versions

  • Affected: openclaw < 2026.2.12
  • Patched: openclaw >= 2026.2.12 (recommended: >= 2026.2.13)

Impact

An authenticated gateway client could influence where the gateway writes transcript data by supplying sessionFile outside of the sessions directory. Depending on deployment and filesystem permissions, this may enable arbitrary file creation and repeated appends, leading to configuration corruption and/or denial of service.

This issue does not, by itself, provide a proven remote code execution path.

Fix

The transcript path is now constrained to the sessions directory via resolveSessionFilePath(...) containment checks.

Fix commits:

  • 4199f9889f0c307b77096a229b9e085b8d856c26
  • (compat) 25950bcbb8ba4d8cde002557f6e27c219ae4deda

Credits

Thanks to @tubadeligoz for the report.

Credited to tubadeligoz.

Questions

Does CVE-2026-28459 give remote code execution?

The advisory says it does not by itself provide a proven path to code execution. It allows file creation and repeated appends of transcript data, which can corrupt configuration or cause denial of service.

Who can exploit it?

An authenticated gateway client. The CVSS vector requires low privileges and no user interaction.

Which version should I install?

2026.2.12 is the first patched release. The advisory recommends 2026.2.13 or later.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More OpenClaw vulnerabilities

All OpenClaw entries