CVE-2021-32724
Last modified
CVE-2021-32724 is a critical-severity vulnerability rated 9.9/10 on the CVSS scale. check-spelling is a github action which provides CI spell checking. In affected versions and for a repository with the [check-spelling action](https://github.com/marketplace/actions/check-spelling) 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. EPSS estimates a 2.26% chance of exploitation in the next 30 days.
Description
check-spelling is a github action which provides CI spell checking. In affected versions and for a repository with the [check-spelling action](https://github.com/marketplace/actions/check-spelling) 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](https://docs.github.com/en/actions/managing-workflow-runs/disabling-and-enabling-a-workflow) until you've fixed all branches or Set repository to [Allow specific actions](https://docs.github.com/en/github/administering-a-repository/managing-repository-settings/disabling-or-limiting-github-actions-for-a-repository#allowing-specific-actions-to-run). 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](https://docs.github.com/en/github/administering-a-repository/managing-repository-settings/disabling-or-limiting-github-actions-for-a-repository#setting-the-permissions-of-the-github_token-for-your-repository) 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%3Apull_request_target, e.g., https://github.com/check-spelling/check-spelling/actions/workflows/spelling.yml?query=event%3Apull_request_target.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Check-Spelling | Check-Spelling | < 0.0.19 |
References
- https://github.com/check-spelling/check-spelling/commit/436362fc6b588d9d561cbdb575260ca593c8dc56Patch, Third Party Advisory
- https://github.com/check-spelling/check-spelling/security/advisories/GHSA-g86g-chm8-7r2pMitigation, Third Party Advisory
- https://github.com/check-spelling/check-spelling/commit/436362fc6b588d9d561cbdb575260ca593c8dc56Patch, Third Party Advisory
- https://github.com/check-spelling/check-spelling/security/advisories/GHSA-g86g-chm8-7r2pMitigation, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-32724?
How severe is CVE-2021-32724?
How do I fix CVE-2021-32724?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-32719RabbitMQ is a multi-protocol messaging broker. In rabbitmq-s…4.8
- CVE-2021-3272jp2_decode in jp2/jp2_dec.c in libjasper in JasPer 2.0.24 ha…5.5
- CVE-2021-32720Sylius is an Open Source eCommerce platform on top of Symfon…5.3
- CVE-2021-32721PowerMux is a drop-in replacement for Go's http.ServeMux. In…6.1
- CVE-2021-32722GlobalNewFiles is a mediawiki extension. Versions prior to 4…6.5
- CVE-2021-32723Prism is a syntax highlighting library. Some languages befor…6.5
- CVE-2021-32725Nextcloud Server is a Nextcloud package that handles data st…5.3
- CVE-2021-32726Nextcloud Server is a Nextcloud package that handles data st…9.8
- CVE-2021-32727Nextcloud Android Client is the Android client for Nextcloud…7.5
- CVE-2021-32728The Nextcloud Desktop Client is a tool to synchronize files …6.5
- CVE-2021-32729XWiki Platform is a generic wiki platform offering runtime s…5.4
- CVE-2021-3273Nagios XI below 5.7 is affected by code injection in the /na…7.2
Are you affected by CVE-2021-32724?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
