CVE-2019-8324
Code injection in RubyGems
Reported by mitre · Published June 17, 2019
rubygems-update is fixed in 3.0.2 and 2.7.9 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rubygems-update | RubyGems | 3.0.2, 2.7.9 |
| rubygems | Amazon Linux | 2.0.14.1-35.amzn2.0.1 |
| rubygem-bigdecimal | Amazon Linux | 1.2.0-35.amzn2.0.1 |
| ruby-doc | Amazon Linux | 2.0.0.648-35.amzn2.0.1 |
| ruby-libs | Amazon Linux | 2.0.0.648-35.amzn2.0.1 |
| ruby-devel | Amazon Linux | 2.0.0.648-35.amzn2.0.1 |
| ruby | Alpine | 2.5.5-r0, 2.4.6-r0 |
| rubygem-io-console | Amazon Linux | 0.4.2-35.amzn2.0.1 |
| ruby-tcltk | Amazon Linux | 2.0.0.648-35.amzn2.0.1 |
| rubygem-minitest | Amazon Linux | 4.3.2-35.amzn2.0.1 |
| rubygem-rdoc | Amazon Linux | 4.0.0-35.amzn2.0.1 |
| rubygem-rake | Amazon Linux | 0.9.6-35.amzn2.0.1 |
6 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| RubyGems | rubygems-update | 2.6.0 |
| amazon:2 | rubygems | 0 |
| amazon:2 | rubygem-bigdecimal | 0 |
| amazon:2 | ruby-doc | 0 |
| amazon:2 | ruby-libs | 0 |
| amazon:2 | ruby-devel | 0 |
| alpine | ruby | 0, 0 |
| amazon:2 | rubygem-io-console | 0 |
| amazon:2 | ruby-tcltk | 0 |
| amazon:2 | rubygem-minitest | 0 |
| amazon:2 | rubygem-rdoc | 0 |
| amazon:2 | rubygem-rake | 0 |
| amazon:2 | ruby-irb | 0 |
| amazon:2 | rubygems-devel | 0 |
| n/a | n/a | * |
| amazon:2 | rubygem-json | 0 |
| amazon:2 | ruby | 0 |
| amazon:2 | rubygem-psych | 0 |
Timeline
- Mar 27, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Oct 24, 2025 CVE Updated
- Mar 6, 2026 Distribution Patch (2 in total, the first dated here)
- Mar 6, 2026 Security Advisory (5 in total, the first dated here)
- Sep 7, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-8324
vulnetix vdb fixes CVE-2019-8324
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-8324/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- openSUSE-SU-2019:1771 vendor-advisoryx_refsource_SUSE
- RHSA-2019:1972 vendor-advisoryx_refsource_REDHAT
- [debian-lts-announce] 20200816 [SECURITY] [DLA 2330-1] jruby security update mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2019-8324 advisory