chore(deps): update module github.com/cli/cli to v2 [security]#30
Open
alaudaa-renovate[bot] wants to merge 1 commit into
Open
chore(deps): update module github.com/cli/cli to v2 [security]#30alaudaa-renovate[bot] wants to merge 1 commit into
alaudaa-renovate[bot] wants to merge 1 commit into
Conversation
Author
ℹ Artifact update noticeFile name: hack/go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v1.14.0->v2.62.0GitHub Vulnerability Alerts
CVE-2024-52308
Summary
A security vulnerability has been identified in GitHub CLI that could allow remote code execution (RCE) when users connect to a malicious Codespace SSH server and use the
gh codespace sshorgh codespace logscommands.Details
The vulnerability stems from the way GitHub CLI handles SSH connection details when executing commands. When developers connect to remote Codespaces, they typically use a SSH server running within a devcontainer, often provided through the default devcontainer image. GitHub CLI retrieves SSH connection details, such as remote username, which is used in executing
sshcommands forgh codespace sshorgh codespace logscommands.This exploit occurs when a malicious third-party devcontainer contains a modified SSH server that injects
ssharguments within the SSH connection details.gh codespace sshandgh codespace logscommands could execute arbitrary code on the user's workstation if the remote username contains something like-oProxyCommand="echo hacked" #. The-oProxyCommandflag causessshto execute the provided command while#shell comment causes any otherssharguments to be ignored.In
2.62.0, the remote username information is being validated before being used.Impact
Successful exploitation could lead to arbitrary code execution on the user's workstation, potentially compromising the user's data and system.
Remediation and Mitigation
ghto2.62.0Downloading malicious GitHub Actions workflow artifact results in path traversal vulnerability
CVE-2024-54132 / GHSA-2m9h-r57g-45pj / GO-2024-3310
More information
Details
Summary
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.Details
This vulnerability stems from a GitHub Actions workflow artifact named
..when downloaded usinggh run download. The artifact name and--dirflag 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--dirflag value.In
2.63.1,gh run downloadwill not download artifacts named..and.and instead exit with the following error message:Impact
Successful exploitation heightens the risk of local path traversal attack vectors exactly 1 directory higher than intended.
Remediation and Mitigation
ghto2.63.1.., to prevent path traversal risks.Severity
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/U:GreenReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
GitHub CLI: GitHub Actions log output in
gh run viewallows terminal escape sequence injectionCVE-2026-45803 / GHSA-crc3-h8v6-qh57
More information
Details
Summary
A security vulnerability has been identified in GitHub CLI that could allow terminal escape sequence injection when users view GitHub Actions workflow logs using
gh run view --logorgh run view --log-failed.Details
The vulnerability stems from the way GitHub CLI handles raw Actions log output. The
gh run view --logandgh run view --log-failedcommands stream workflow log lines to stdout or the configured pager without sanitizing terminal control sequences. An attacker who can influence GitHub Actions log content, for example via a PR triggered workflow, can embed escape sequences that are replayed in the user's terminal when they inspect the run.Depending on the victim's terminal emulator, injected sequences could change the window title, manipulate on screen content, or in some terminal emulators (such as
screen) potentially execute arbitrary commands.In
2.92.0, GitHub CLI sanitizes terminal control sequences in Actions log output before writing to the terminal.PoC
Create a workflow that emits terminal escape sequences in its log output:
Then trigger the workflow and view its logs:
On vulnerable versions, the raw ESC bytes (0x1b) are passed through to the terminal unsanitized. On
2.92.0and later, escape sequences are stripped and only the safe visible text is displayed.Impact
An attacker who can control GitHub Actions workflow output can inject terminal escape sequences into a maintainer's terminal session when they inspect the run with
gh run view --logorgh run view --log-failed. The practical impact depends on the victim's terminal emulator.Remediation and Mitigation
ghto2.92.0gh run view --log | cat -v) as a workaround on older versionsSeverity
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Connecting to a malicious Codespaces via GH CLI could allow command execution on the user's computer
CVE-2024-52308 / GHSA-p2h2-3vg9-4p87 / GO-2024-3269
More information
Details
Summary
A security vulnerability has been identified in GitHub CLI that could allow remote code execution (RCE) when users connect to a malicious Codespace SSH server and use the
gh codespace sshorgh codespace logscommands.Details
The vulnerability stems from the way GitHub CLI handles SSH connection details when executing commands. When developers connect to remote Codespaces, they typically use a SSH server running within a devcontainer, often provided through the default devcontainer image. GitHub CLI retrieves SSH connection details, such as remote username, which is used in executing
sshcommands forgh codespace sshorgh codespace logscommands.This exploit occurs when a malicious third-party devcontainer contains a modified SSH server that injects
ssharguments within the SSH connection details.gh codespace sshandgh codespace logscommands could execute arbitrary code on the user's workstation if the remote username contains something like-oProxyCommand="echo hacked" #. The-oProxyCommandflag causessshto execute the provided command while#shell comment causes any otherssharguments to be ignored.In
2.62.0, the remote username information is being validated before being used.Impact
Successful exploitation could lead to arbitrary code execution on the user's workstation, potentially compromising the user's data and system.
Remediation and Mitigation
ghto2.62.0Severity
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:HReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
cli/cli (github.com/cli/cli)
v2.62.0: GitHub CLI 2.62.0Compare Source
What's Changed
Full Changelog: cli/cli@v2.61.0...v2.62.0
Security
A security vulnerability has been identified in GitHub CLI that could allow remote code execution (RCE) when users connect to a malicious Codespace SSH server and use the
gh codespace sshorgh codespace logscommands.For more information, see GHSA-p2h2-3vg9-4p87
GitHub CLI notifies users about latest extension upgrades
Similar to the notification of latest
ghreleases, thev2.62.0version of GitHub CLI will notify users about latest extension upgrades when the extension is used:Why does this matter?
This removes a common pain point of extension authors as they have had to reverse engineer and implement a similar mechanism within their extensions directly.
With this quality of life improvement, there are 2 big benefits:
What do you need to do?
Extension authors should review their extensions and consider removing any custom logic previously implemented to notify users of new releases.
v2.61.0: GitHub CLI 2.61.0Compare Source
Ensure users understand consequences before making repository visibility changes
In
v2.61.0,gh repo editcommand has been enhanced to inform users about consequences of changing visibility and ensure users are intentional before making irreversible changes:gh repo editvisibility change requires confirmation when changing frompublic,private, orinternalgh repo edit --visibilitychange requires new--accept-visibility-change-consequencesflag to confirmgh repo editexperienceWhat's Changed
projectcommand by @jtmcg in https://github.com/cli/cli/pull/9816gh rulesetby @andyfeller in https://github.com/cli/cli/pull/9815gh repo editby @andyfeller in https://github.com/cli/cli/pull/9845gh attestation verifyby @malancas in https://github.com/cli/cli/pull/9838gh attestation verifyshould only verify provenance attestations by default by @malancas in https://github.com/cli/cli/pull/9825dnf5commands as default by @its-miroma in https://github.com/cli/cli/pull/9844gh attestation verifypolicy enforcement refactor by @malancas in https://github.com/cli/cli/pull/9848gh attestation verifyby @malancas in https://github.com/cli/cli/pull/9877gh cache listwhen--jsonis provided by @williammartin in https://github.com/cli/cli/pull/9883gh pr create -wignore template flag by @nilvng in https://github.com/cli/cli/pull/9863New Contributors
Full Changelog: cli/cli@v2.60.1...v2.61.0
v2.60.1: GitHub CLI 2.60.1Compare Source
This is a small patch release to fix installing
ghviago installwhich was broken with v2.60.0.What's Changed
Full Changelog: cli/cli@v2.60.0...v2.60.1
v2.60.0: GitHub CLI 2.60.0Compare Source
What's Changed
LiveSigstoreVerifier.Verifyshould error if no attestations are present by @phillmv in https://github.com/cli/cli/pull/9742gh at verifyretries fetching attestations if it receives a 5xx by @phillmv in https://github.com/cli/cli/pull/9797working-with-us.mdby @BagToad in https://github.com/cli/cli/pull/9800ghis supported on GitHub Enterprise Cloud by @BagToad in https://github.com/cli/cli/pull/9805Acceptance Test Changes
workflow,run, andcachecommands by @BagToad in https://github.com/cli/cli/pull/9766apiacceptance tests by @BagToad in https://github.com/cli/cli/pull/9770releasecommands by @BagToad in https://github.com/cli/cli/pull/9771organdssh-keycommands by @BagToad in https://github.com/cli/cli/pull/9812gh authcommands by @jtmcg in https://github.com/cli/cli/pull/9787repocommands by @jtmcg in https://github.com/cli/cli/pull/9783searchcommand by @BagToad in https://github.com/cli/cli/pull/9786variablecommands by @andyfeller in https://github.com/cli/cli/pull/978secretcommands by @andyfeller in https://github.com/cli/cli/pull/9782New Contributors
Full Changelog: cli/cli@v2.59.0...v2.60.0
v2.59.0: GitHub CLI 2.59.0Compare Source
What's Changed
SECURITY.mdwith expectations for privately reported vulnerabilities by @BagToad in https://github.com/cli/cli/pull/9687darwin-amd64binary on an Apple Silicon macOS device by @timrogers in https://github.com/cli/cli/pull/9650repo license list/viewandrepo gitignore list/viewby @BagToad in https://github.com/cli/cli/pull/9721GH_ACCEPTANCE_SCRIPTenv var to target a single script by @williammartin in https://github.com/cli/cli/pull/9756issuecommand by @williammartin in https://github.com/cli/cli/pull/9757gist listby @heaths in https://github.com/cli/cli/pull/9728New Contributors
Full Changelog: cli/cli@v2.58.0...v2.59.0
v2.58.0: GitHub CLI 2.58.0Compare Source
What's Changed
attestation verifycustom issuer mismatch error by @bdehamer in https://github.com/cli/cli/pull/9616attestation trusted-rootcommand by @BagToad in https://github.com/cli/cli/pull/9635attestation trusted-rootcommand by @bdehamer in https://github.com/cli/cli/pull/9610trusted-rootcommand by @bdehamer in https://github.com/cli/cli/pull/9638dnf5instructions todocs/install_linux.mdby @its-miroma in https://github.com/cli/cli/pull/9660New Contributors
Full Changelog: cli/cli@v2.57.0...v2.58.0
v2.57.0: GitHub CLI 2.57.0Compare Source
What's Changed
--activeflag to thegh auth statuscommand by @velumuruganr in https://github.com/cli/cli/pull/9520gh attestation verifytest for custom OIDC issuers by @bdehamer in https://github.com/cli/cli/pull/9595darwin-arm64binary, but adarwin-amd64binary is available by @timrogers in https://github.com/cli/cli/pull/9599gh attestation verifybundle parsing and validation errors by @malancas in https://github.com/cli/cli/pull/9564attestation verifyoutput when no TTY present by @bdehamer in https://github.com/cli/cli/pull/9612New Contributors
Full Changelog: cli/cli@v2.56.0...v2.57.0
v2.56.0: GitHub CLI 2.56.0Compare Source
Important note about renewed GPG key
The Debian and RedHat releases have been signed with a new GPG key. If you are experiencing issues updating your
.debor.rpmpackages, please read cli/cli#9569.What's Changed
gh repo syncstdout by @muzimuzhi in https://github.com/cli/cli/pull/9491Internalfromgh repo createprompt when owner is not an org by @jtmcg in https://github.com/cli/cli/pull/9465gh run viewby @benebsiny in https://github.com/cli/cli/pull/9482repo syncby @muzimuzhi in https://github.com/cli/cli/pull/9509gh attestation verifyhandles empty JSONL files by @malancas in https://github.com/cli/cli/pull/9541New Contributors
Full Changelog: cli/cli@v2.55.0...v2.56.0
v2.55.0: GitHub CLI 2.55.0Compare Source
What's Changed
gh variable getto use repo host by @andyfeller in https://github.com/cli/cli/pull/9411gh repo set-defaultby @thecaffeinedev in https://github.com/cli/cli/pull/9431gh run downloaddownloads the latest artifact by default by @sato11 in https://github.com/cli/cli/pull/9412--project.*flags'namewithtitlein docs by @jtmcg in https://github.com/cli/cli/pull/9443gh release create --notes-from-tagbehavior with multiline tag annotation by @babakks in https://github.com/cli/cli/pull/9385pr create --editorby @benebsiny in https://github.com/cli/cli/pull/9433gh attestationby @codysoyland in https://github.com/cli/cli/pull/9442cli/gh-extension-precompileby @BagToad in https://github.com/cli/cli/pull/9462working-with-us.mdby @BagToad in https://github.com/cli/cli/pull/9468gh issue develop -b does-not-exist-on-remoteby @benebsiny in https://github.com/cli/cli/pull/9477--project <number>flags ingh searchtoowner/numberby @jtmcg in https://github.com/cli/cli/pull/9453New Contributors
Full Changelog: cli/cli@v2.54.0...v2.55.0
v2.54.0: GitHub CLI 2.54.0Compare Source
What's Changed
--bareclone targets by @hyperrealist in https://github.com/cli/cli/pull/9271--remove-milestoneoption toissue editandpr editby @babakks in https://github.com/cli/cli/pull/9344New Contributors
Full Changelog: cli/cli@v2.53.0...v2.54.0
v2.53.0: GitHub CLI 2.53.0Compare Source
What's Changed
--jsonoption tovariable getcommand by @babakks in https://github.com/cli/cli/pull/9128gh repo createto clarify owner by @jessehouwing in https://github.com/cli/cli/pull/9309gh pr view --json stateReasonby @williammartin in https://github.com/cli/cli/pull/9307issue create --editorby @notomo in https://github.com/cli/cli/pull/7193pr update-branchcommand by @babakks in https://github.com/cli/cli/pull/8953New Contributors
Full Changelog: cli/cli@v2.52.0...v2.53.0
v2.52.0: GitHub CLI 2.52.0Compare Source
What's Changed
-aflag togh run listby @joshuajtward in https://github.com/cli/cli/pull/9162gh at verifypublic beta note by @phillmv in https://github.com/cli/cli/pull/9243New Contributors
Full Changelog: cli/cli@v2.51.0...v2.52.0
v2.51.0: GitHub CLI 2.51.0Compare Source
What's Changed
signer-repoandsigner-workflowflags togh attestation verifyby @malancas in https://github.com/cli/cli/pull/9137--json-resultflag with--format=jsonin the attestation cmd by @phillmv in https://github.com/cli/cli/pull/9172New Contributors
Full Changelog: cli/cli@v2.50.0...v2.51.0
v2.50.0: GitHub CLI 2.50.0Compare Source
What's Changed
gh pr checksby @nobe4 in https://github.com/cli/cli/pull/9079gh pr viewby @nobe4 in https://github.com/cli/cli/pull/9080Attemptsfield toAttempt; expose ingh run viewanConfiguration
📅 Schedule: Branch creation - "" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.