SecurityContext

CVE-2019-8324: RubyGems - Command Injection

  • Cve: CVE-2019-8324
  • Name: RubyGems - Command Injection
  • 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.
  • Impact: Attackers can execute arbitrary code during gem installation, potentially leading to remote code execution on the system.
  • Remediation: Update to RubyGems version 3.0.3 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.03219
  • Epss percentile: 0.88539
  • Assignee: [email protected]
  • Published at: 2019-06-17T19:15:11Z
  • Age in days: 2717
  • Modified at: 2026-06-17T02:41:50Z
  • References total: 4
  • Products total: 4
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-8324
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements

Cwe

IdName
CWE-94Improper Control of Generation of Code

Hackerone

  • Reports: 2
  • Rank: 3806

References

Same in every row:

  • Source: nvd
UrlTags
http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.htmlMailing List, Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:1972Third Party Advisory
https://hackerone.com/reports/328571Permissions Required, Third Party Advisory
https://lists.debian.org/debian-lts-announce/2020/08/msg00027.htmlMailing List, Third Party Advisory

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
rubygems:rubygems>= 2.6.0, <= 3.0.2/v1/products/rubygems/rubygems
debian:debian_linux= 9.0/v1/products/debian/debian_linux
redhat:enterprise_linux= 8.0/v1/products/redhat/enterprise_linux
opensuse:leap= 15.1, = 15.0/v1/products/opensuse/leap

Projects

RepositoryLink kindsIndexedUrl
rubygems/rubygemsproductyes/v1/repositories/rubygems/rubygems

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Hackerone reports: 2
  • Exposed hosts: 4739835
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since