{"id":"CVE-2026-64653","published":"2026-08-06T17:51:54Z","modified":"2026-08-07T14:54:13Z","title":"GitHub CLI: Unescaped variable components in request URLs could allow path traversal","vendor":"cli","product":"cli","tier":"tail","description":{"text":"GitHub CLI (gh) is GitHub’s official command line tool. Prior to 2.97.0, some HTTP request URLs interpolate variable path components without percent encoding, allowing URL path metacharacters in attacker-controlled repository or resource values to make gh address a different API endpoint or resource than the user intended. This issue is fixed in version 2.97.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00511,"percentile":0.44508,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/cli/cli/security/advisories/GHSA-4fjg-2h4q-fwg3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cli/cli/commit/0c2eea6338a2323cfff000160b9b5a56a38d2a06","tags":["x_refsource_MISC"]},{"url":"https://github.com/cli/cli/releases/tag/v2.97.0","tags":["x_refsource_MISC"]}],"priority":{"score":12.5,"factors":[{"name":"EPSS percentile","points":8.9},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"cli","affectedVersions":[{"vendor":"cli","product":"cli","versions":["< 2.97.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-07T14:54:02.803787Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/cli/cli/v2","vulnerableRanges":["<2.97.0"],"patched":["2.97.0"],"from":["GHSA-4fjg-2h4q-fwg3","GO-2026-6765"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/cli/cli","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-6765"],"provenance":"source"}],"summary":{"text":"The GitHub CLI (gh), GitHub's official command line tool, fails to percent-encode certain variable path components in its HTTP request URLs, so unescaped URL path metacharacters can alter the endpoint or resource that gh requests. An attacker who can supply the repository or resource values gh uses, with the victim performing a user interaction, can cause gh to address a different API endpoint or resource than the user intended, and this affects gh versions before 2.97.0.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:27Z"},"euvd":{"id":"EUVD-2026-54213","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-45803","published":"2026-05-15","fixed":"2.92.0","kev":false},{"cve":"CVE-2026-48501","published":"2026-05-29","fixed":"2.93.0","kev":false,"link":{"from":"CVE-2026-48501","to":"CVE-2026-64653","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/cli/cli/v2","fromFixed":"2.93.0","toFixed":"2.97.0","daysApart":69}]}},{"cve":"CVE-2026-64652","published":"2026-08-06","fixed":"2.97.0","kev":false},{"cve":"CVE-2026-64653","published":"2026-08-06","fixed":"2.97.0","kev":false},{"cve":"CVE-2026-64655","published":"2026-08-06","fixed":"2.97.0","kev":false}],"package":"Go:github.com/cli/cli/v2"}}