github-action-merge-dependabot is an action that automatically approves and merges dependabot pull requests (PRs). Prior to version 3.2.0, github-action-merge-dependabot does not check if a commit created by dependabot is verified with the proper GPG key. There is just a check if the actor is set to `dependabot[bot]` to determine if the PR is a legit PR. Theoretically, an owner of a seemingly valid and legit action in the pipeline can check if the PR is created by dependabot and if their own action has enough permissions to modify the PR in the pipeline. If so, they can modify the PR by adding a second seemingly valid and legit commit to the PR, as they can set arbitrarily the username and email in for commits in git. Because the bot only checks if the actor is valid, it would pass the malicious changes through and merge the PR automatically, without getting noticed by project maintainers. It would probably not be possible to determine where the malicious commit came from, as it would only say `dependabot[bot]` and the corresponding email-address. Version 3.2.0 contains a patch for this issue.
References
Link | Resource |
---|---|
https://github.com/fastify/github-action-merge-dependabot/commit/309f39539c5d918d8a47075587aa8720a9c127f7 | Patch Third Party Advisory |
https://github.com/fastify/github-action-merge-dependabot/security/advisories/GHSA-v5vr-h3xq-8v6w | Third Party Advisory |
https://hackerone.com/bugs?report_id=1564530 | Permissions Required Third Party Advisory |
Configurations
History
15 Jun 2022, 18:49
Type | Values Removed | Values Added |
---|---|---|
References | (MISC) https://github.com/fastify/github-action-merge-dependabot/commit/309f39539c5d918d8a47075587aa8720a9c127f7 - Patch, Third Party Advisory | |
References | (CONFIRM) https://github.com/fastify/github-action-merge-dependabot/security/advisories/GHSA-v5vr-h3xq-8v6w - Third Party Advisory | |
References | (MISC) https://hackerone.com/bugs?report_id=1564530 - Permissions Required, Third Party Advisory | |
CWE | CWE-345 | |
CPE | cpe:2.3:a:fastify:github_action_merge_dependabot:*:*:*:*:*:*:*:* | |
CVSS |
v2 : v3 : |
v2 : 4.0
v3 : 6.5 |
31 May 2022, 16:15
Type | Values Removed | Values Added |
---|---|---|
New CVE |
Information
Published : 2022-05-31 16:15
Updated : 2024-02-04 22:29
NVD link : CVE-2022-29220
Mitre link : CVE-2022-29220
CVE.ORG link : CVE-2022-29220
JSON object : View
Products Affected
fastify
- github_action_merge_dependabot