CVE-2019-8324
HIGH 8.8CVSS 3.1Code injection in 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.
- Published
- 17 Jun 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-76wm-422q-92mq
- Sources
- NVDJSONOSV GHSA-76wm-422q-92mqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubygems | rubygemscpe:2.3:a:rubygems:rubygems:*:*:*:*:*:*:*:* |
>= 2.6.0, <= 3.0.2 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | opensuse | leapcpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:* |
= 15.0 | |
| NVD | opensuse | leapcpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:* |
= 15.1 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| OSV | RubyGems | rubygems-update | >= 2.6.0, < 2.7.9 | 2.7.9 |
| OSV | RubyGems | rubygems-update | >= 3.0.0, < 3.0.2 | 3.0.2 |
References
- http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html · Mailing List, Third Party Advisory, WEB
- https://access.redhat.com/errata/RHSA-2019:1972 · Third Party Advisory, WEB
- https://hackerone.com/reports/328571 · Permissions Required, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html · Mailing List, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2019-8324 · ADVISORY
- https://blog.rubygems.org/2019/03/05/security-advisories-2019-03.html · WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubygems-update/CVE-2019-8324.yml · WEB
History
- 25 Nov 2026 20:22 UTC · NVD: first stored (published 17 Jun 2019)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 20 Jun 2019)