{"answers":{"affected":"1 open source package ship an affected version, including check-spelling/check-spelling. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-32724 in the wild and no public exploit code.","fix":"Upgrade check-spelling/check-spelling to 0.0.19 or later.","what":"CVE-2021-32724 is a critical vulnerability in check-spelling, published on 9 Sep 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-32724 and fix it if it is affected.\n\nWhat it is: CVE-2021-32724 is a critical vulnerability in check-spelling, published on 9 Sep 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-32724 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- check-spelling/check-spelling (GitHub Actions): affected all versions; fixed in 0.0.19\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-32724/ (Markdown: https://insights.sbomify.com/CVE-2021-32724/index.md)","id":"CVE-2021-32724","markdown":"https://insights.sbomify.com/CVE-2021-32724/index.md","name":"CVE-2021-32724","record":{"aliases":["GHSA-g86g-chm8-7r2p"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read","privilege_escalation"],"network_reachable":"yes","non_default_config":true,"product_category":"GitHub Actions","requires_auth":"low_privilege","summary":"Attackers can leak GITHUB_TOKEN via symlink attacks in check-spelling workflows, enabling repository write access and secret theft.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"check-spelling","vendor":"check-spelling"}],"cvss":{"score":9.9,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"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.","ecosystems":["GitHub Actions"],"exploits":{"exploitdb":0,"first_seen":"2021-12-03","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2021-12-03T12:09:46Z","kind":"github_poc","ref":"https://github.com/MaximeSchlegel/CVE-2021-32724-Target","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"check-spelling workflow vulnerable to GITHUB_TOKEN leakage via symlink attack","id":"CVE-2021-32724","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"GitHub Actions","product":null,"products":[],"type":"information_disclosure","year":"2021"},"n_packages":1,"n_references":2,"next":{"headline":"Default share permissions not respected for federated reshares","id":"CVE-2021-32725"},"packages":[{"ecosystem":"GitHub Actions","fixed":["0.0.19"],"introduced":["0"],"last_affected":[],"package":"check-spelling/check-spelling","purl":null,"source":"GHSA-g86g-chm8-7r2p"}],"prev":{"headline":"Regular Expression Denial of Service (ReDoS) in Prism","id":"CVE-2021-32723"},"products":["check-spelling"],"published":"2021-09-09","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["check-spelling"]},"summary":"Attackers can leak GITHUB_TOKEN via symlink attacks in check-spelling workflows, enabling repository write access and secret theft.","url":"https://insights.sbomify.com/CVE-2021-32724/"}