{"id":"CVE-2026-63478","aliases":["GHSA-cw2g-2vwq-88w6"],"summary":"isomorphic-git: Path traversal via a \"..\" tree-entry name writes files outside the working directory on clone/checkout","published_at":"2026-11-03T19:39:52.188Z","modified_at":"2026-11-09T20:30:04.1087Z","products":[],"rating":{"severity":"medium","score":5.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","attack_path":"internet_unauthenticated","user_interaction":true,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.002950000111013651,"percentile":0.22585000097751617,"date":"2026-11-19T00:00:00Z"},"priority":6.8,"details":"isomorphic-git is a pure JavaScript implementation of Git for Node.js and browsers. Prior to 1.38.6, isomorphic-git's tree parser in src/models/GitTree.js accepts a standalone .. tree-entry name because it rejects only path separators. During clone or checkout from a malicious or man-in-the-middle-controlled non-GitHub remote, nested .. entries can escape the working-tree root and write files at attacker-selected parent paths on any host-backed fs provider. The arbitrary file write can overwrite startup or configuration files and lead to code execution. GitHub-hosted trees are not a direct source because GitHub rejects .. entries during repository integrity checks. This issue is fixed in version 1.38.6.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"isomorphic-git/isomorphic-git","versions":["< 1.38.6"],"provider":"cvelistv5","source":"CVE-2026-63478","relation":"self"},{"ecosystem":"npm","package":"isomorphic-git","purl":"pkg:npm/isomorphic-git","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.38.6"}]}],"fixed":["1.38.6"],"provider":"osv","source":"GHSA-cw2g-2vwq-88w6","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"OpenShift Serverless","cpe":"cpe:/a:redhat:serverless:1","status":"affected","packages":["openshift-serverless-1/logic-rhel9-operator"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-63478"},{"vendor":"Red Hat","product":"Red Hat Developer Hub 1","cpe":"cpe:/a:redhat:rhdh:1","status":"affected","packages":["rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend","rhdh/red-hat-developer-hub-backstage-plugin-scaffolder-backend-module-orchestrator","rhdh/rhdh-hub-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-63478"},{"vendor":"Red Hat","product":"Self-service automation portal 2","cpe":"cpe:/a:redhat:ansible_portal:2","status":"affected","packages":["ansible-automation-platform/automation-portal","ansible-automation-platform/bootc-automation-portal-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-63478"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-63478","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-63478","license":"CC-BY-4.0","published_at":"2026-11-03T19:39:52.188Z","modified_at":"2026-11-07T03:26:53.194Z","summary":"isomorphic-git: Path traversal via a \"..\" tree-entry name writes files outside the working directory on clone/checkout","details":"isomorphic-git is a pure JavaScript implementation of Git for Node.js and browsers. Prior to 1.38.6, isomorphic-git's tree parser in src/models/GitTree.js accepts a standalone .. tree-entry name because it rejects only path separators. During clone or checkout from a malicious or man-in-the-middle-controlled non-GitHub remote, nested .. entries can escape the working-tree root and write files at attacker-selected parent paths on any host-backed fs provider. The arbitrary file write can overwrite startup or configuration files and lead to code execution. GitHub-hosted trees are not a direct source because GitHub rejects .. entries during repository integrity checks. This issue is fixed in version 1.38.6.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","source":"CVE-2026-63478"}],"affected":[{"ecosystem":"CVE","package":"isomorphic-git/isomorphic-git","versions":["< 1.38.6"],"provider":"cvelistv5","source":"CVE-2026-63478","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/isomorphic-git/isomorphic-git/security/advisories/GHSA-cw2g-2vwq-88w6"},{"type":"WEB","url":"https://github.com/isomorphic-git/isomorphic-git/pull/2370"},{"type":"WEB","url":"https://github.com/isomorphic-git/isomorphic-git/commit/823843d1cd19182df79bc907c767f5bcecb39a0b"},{"type":"WEB","url":"https://github.com/isomorphic-git/isomorphic-git/releases/tag/v1.38.6"}]},{"provider":"osv","source_id":"GHSA-cw2g-2vwq-88w6","relation":"self","url":"https://osv.dev/vulnerability/GHSA-cw2g-2vwq-88w6","license":"CC-BY-4.0","published_at":"2026-11-09T20:13:52Z","modified_at":"2026-11-09T20:30:04.1087Z","summary":"isomorphic-git: Path traversal via a \"..\" tree-entry name writes files outside the working directory on clone/checkout","details":"### Summary\nisomorphic-git's tree parser (`src/models/GitTree.js`) validates each entry name only against the path separators `/` and `\\`. It does not reject the standalone reserved name `..`, so a malicious repository can, on a single `clone`/`checkout`, **write files outside the working\ndirectory** (unbounded depth). Works on any host-backed `fs` provider.\n\n### Details\nThe guard is:\n\n```js\n// src/models/GitTree.js\nif (path.includes('\\\\') || path.includes('/')) {\n  throw new UnsafeFilepathError(path)\n}\n```\n\nThe standalone string `..` passes. isomorphic-git assembles the full path incrementally across tree levels, so nesting `..` trees yields `../escaped.txt`, `../../escaped.txt`, … with unbounded depth (each level is a separate tree object that passes the per-entry guard). On checkout `mkdir(workdir/..)` hits `EEXIST` (ignored) and the file is written above the working directory. Depth is chosen to reach the home dir, `/etc`, `/tmp`, etc.; overwriting a shell rc / config / startup file can escalate to code execution.\n\n#### Canonical git behavior (divergence)\ngit rejects this via `verify_path()`: `git read-tree` fails with `error: invalid path '../escaped.txt'` and `git fsck` flags `warning … hasDotdot: contains '..'`. (git's `verify_path` also rejects `.` and `.git`, the latter flagged by fsck as `hasDotgit` — see the fix note below.) GitHub runs fsck on push, so such a tree can't be hosted there; reach is limited to a self-hosted/Smart-HTTP remote or a MitM.\n\n\n### PoC\n`https://github.com/spiceoverflow/av2-dotdot-traversal` — open in a Codespace; a single `git.clone()` from the bundled server writes `escaped.txt` one directory above the clone target (`DEPTH=N` escapes N levels):\n\n```\n[AV-2] *** PATH TRAVERSAL CONFIRMED ***\n[AV-2] File written outside workdir: …/escaped.txt\n```\n\n### Impact\nA path-traversal arbitrary file write outside the working directory (CWE-22), triggered by a single clone/checkout; it can escalate to code execution by overwriting shell rc, config, or startup files.\n\nAny application or user that clones/checks out an untrusted (or compromised / MitM'd) repository with isomorphic-git on a host-backed filesystem (**Linux, macOS, or Windows** — no symlink or privilege required). Requires a non-GitHub remote (self-hosted / Smart-HTTP) or a MitM, since GitHub's fsck rejects trees containing `..`.\n\n### Suggested fix\nIn the tree parser, reject any entry name equal to `.` or `..`. For full `verify_path` parity it should **also** reject `.git` (case-insensitively, trailing dots/spaces stripped) and the NTFS 8.3 / HFS variants git blocks. Note: a literal `.git` entry is *not* independently exploitable via\n`clone`/`checkout` in current isomorphic-git — the checkout walk skips a `.git` tree entry (a sibling file is written but the `.git` entry is not), so rejecting `.git` is defense-in-depth / git parity rather than a separately demonstrated bug. Additionally, normalize and bounds-check the assembled full path against the working-tree root before any filesystem write.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","source":"GHSA-cw2g-2vwq-88w6"}],"affected":[{"ecosystem":"npm","package":"isomorphic-git","purl":"pkg:npm/isomorphic-git","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.38.6"}]}],"fixed":["1.38.6"],"provider":"osv","source":"GHSA-cw2g-2vwq-88w6","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/isomorphic-git/isomorphic-git/security/advisories/GHSA-cw2g-2vwq-88w6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63478"},{"type":"WEB","url":"https://github.com/isomorphic-git/isomorphic-git/pull/2370"},{"type":"WEB","url":"https://github.com/isomorphic-git/isomorphic-git/commit/823843d1cd19182df79bc907c767f5bcecb39a0b"},{"type":"PACKAGE","url":"https://github.com/isomorphic-git/isomorphic-git"},{"type":"WEB","url":"https://github.com/isomorphic-git/isomorphic-git/releases/tag/v1.38.6"}]},{"provider":"redhat-vex","source_id":"CVE-2026-63478","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-63478","license":"CC-BY-4.0","published_at":"2026-11-03T19:39:52.188Z","modified_at":"2026-11-05T08:03:09Z","summary":"isomorphic-git: isomorphic-git: Arbitrary file write via directory traversal","details":"A flaw was found in isomorphic-git. A remote attacker controlling a malicious repository or intercepting network traffic can exploit improper path validation during clone or checkout operations by supplying directory traversal sequences in repository tree entries. This issue allows the attacker to write arbitrary files outside the working directory on the host file system, which may lead to arbitrary code execution.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","source":"CVE-2026-63478"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-63478"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"OpenShift Serverless","cpe":"cpe:/a:redhat:serverless:1","status":"affected","packages":["openshift-serverless-1/logic-rhel9-operator"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-63478"},{"vendor":"Red Hat","product":"Red Hat Developer Hub 1","cpe":"cpe:/a:redhat:rhdh:1","status":"affected","packages":["rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend","rhdh/red-hat-developer-hub-backstage-plugin-scaffolder-backend-module-orchestrator","rhdh/rhdh-hub-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-63478"},{"vendor":"Red Hat","product":"Self-service automation portal 2","cpe":"cpe:/a:redhat:ansible_portal:2","status":"affected","packages":["ansible-automation-platform/automation-portal","ansible-automation-platform/bootc-automation-portal-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-63478"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-63478.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-63478"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2566217"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-63478"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63478"},{"type":"WEB","url":"https://github.com/isomorphic-git/isomorphic-git/commit/823843d1cd19182df79bc907c767f5bcecb39a0b"},{"type":"WEB","url":"https://github.com/isomorphic-git/isomorphic-git/pull/2370"},{"type":"WEB","url":"https://github.com/isomorphic-git/isomorphic-git/releases/tag/v1.38.6"},{"type":"WEB","url":"https://github.com/isomorphic-git/isomorphic-git/security/advisories/GHSA-cw2g-2vwq-88w6"}]}],"references":[{"type":"WEB","url":"https://github.com/isomorphic-git/isomorphic-git/security/advisories/GHSA-cw2g-2vwq-88w6"},{"type":"WEB","url":"https://github.com/isomorphic-git/isomorphic-git/pull/2370"},{"type":"WEB","url":"https://github.com/isomorphic-git/isomorphic-git/commit/823843d1cd19182df79bc907c767f5bcecb39a0b"},{"type":"WEB","url":"https://github.com/isomorphic-git/isomorphic-git/releases/tag/v1.38.6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63478"},{"type":"PACKAGE","url":"https://github.com/isomorphic-git/isomorphic-git"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-63478.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-63478"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2566217"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-63478"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-63478","url":"https://www.cve.org/CVERecord?id=CVE-2026-63478","license":"CC-BY-4.0","modified_at":"2026-11-07T03:26:53.194Z","relation":"self"},{"provider":"osv","source_id":"GHSA-cw2g-2vwq-88w6","url":"https://osv.dev/vulnerability/GHSA-cw2g-2vwq-88w6","license":"CC-BY-4.0","modified_at":"2026-11-09T20:30:04.1087Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-63478","url":"https://access.redhat.com/security/cve/CVE-2026-63478","license":"CC-BY-4.0","modified_at":"2026-11-05T08:03:09Z","relation":"self"}]}
