Skip to main content

Openclaw cli: OpenClaw has agent avatar symlink traversal in gateway session metadata

0
High
Published: 08/13/2026 (08/13/2026, 17:21:32 UTC)
Source: GCVE Database
Product: openclaw-cli

Description

OpenClaw CLI versions up to 2026.2.21-2 contain a symlink traversal vulnerability in the gateway session metadata handling. A crafted local avatar path can follow symlinks outside the agent workspace, allowing an attacker to read arbitrary local files and return their contents as base64 data URLs in gateway responses. This leads to local file disclosure within the gateway process context. A patch is planned in version 2026.2.22 to fix this issue.

CVSS v4.0

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Affected software

Homebrewmore threats →ghsa
openclaw-cli
pkg:brew/openclaw-cli
Affected versions
<2026.7.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/04/2026, 12:32:09 UTC

Technical Analysis

The OpenClaw CLI package (npm) has a symlink traversal vulnerability in the function resolveIdentityAvatarUrl within src/gateway/session-utils.ts. This flaw allows a crafted local avatar path to follow symlinks outside the intended agent workspace, causing arbitrary local files to be read and their contents returned as base64-encoded data URLs in gateway responses. The vulnerability affects versions introduced in 2026.1.21 and present in all published versions up to 2026.2.21-2. The planned fix involves resolving paths with realpath, enforcing containment within the workspace, opening files with O_NOFOLLOW, and verifying file identity to prevent race conditions. The fix commit is 3d0337504349954237d09e4d957df5cb844d5e77.

Potential Impact

This vulnerability allows an attacker with local access to cause the gateway process to read arbitrary files on the local filesystem by exploiting symlink traversal in avatar path resolution. The confidentiality impact is high due to local file disclosure. The exfiltration vector is through the agents.list interface, which returns the avatarUrl payload containing the base64-encoded file contents. There is no indication of privilege escalation or remote exploitation without local access.

Mitigation Recommendations

A patch is available and planned for OpenClaw CLI version 2026.2.22 that fixes the symlink traversal by enforcing realpath containment, using O_NOFOLLOW when opening files, and verifying file identity to prevent race conditions. Users should upgrade to version 2026.2.22 or later to remediate this vulnerability. Until patched, avoid using untrusted local avatar paths to prevent exploitation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
BREW-openclaw-cli-GHSA-9mph-4f7v-fmvh
Osv Schema Version
1.7.3
Ecosystems
["Homebrew"]
Cvss Version
4.0

Threat ID: 6ac2458712601ec6a3164093

Added to database: 10/04/2026, 12:24:39 UTC

Last enriched: 10/04/2026, 12:32:09 UTC

Last updated: 10/04/2026, 12:32:09 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses