CVE-2022-29218
Published: 13 May 2022
Summary
CVE-2022-29218 is a high-severity Improper Privilege Management (CWE-269) vulnerability in Rubygems Rubygems.Org. Its CVSS base score is 7.7 (High).
Operationally, ranked in the top 34.2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2022-33583
Vulnerability details
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…
more
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.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Policy addresses roles, responsibilities, and privilege management to prevent improper privilege assignments.
Access supervision ensures privileges are assigned and managed without improper escalation or retention.
Assigning group/role memberships and access authorizations (privileges) while reviewing accounts addresses improper privilege management.
The small, testable reference monitor reduces the likelihood of incorrect authorization implementations.
Certification evaluates whether authorization decisions are correctly implemented and enforced.
Periodic review and documentation of connection needs reduces incorrect authorization.
Restricting who can perform changes helps ensure privileges are managed properly rather than assigned broadly.
Manages privileges by authorizing only approved personnel and supervising those lacking required authorizations for maintenance.