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

CVE-2026-32061: OpenClaw vulnerable to arbitrary file read via $include directive

mediumCVSS 4.0 6.9 · 3.1 4.4GHSA-56pc-6hvp-4gv4

OpenClaw before 2026.2.17 resolved the config `$include` directive without keeping paths inside the config directory. Someone who can edit the config, or add symlinks in its directory, can read any file the OpenClaw user can read, such as API keys. Upgrade `openclaw` to 2026.2.17.

Published Mar 3, 2026 · Updated Mar 11, 2026 · Analysis Oct 31, 2026

What an attacker can do

A config file can pull in other files with $include. In affected versions that path was not confined to the config directory. The advisory lists three ways to abuse it:

  • Set $include to an absolute path such as /etc/passwd.
  • Use traversal paths such as ../../... to leave the config directory.
  • Create a symlink inside the config directory that points to an outside file, which works unless real-path checks are enforced.

The included file's content is read by the OpenClaw process, so anything that user can read is exposed, including API keys and private config material. The advisory states the scope is bounded by the file permissions of the OpenClaw runtime user. It is not an unauthenticated remote-only vector on its own. The attacker first needs write access to the OpenClaw config or the config directory. That is why CVSS 3.1 requires high privileges and scores 4.4, while the 4.0 vector with no privileges scores 6.9.

In a team setting the risk is a lower-trust path to the config, such as a shared config repository, a synced dotfiles folder, or an agent that can write files, turning into secret disclosure.

Who is affected

The openclaw npm package below 2026.2.17 (the advisory lists <=2026.2.15). The flaw is reachable only where an attacker can change the config or create symlinks in the config directory. Check the version:

npm ls openclaw
openclaw --version

Then review the config for $include entries and check the config directory for symlinks.

openclaw

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

How to fix it

Upgrade to 2026.2.17:

npm install -g [email protected]

The fix is commit d1c00dbb7c64a39e205464dae7f2a068420e91c1. The advisory says includes must stay within the config directory boundary and that real-path checks apply to symlinks. The sources name no workaround. Until you upgrade, restrict who can write the config and its directory.

How to tell if you were hit

Search config files for $include values that are absolute paths or contain ... Run find on the config directory for symlinks whose targets lie outside it. Check file-modification history of the config for changes you did not make. If a vulnerable version ran with a config you cannot vouch for, treat API keys and other secrets readable by the OpenClaw user as exposed and rotate them.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Vulnerability

Path traversal in config $include resolution allowed arbitrary local file reads outside the config directory boundary (CWE-22).

Attack Vectors

  1. If an attacker can modify OpenClaw config, they can set $include to absolute paths (for example /etc/passwd) and read files accessible to the OpenClaw process.
  2. If an attacker can modify OpenClaw config, they can use traversal paths (for example ../../...) to escape the config directory.
  3. If an attacker can create symlinks inside the config directory, they can point includes to external files unless real-path checks are enforced.
  4. Impact scope is bounded by the file permissions of the OpenClaw runtime user; this is not an unauthenticated remote-only vector by itself.

Impact

A successful exploit can expose local secrets and credentials readable by the OpenClaw process user, including API keys and private config material.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Vulnerable versions: <=2026.2.15
  • Patched versions: >=2026.2.17

Fix Commit(s)

  • d1c00dbb7c64a39e205464dae7f2a068420e91c1

Release Process Note

Patched version is pre-set to 2026.2.17. Once npm release 2026.2.17 is available, this advisory is ready to publish.

OpenClaw thanks @aether-ai-agent for reporting.

Credited to aether-ai-agent.

Questions

Can an unauthenticated remote attacker read files with CVE-2026-32061?

Not by itself. The advisory says the attacker needs to modify the OpenClaw config or create symlinks in the config directory. Reads are limited to files the OpenClaw process user can access.

Which OpenClaw version fixes it?

2026.2.17. The advisory lists versions up to 2026.2.15 as vulnerable.

What can be leaked?

Local secrets and credentials readable by the OpenClaw user, such as API keys and private config material, plus system files like /etc/passwd.

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