{"id":"GHSA-96wc-2m84-2cj7","revision":"ec671d1ca20f4a6086f0687fa4abe25e","records":[{"revision":"ec671d1ca20f4a6086f0687fa4abe25e","observedAt":"2026-11-09T21:02:27.814+00:00","statement":{"source":"osv","id":"GHSA-96wc-2m84-2cj7","aliases":["CVE-2026-63475"],"title":"isomorphic-git: Circular symbolic references cause non-terminating resolution (DoS)","description":"### Summary\nA malicious server can advertise circular `symref=` capabilities (e.g. `a → b` and `b → a`). isomorphic-git writes them to disk as loose symrefs, and `GitRefManager.resolve()` follows them with no depth limit and no cycle detection, so any later operation that resolves one of them (`log`, `status`, `checkout`, `branch`, …) **loops forever** — a persistent denial of service from a single clone.\n\n### Details\n`src/managers/GitRefManager.js` — `resolve()` only enforces a depth limit when a `depth` argument is passed (`depth = undefined` by default), and has no visited-set:\n\n```js\nstatic async resolve({ fs, gitdir, ref, depth = undefined }) {\n  if (depth !== undefined) { depth--; if (depth === -1) return ref }\n  …\n}\n```\n\n`updateRemoteRefs` persists all server-supplied symrefs unconditionally. After clone the client has `refs/remotes/origin/a → ref: refs/remotes/origin/b` and `b → a` on disk; resolving either never terminates. Because the bad refs live on disk, the repo is effectively bricked for the application.\n\n#### Canonical git behavior (divergence)\ngit caps symref resolution at `SYMREF_MAXDEPTH = 5` (refs.c): `git rev-parse a` returns immediately with `warning: ignoring dangling symref` — no recursion, no hang.\n\n### PoC\n`https://github.com/spiceoverflow/av5-circular-symref` — open in a Codespace; clone writes the circular symrefs, then `git.log` on one never returns (the runner stops it after a 20s hang):\n\n```\n[AV-5] refs/remotes/origin/a contains: ref: refs/remotes/origin/b\n[AV-5] refs/remotes/origin/b contains: ref: refs/remotes/origin/a\n[run] *** DoS CONFIRMED: resolving a circular symref never terminates ***\n```\n\n### Impact\nA persistent denial of service via non-terminating symbolic-ref resolution (CWE-674 / CWE-835). After a single clone from a malicious (or MitM'd) server the circular refs are written to disk, so every later operation that resolves them (`log`, `status`, `checkout`, `branch`, …) hangs forever — the repository becomes effectively unusable for the application.\n\nImpacted: any application that clones from untrusted/compromised remotes with isomorphic-git.\n\n### Suggested fix\nAdd visited-set cycle detection (and/or a default maximum depth, as git does) in `GitRefManager.resolve()`; optionally validate server-supplied symref targets before persisting.","state":0,"publishedAt":"2026-11-09T19:58:32+00:00","modifiedAt":"2026-11-09T20:15:03.9743483+00:00","affected":[{"ecosystem":"npm","name":"isomorphic-git","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.38.6"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/isomorphic-git/isomorphic-git/security/advisories/GHSA-96wc-2m84-2cj7","https://nvd.nist.gov/vuln/detail/CVE-2026-63475","https://github.com/isomorphic-git/isomorphic-git/pull/2370","https://github.com/isomorphic-git/isomorphic-git/commit/823843d1cd19182df79bc907c767f5bcecb39a0b","https://github.com/isomorphic-git/isomorphic-git","https://github.com/isomorphic-git/isomorphic-git/releases/tag/v1.38.6"],"sourceUrl":"https://github.com/advisories/GHSA-96wc-2m84-2cj7","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-96wc-2m84-2cj7","identifiers":["GHSA-96wc-2m84-2cj7","CVE-2026-63475"]},"retained":false,"historicalAffected":[]}],"coverage":[]}