cve.bz

CVE-2026-64653 cli cli: Path traversal

5.1 mediumEPSS 0.5%Fix available

Medium (5.1) in cli cli. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/cli/cli/v2 2.97.0.

On this page
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.

Severity

CVSS 4.0

5.1 medium
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
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 44th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-08-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-64653 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-64653?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-64653?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-64653 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
cli< 2.97.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4fjg-2h4q-fwg3Gogithub.com/cli/cli/v2<2.97.02.97.0
GO-2026-6765Gogithub.com/cli/cliall versionsno fix published
GO-2026-6765Gogithub.com/cli/cli/v2<2.97.02.97.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13ghno fix listedDEBIAN-CVE-2026-64653
Ubuntu22.04:LTS, 26.10, Pro:24.04:LTS and 1 moreghno fix listedUBUNTU-CVE-2026-64653
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0govulncheck-vulndb0.0.20261105T234957-160000.1.1SUSE-SU-2026:24730-1
openSUSELeap 16.0gh2.98.0-bp160.1.1openSUSE-SU-2026:21663-1
openSUSELeap 16.0govulncheck-vulndb0.0.20261105T234957-160000.1.1openSUSE-SU-2026:22336-1
openSUSETumbleweedgh2.97.0-1.1openSUSE-SU-2026:11530-1
Azure Linux3gh2.97.0-1AZL-95465

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A flaw was found in GitHub CLI (gh). The tool fails to properly percent-encode variable path components in HTTP request URLs, allowing URL path metacharacters in attacker-controlled repository or resource values to redirect the CLI to a different API endpoint than intended. This could result in unintended actions or information exposure. Red Hat products that include github.com/cli/cli as a transitive Go dependency (OpenShift GitOps, OpenStack Platform) are not affected because the vulnerable CLI code path is not invoked.

Red Hat's mitigation

- Upgrade `gh` to version 2.97.0 or later.

- Be cautious when running `gh` against untrusted repositories or inputs whose names you do not control.

ProductPackageStateAdvisory
Red Hat OpenShift GitOpsopenshift-gitops-1/argocd-rhel8Not affected
Red Hat OpenShift GitOpsopenshift-gitops-1/argocd-rhel9Not affected
Red Hat OpenStack Platform 18.0rhoso-operators/openstack-operator-bundleNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-64653.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON