Skip to content
OpenAdvisories
Medium · 5.1 CVE-2026-64653 EUVD-2026-54213GHSA-4fjg-2h4q-fwg3GO-2026-6765

GitHub CLI: Unescaped variable components in request URLs could allow path traversal

Published Aug 6, 2026 · Updated Aug 7, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
cli cli < 2.97.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 13 gh No fix yet —
Debian 12 gh No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 gh No fix yet —
Ubuntu 22.04 LTS gh No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS gh No fix yet —
Ubuntu Pro 24.04 LTS gh No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed gh 2.97.0-1.1 openSUSE-SU-2026:11530-1
openSUSE Leap 16.0 gh 2.98.0-bp160.1.1 openSUSE-SU-2026:21663-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 gh 2.97.0-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/cli/cli all versions — GO-2026-6765
Go github.com/cli/cli/v2 < 2.97.0 2.97.0 GHSA-4fjg-2h4q-fwg3

Advisories 2

References