CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2022 · Rubygems

CVE-2022-29218
Rubygems.org vulnerability

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.

Affected products

Rubygems.org. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Rubygems.org runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Set the orderSystems that can be reached from the internet come first, then the rest.

References

More vulnerabilities in Rubygems products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.