GHSA-p25h-9q54-ffvw

Suggest an improvement
Source
https://github.com/advisories/GHSA-p25h-9q54-ffvw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-p25h-9q54-ffvw/GHSA-p25h-9q54-ffvw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-p25h-9q54-ffvw
Aliases
Published
2026-03-02T22:40:57Z
Modified
2026-03-06T01:16:24.672336Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N CVSS Calculator
  • 8.3 (High) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
OpenClaw has Zip Slip path traversal in tar archive extraction
Details

Summary

OpenClaw versions before 2026.2.14 did not sufficiently validate TAR archive entry paths during extraction. A crafted archive could use path traversal sequences (for example ../../...) to write files outside the intended destination directory (Zip Slip).

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected: < 2026.2.14
  • Fixed: >= 2026.2.14

Details

The affected code path is extractArchive() in src/infra/archive.ts. Prior to 2026.2.14, TAR extraction used tar.x({ cwd: destDir }) without rejecting traversal and absolute entry paths.

This extraction is used by installation flows such as: - openclaw plugins install … - openclaw hooks install …

Impact

If a user installs an untrusted .tar / .tgz archive, an attacker can write files outside the extraction directory (within the permissions of the OpenClaw process). This can lead to configuration tampering and potentially code execution.

Mitigation

Upgrade to openclaw >= 2026.2.14. Avoid installing untrusted plugin/hook archives.

Fix Commit(s)

  • 3aa94afcfd12104c683c9cad81faf434d0dadf87

OpenClaw thanks @xuemian168 for reporting.

Database specific
{
    "nvd_published_at": "2026-03-05T22:16:17Z",
    "severity": "HIGH",
    "github_reviewed_at": "2026-03-02T22:40:57Z",
    "cwe_ids": [
        "CWE-22"
    ],
    "github_reviewed": true
}
References

Affected packages

npm / openclaw

Package

Affected ranges

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

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-p25h-9q54-ffvw/GHSA-p25h-9q54-ffvw.json"