Description
The GitHub CLI is GitHub’s official command line tool. A security vulnerability has been identified in GitHub CLI that could create or overwrite files in unintended directories when users download a malicious GitHub Actions workflow artifact through gh run download. This vulnerability stems from a GitHub Actions workflow artifact named .. when downloaded using gh run download. The artifact name and --dir flag are used to determine the artifact’s download path. When the artifact is named .., the resulting files within the artifact are extracted exactly 1 directory higher than the specified --dir flag value. This vulnerability is fixed in 2.63.1.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| cli | cli | < 2.63.1 | — |
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 13 | gh | 2.46.0-3 | — |
| Debian 12 | gh | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | gh | 2.45.0-1ubuntu0.3+esm2 | USN-8012-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | govulncheck-vulndb | 0.0.20241209T183251-1.1 | openSUSE-SU-2024:14567-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | gh | 2.62.0-2 | — |
| Azure Linux 2 (CBL-Mariner) | gh | 2.13.0-23 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | gh | 2.63.1-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/cli/cli | <= 1.14.0 | — | GHSA-2m9h-r57g-45pj |
| Go | github.com/cli/cli | all versions | — | GO-2024-3310 |
| Go | github.com/cli/cli/v2 | < 2.63.1 | 2.63.1 | GHSA-2m9h-r57g-45pj |
Advisories 2
- USN-8012-1 gh vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- openSUSE-SU-2024:14567-1 govulncheck-vulndb-0.0.20241209T183251-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026