GHSA-5h3g-6xhh-rg6p

Suggest an improvement
Source
https://github.com/advisories/GHSA-5h3g-6xhh-rg6p
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-5h3g-6xhh-rg6p/GHSA-5h3g-6xhh-rg6p.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5h3g-6xhh-rg6p
Downstream
Published
2026-05-04T21:07:36Z
Modified
2026-05-05T16:12:39.591964Z
Severity
  • 6.8 (Medium) CVSS_V4 - CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N CVSS Calculator
Summary
OpenClaw: OpenShell FS bridge reads pin and verify the opened file before returning bytes
Details

Summary

OpenShell FS bridge reads pin and verify the opened file before returning bytes

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected versions: <= 2026.4.21
  • Fixed version: 2026.4.22

Impact

A time-of-check/time-of-use race around OpenShell sandbox filesystem reads could let a symlink swap cause bytes outside the intended mount root to be read.

Fix

OpenShell reads now open the file with no-follow semantics where available, validate the pinned file descriptor against the canonical mount root, reject unsafe hardlink/symlink cases, and use a strict fallback ancestor walk on platforms without fd-path readback.

Fix Commit(s)

  • 95119017c847c737bd113f0bff728c4666d79c45

Verification

  • The fix commit is contained in the public v2026.4.22 tag.
  • openclaw@2026.4.22 is published on npm and the compiled package contains the fix.
  • Focused regression coverage for this path passed before publication.

OpenClaw thanks @VladimirEliTokarev for reporting.

Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2026-05-04T21:07:36Z",
    "cwe_ids": [
        "CWE-367"
    ],
    "severity": "MODERATE",
    "nvd_published_at": null
}
References

Affected packages

npm / openclaw

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2026.4.22

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-5h3g-6xhh-rg6p/GHSA-5h3g-6xhh-rg6p.json"
last_known_affected_version_range
"<= 2026.4.21"