CVE-2022-29176: RubyGems - Broken Access Control
- Cve: CVE-2022-29176
- Name: RubyGems - Broken Access Control
- Description: Rubygems is a package registry used to supply software for the Ruby language ecosystem. Due to a bug in the yank action, it was possible for any RubyGems.org user to remove and replace certain gems even if that user was not authorized to do so. To be vulnerable, a gem needed: one or more dashes in its name creation within 30 days OR no updates for over 100 days At present, we believe this vulnerability has not been exploited. RubyGems.org sends an email to all gem owners when a gem version is published or yanked. We have not received any support emails from gem owners indicating that their gem has been yanked without authorization. An audit of gem changes for the last 18 months did not find any examples of this vulnerability being used in a malicious way. A deeper audit for any possible use of this exploit is ongoing, and we will update this advisory once it is complete. Using Bundler in --frozen or --deployment mode in CI and during deploys, as the Bundler team has always recommended, will guarantee that your application does not silently switch to versions created using this exploit. To audit your application history for possible past exploits, review your Gemfile.lock and look for gems whose platform changed when the version number did not change. For example, gemname-3.1.2 updating to gemname-3.1.2-java could indicate a possible abuse of this vulnerability. RubyGems.org has been patched and is no longer vulnerable to this issue as of the 5th of May 2022.
- Impact: Potential unauthorized removal or replacement of gems, leading to supply chain attacks or malicious code distribution.
- Remediation: RubyGems.org has patched the vulnerability as of May 5, 2022. Ensure your Gemfile.lock is up-to-date and verify gem versions and platforms for anomalies.
- Vulnerability type: broken_access_control
- Vulnerability impact: data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.01938
- Epss percentile: 0.80653
- Assignee: [email protected]
- Published at: 2022-05-05T22:15:08Z
- Age in days: 1664
- Modified at: 2026-06-17T04:39:44Z
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-29176
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-862 | Missing Authorization |
| CWE-863 | Incorrect Authorization |
Hackerone
- Reports: 2
- Rank: 3806
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/rubygems/rubygems.org/security/advisories/GHSA-hccv-rwq6-vh79 | Mitigation, Third Party Advisory |
| https://hackerone.com/bugs?subject=rubygems&report_id=1559856 | Permissions Required, Third Party Advisory |
| https://security.netapp.com/advisory/ntap-20220616-0002/ | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| rubygems:rubygems.org | all versions | no | nvd | /v1/products/rubygems/rubygems.org |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| rubygems/rubygems.org | security_advisory | yes | /v1/repositories/rubygems/rubygems.org |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Hackerone reports: 2
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts