CVE-2019-8324
Code injection in RubyGems
8.8
HIGH
CVSS 3.1
EPSS 0.50%
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.
How to fix CVE-2019-8324
To remediate CVE-2019-8324, upgrade the affected package to a fixed version below.
- —upgrade to 2.4.6-r0 or later
- —upgrade to 9.1.17.0-3 or later
- —upgrade to 3.2.0~rc.1-1 or later
- —upgrade to 2.7.9 or later
Is CVE-2019-8324 being exploited?
Low — EPSS is 0.5%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- from 0, < 2.4.6-r0
- from 0, < 9.1.17.0-3
- from 0, < 3.2.0~rc.1-1
- >= 2.6.0, < 2.7.9
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |