Cyber Resilience

CVE-2022-29218

HighPublic PoC

Published: 13 May 2022

Published
13 May 2022
Modified
21 November 2024
KEV Added
Patch
CVSS Score v3.1 7.7 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
EPSS Score 0.0049 65.8th percentile
Risk Priority 16 60% EPSS · 20% KEV · 20% CVSS

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

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

rubygems
rubygems.org
all versions

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.

addresses: CWE-269 CWE-863

Policy addresses roles, responsibilities, and privilege management to prevent improper privilege assignments.

addresses: CWE-269 CWE-863

Access supervision ensures privileges are assigned and managed without improper escalation or retention.

addresses: CWE-269 CWE-863

Assigning group/role memberships and access authorizations (privileges) while reviewing accounts addresses improper privilege management.

addresses: CWE-863 CWE-269

The small, testable reference monitor reduces the likelihood of incorrect authorization implementations.

addresses: CWE-863 CWE-269

Certification evaluates whether authorization decisions are correctly implemented and enforced.

addresses: CWE-863 CWE-269

Periodic review and documentation of connection needs reduces incorrect authorization.

addresses: CWE-269 CWE-863

Restricting who can perform changes helps ensure privileges are managed properly rather than assigned broadly.

addresses: CWE-269 CWE-863

Manages privileges by authorizing only approved personnel and supervising those lacking required authorizations for maintenance.

References