CVE-2026-64655
Beschrijving NL
GitHub CLI (gh) is het officiële opdrachtregelprogramma van GitHub. Voorafgaand aan 2.97.0 bouwt gh attestation verify het certificaat Subject Alternative Name matcher van de vlagwaarden --signer-repo en --signer-workflow zonder te ontsnappen aan regex metacharacters, zodat een door de gebruiker geleverde repository of workflownaam wordt behandeld als een reguliere expressie in plaats van een letterlijke tekenreeks. Omdat GitHub tekens zoals `.` toestaat in namen van organisatie-, repository- en workflowpaden en `.` een regex-jokerteken is, kan een aanvaller een lookalike-naam registreren (bijvoorbeeld github/artifact.attestations-workflows) die voldoet aan een matcher die bedoeld is voor een andere vertrouwde ondertekenaar (github/artifact-attestations-workflows), waarbij de beoogde Sigstore-attestverificatie wordt omzeild. Exploitatie vereist dat de aanvaller een plausibele lookalike repository maakt en er geldige verklaringen van produceert, wat de verificatie van de toeleveringsketen voor CI/CD-pijpleidingen of beleidspoorten kan ondermijnen die vertrouwen vastpinnen op een specifieke ondertekeningsworkflow. Dit probleem is opgelost in versie 2.97.0.
Origineel (Engels) tonen
GitHub CLI (gh) is GitHub’s official command line tool. Prior to 2.97.0, gh attestation verify builds the certificate Subject Alternative Name matcher from the --signer-repo and --signer-workflow flag values without escaping regex metacharacters, so a user-supplied repository or workflow name is treated as a regular expression rather than a literal string. Because GitHub permits characters such as `.` in organization, repository, and workflow path names and `.` is a regex wildcard, an attacker can register a lookalike name (for example github/artifact.attestations-workflows) that satisfies a matcher intended for a different trusted signer (github/artifact-attestations-workflows), bypassing the intended Sigstore attestation verification. Exploitation requires the attacker to create a plausible lookalike repository and produce valid attestations from it, which could undermine supply chain verification for CI/CD pipelines or policy gates that pin trust to a specific signing workflow. This issue is fixed in version 2.97.0.