CVE-2022-29218 Unauthorized takeover for new versions of some platform-specific gems
Attackers could replace legitimate gems with malicious ones in the CDN cache, leading to code execution for users installing affected packages.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-29218?
CVE-2022-29218 is a high-severity vulnerability in rubygems.org, published on 12 May 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2022-29218?
It affects 1 product.
Products include Rubygems Rubygems.org.
How do I fix CVE-2022-29218?
No fix has been published for CVE-2022-29218 yet. Limit exposure of the affected software until one is available.
Is CVE-2022-29218 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-29218 exists.