RCE in Rubygems
CVE-2019-8324
An issue was discovered in RubyGems 2.6 and later through 3.0.2. A crafted gem with a multi-line name is not handled correctly. Therefore, an attacker could inject arbitrary code to the stub line of gemspec, which is eval-ed by code in ensure_loadable_spec during the preinstall check.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.032, 88.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Rubygems
- Debian Linux — versions 9.0
- openSUSE Leap — versions 15.0, 15.1
- Red Hat Enterprise Linux — versions 8.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (vincent-deng/veracode-container-security-finding-parser). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- hackerone.com/reports/328571 (Permissions Required, Third Party Advisory)
- openSUSE-SU-2019:1771 (vendor-advisory, Mailing List, Third Party Advisory)
- RHSA-2019:1972 (vendor-advisory, Third Party Advisory)
- [debian-lts-announce] 20200816 [SECURITY] [DLA 2330-1] jruby security update (mailing-list, Mailing List, Third Party Advisory)