{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"cvssV3_1": {"scope": "UNCHANGED", "version": "3.1", "baseScore": 8.8, "attackVector": "NETWORK", "baseSeverity": "HIGH", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "integrityImpact": "HIGH", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "HIGH", "privilegesRequired": "NONE", "confidentialityImpact": "HIGH"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"HIGH\"}"}}}], "affected": [{"vendor": "npm", "product": "isomorphic-git", "versions": [{"status": "affected", "version": "0", "lessThan": "1.38.7", "versionType": "semver"}], "defaultStatus": "unaffected"}], "references": [{"url": "https://github.com/isomorphic-git/isomorphic-git"}, {"url": "https://github.com/isomorphic-git/isomorphic-git/commit/e5dbec689fab148fd5b518f3d4958c9d728886f9"}, {"url": "https://github.com/isomorphic-git/isomorphic-git/pull/2376"}, {"url": "https://github.com/isomorphic-git/isomorphic-git/releases/tag/v1.38.7"}, {"url": "https://github.com/isomorphic-git/isomorphic-git/security/advisories/GHSA-6fxm-h49m-4fg3"}, {"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-77355"}], "descriptions": [{"lang": "en", "value": "## Summary\n\n`isomorphic-git@1.38.6` incompletely implements Git's reserved `.git` pathname validation. Its tree parser rejects literal and normalized `.git` names and selected NTFS 8.3 aliases, but it does not reject a colon after `.git`.\n\nOn Windows NTFS, the directory name:\n\n```text\n.git::$INDEX_ALLOCATION\n```\n\naliases the real `.git` directory. A repository containing that tree entry can therefore cause `clone()` or checkout to write attacker-controlled files into trusted repository metadata. In the demonstrated proof, the clone replaces the real `.git/config` and writes a batch file under the real `.git/hooks` directory. A subsequent ordinary native `git status` reads the poisoned `core.fsmonitor` value and executes the marker-only batch file.\n\nThe guaranteed vulnerability is the gitdir write during isomorphic-git checkout. The command-execution step is a follow-on action by native Git or another compatible tool; isomorphic-git does not itself execute the hook.\n\nThe crafted tree may be rejected by hosting platforms that enforce Git fsck's `hasDotgit` check. The PoC therefore uses a researcher-controlled loopback Smart HTTP remote. The realistic reach is an untrusted or compromised self-hosted remote, a permissive Git service, or a malicious object streamintroduced in transit—not necessarily a repository hosted on GitHub.com.\n\n## Affected product\n\n- Ecosystem: npm\n- Package: `isomorphic-git`\n- Affected version tested: `1.38.6`\n- Published package commit: `823843d1cd19182df79bc907c767f5bcecb39a0b`\n- npm tarball SHA-256:\n  `d2547d46c0a23ef9fc6fb2052e01ff78c348ceb92d394be05b146bc790943858`\n- Platform required for the alias: Windows on NTFS\n\nAt the time of validation on 2026-07-10, `1.38.6` was the latest published version.\n\n## Severity\n\n- An attacker can control the repository/object stream being cloned; the\n  supplied PoC uses self-hosted Smart HTTP because stricter hosting may reject\n  the malformed tree during fsck.\n- No privileges in the victim environment are required.\n- The victim or automation must clone/check out the repository, and command\n  execution requires a later compatible Git/tool action.\n- The demonstrated follow-on executes as the victim developer or CI identity.\n- Scope remains unchanged; the vulnerable workflow and impacted user account\n  are within the same security authority.\n\nA maintainer may choose to score only the guaranteed gitdir-write primitive lower. The report intentionally does not claim direct command execution inside isomorphic-git.\n\n## Root cause\n\n`src/models/GitTree.js` in `v1.38.6` normalizes entry names by removing selected HFS-ignorable characters, lowercasing, and stripping trailing dots/spaces. It then rejects:\n\n- path separators;\n- `.` and `..`;\n- normalized `.git`; and\n- selected `git~1` through `git~9` aliases.\n\nThe validation does not reject `.git:` or other colon-suffixed forms. The published code comments state that the checks mirror native Git's `is_ntfs_dotgit()` behavior, but native Git specifically treats NTFS alternate stream forms as unsafe.\n\nThe checkout leading-component hardening added in the same release checks for symbolic links. It does not stop an NTFS filesystem alias because the alias resolves as a directory, not a symlink.\n\n## Reproduction\n\n### Requirements\n\n- A disposable Windows VM using NTFS\n- Node.js 20 or newer\n- Git for Windows on `PATH`\n- No third-party target; the PoC serves only on `127.0.0.1`\n\n### Run\n\nFrom the extracted package directory in PowerShell:\n\n```powershell\ncd .\\poc\npowershell -ExecutionPolicy Bypass -File .\\run-poc.ps1\n```\n\nThe script performs four checks:\n\n1. Builds a bare repository containing the raw root-tree entry\n   `.git::$INDEX_ALLOCATION`.\n2. Serves it over loopback smart HTTP through `git http-backend`.\n3. Clones it with exact `isomorphic-git@1.38.6` and verifies that the real\n   `.git/config` and real `.git/hooks/vantix-fsmonitor.bat` are\n   attacker-controlled.\n4. Confirms the marker is absent, runs native `git status`, and verifies that\n   `VANTIX_MARKER.txt` is created. It also attempts a native Git clone of the\n   same ..."}, {"lang": "en", "value": "isomorphic-git: NTFS .git::$INDEX_ALLOCATION alias bypass writes into the active gitdir"}], "providerMetadata": {"orgId": "386269d4-a6c6-4eaa-bf8e-bc0b0d010558", "shortName": "npm", "dateUpdated": "2026-11-30T19:22:58Z", "x_subShortName": "npm"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV3_1": {"scope": "UNCHANGED", "version": "3.1", "baseScore": 8.8, "attackVector": "NETWORK", "baseSeverity": "HIGH", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "integrityImpact": "HIGH", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "HIGH", "privilegesRequired": "NONE", "confidentialityImpact": "HIGH"}}], "affected": [{"vendor": "unknown", "product": "unknown", "defaultStatus": "unknown"}], "references": [{"url": "https://github.com/isomorphic-git/isomorphic-git/commit/e5dbec689fab148fd5b518f3d4958c9d728886f9"}, {"url": "https://github.com/isomorphic-git/isomorphic-git/pull/2376"}, {"url": "https://github.com/isomorphic-git/isomorphic-git/releases/tag/v1.38.7"}, {"url": "https://github.com/isomorphic-git/isomorphic-git/security/advisories/GHSA-6fxm-h49m-4fg3"}], "descriptions": [{"lang": "en", "value": "isomorphic-git is a pure JavaScript implementation of Git for Node.js and browsers. Prior to 1.38.7, tree-entry validation in src/models/GitTree.js does not reject the Windows NTFS reserved pathname alias .git::$INDEX_ALLOCATION. When clone() or checkout materializes an attacker-controlled tree containing this alias on Windows using an NTFS filesystem, the alias resolves to the active .git directory and permits writes to trusted repository metadata instead of a normal worktree directory. A malicious repository or object stream can therefore poison repository configuration, hooks, refs, attributes, or other gitdir state. Strict hosting that rejects hasDotgit objects can block the crafted tree, and non-NTFS systems do not interpret the pathname as the active gitdir. isomorphic-git performs the gitdir write but does not itself execute the written hook or configuration; a later native Git or compatible-tool action, such as processing a poisoned core.fsmonitor value, can execute configured commands as the victim developer or CI identity. This issue is fixed in version 1.38.7."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-22", "description": "CWE-22"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "DISCARDED_CNA", "dateUpdated": "2026-11-20T19:18:54Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2026-77355", "state": "PUBLISHED", "dateUpdated": "2026-11-20T20:17:48Z", "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "datePublished": "2026-11-20T19:18:54Z", "assignerShortName": "GitHub_M"}, "dataVersion": "5.0"}