CVE-2021-32724

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-32724
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32724.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-32724
Aliases
Published
2021-09-09T21:15:07Z
Modified
2024-05-14T08:46:40.613513Z
Severity
  • 9.9 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

check-spelling is a github action which provides CI spell checking. In affected versions and for a repository with the check-spelling action enabled that triggers on pull_request_target (or schedule), an attacker can send a crafted Pull Request that causes a GITHUB_TOKEN to be exposed. With the GITHUB_TOKEN, it's possible to push commits to the repository bypassing standard approval processes. Commits to the repository could then steal any/all secrets available to the repository. As a workaround users may can either: Disable the workflow until you've fixed all branches or Set repository to Allow specific actions. check-spelling isn't a verified creator and it certainly won't be anytime soon. You could then explicitly add other actions that your repository uses. Set repository Workflow permissions to Read repository contents permission. Workflows using check-spelling/check-spelling@main will get the fix automatically. Workflows using a pinned sha or tagged version will need to change the affected workflows for all repository branches to the latest version. Users can verify who and which Pull Requests have been running the action by looking up the spelling.yml action in the Actions tab of their repositories, e.g., https://github.com/check-spelling/check-spelling/actions/workflows/spelling.yml - you can filter PRs by adding ?query=event%3Apullrequesttarget, e.g., https://github.com/check-spelling/check-spelling/actions/workflows/spelling.yml?query=event%3Apullrequesttarget.

References

Affected packages

Git / github.com/check-spelling/check-spelling

Affected ranges

Type
GIT
Repo
https://github.com/check-spelling/check-spelling
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.0.12-alpha
0.0.13-alpha
0.0.14-alpha
0.0.15-alpha
0.0.16-alpha
0.0.17-alpha
0.0.5-alpha
0.0.6-alpha
0.0.7-alpha
0.0.8-alpha
0.0.9-alpha

v0.*

v0.0.18