漏洞标题
当没有证明文件时,`gh attestation verify` 在验证过程中返回错误的退出代码
漏洞描述信息
`gh`是GitHub的官方命令行工具。在版本2.49.0到2.67.0之间,GitHub的Artifact Attestation命令行工具`gh attestation verify`存在一个漏洞,当不存在任何认证信息时,该工具会返回一个零退出状态。这种行为是不正确的:当没有认证信息时,`gh attestation verify`应该返回一个非零退出状态码,以表示验证失败。攻击者可以利用这一漏洞,例如在任何使用`gh attestation verify`的退出码来控制部署的系统中部署恶意工件。建议用户尽快将`gh`更新到已修复的版本`v2.67.0`。
CVSS信息
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
漏洞类别
输入验证不恰当
漏洞标题
`gh attestation verify` returns incorrect exit code during verification if no attestations are present
漏洞描述信息
`gh` is GitHub’s official command line tool. Starting in version 2.49.0 and prior to version 2.67.0, under certain conditions, a bug in GitHub's Artifact Attestation cli tool `gh attestation verify` causes it to return a zero exit status when no attestations are present. This behavior is incorrect: When no attestations are present, `gh attestation verify` should return a non-zero exit status code, thereby signaling verification failure. An attacker can abuse this flaw to, for example, deploy malicious artifacts in any system that uses `gh attestation verify`'s exit codes to gatekeep deployments. Users are advised to update `gh` to patched version `v2.67.0` as soon as possible.
CVSS信息
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
漏洞类别
未有动作错误条件的检测