CVE-2019-8324
Vulnerability Summary
Timeline
Description
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.
CVSS Metrics
- v3.1•HIGH•Score: 8.8CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- v2.0•MEDIUM•Score: 6.8AV:N/AC:M/Au:N/C:P/I:P/A:P
EPSS Trends
Current EPSS score: 3.22%• Percentile: 88%
Techniques & Countermeasures
- CWE-94•Improper Control of Generation of Code ('Code Injection')
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Affected Systems
- alpine•ruby
< 2.4.6-r0 | < 2.4.6-r0 | < 2.5.5-r0 | < 2.5.5-r0
- debian•jruby
< 9.1.17.0-3 | < 9.1.17.0-3 | < 9.1.17.0-3
- debian•rubygems
< 3.2.0~rc.1-1 | < 3.2.0~rc.1-1 | < 3.2.0~rc.1-1 | < 3.2.0~rc.1-1
- debian•debian_linux
9.0
- opensuse•leap
15.0 | 15.1
- redhat•enterprise_linux
8.0
- rubygems•rubygems
≥ 2.6.0, ≤ 3.0.2
References (6)
- https://hackerone.com/reports/328571
- http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html
- https://access.redhat.com/errata/RHSA-2019:1972
- https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html
- https://security-tracker.debian.org/tracker/CVE-2019-8324
- https://security.alpinelinux.org/vuln/CVE-2019-8324