Security mailing lists by PureSourceCode

CVE-2019-8324

HIGH 8.8CVSS 3.1

Code 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD rubygems rubygems
cpe:2.3:a:rubygems:rubygems:*:*:*:*:*:*:*:*
>= 2.6.0, <= 3.0.2
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
= 9.0
NVD opensuse leap
cpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:*
= 15.0
NVD opensuse leap
cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*
= 15.1
NVD redhat enterprise_linux
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.