cve.bz

CVE-2019-8324 Code Injection

8.8 highEPSS 3.2%Fix available

High (8.8). EPSS 3.2% estimated probability of exploitation activity in the next 30 days. Fixed in rubygems-update 2.7.9, 3.0.2.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
3.2% (unchanged from 3.2% a week ago; 3.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-8324 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-8324?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-8324?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-8324 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rubygems:rubygemsfrom 2.6.0 through 3.0.2
debian:debian_linux9.0
opensuse:leap15.0
opensuse:leap15.1
redhat:enterprise_linux8.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-76wm-422q-92mqRubyGemsrubygems-update>=2.6.0 <2.7.92.7.9
GHSA-76wm-422q-92mqRubyGemsrubygems-update>=3.0.0 <3.0.23.0.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8jruby1.5.6-9+deb8u1DLA-1796-1
Debian8ruby2.12.1.5-2+deb8u7DLA-1735-1
Debian9jruby1.7.26-1+deb9u2DLA-2330-1
Debian9ruby2.32.3.3-1+deb9u6DSA-4433-1
Debian12, 13, 14jruby9.1.17.0-3DEBIAN-CVE-2019-8324
Debian12, 13, 14rubygems3.2.0~rc.1-1DEBIAN-CVE-2019-8324
Ubuntu14.04:LTSruby1.9.11.9.3.484-2ubuntu1.14UBUNTU-CVE-2019-8324 USN-3945-1
Ubuntu14.04:LTSruby2.02.0.0.484-1ubuntu2.13UBUNTU-CVE-2019-8324 USN-3945-1
Ubuntu16.04:LTSruby2.32.3.1-2~16.04.12UBUNTU-CVE-2019-8324 USN-3945-1
Ubuntu18.04:LTSjrubyno fix listedUBUNTU-CVE-2019-8324
Ubuntu18.04:LTSruby2.52.5.1-1ubuntu1.2UBUNTU-CVE-2019-8324 USN-3945-1
UbuntuPro:14.04:LTSjruby1.5.6-9+deb8u2build0.14.04.1~esm2UBUNTU-CVE-2019-8324
Red Hatcloudforms_managementengine:5.10::el7cfme, cfme-gemset, cfme-appliance and 6 more0:5.10.5.1-1.el7cfRHSA-2019:1429
Red Hatcloudforms_managementengine:5.10::el7ruby, ruby-doc, ruby-irb and 3 more0:2.4.6-91.el7cfRHSA-2019:1429
Red Hatcloudforms_managementengine:5.10::el7rubygem-bigdecimal0:1.3.2-91.el7cfRHSA-2019:1429
Red Hatcloudforms_managementengine:5.10::el7rubygem-did_you_mean0:1.1.0-91.el7cfRHSA-2019:1429
Red Hatcloudforms_managementengine:5.10::el7rubygem-io-console0:0.4.6-91.el7cfRHSA-2019:1429
Red Hatcloudforms_managementengine:5.10::el7rubygem-minitest0:5.10.1-91.el7cfRHSA-2019:1429
Red Hatcloudforms_managementengine:5.10::el7rubygem-net-telnet0:0.1.1-91.el7cfRHSA-2019:1429
Red Hatcloudforms_managementengine:5.10::el7rubygem-openssl0:2.0.9-91.el7cfRHSA-2019:1429
Red Hatcloudforms_managementengine:5.10::el7rubygem-power_assert0:0.4.1-91.el7cfRHSA-2019:1429
Red Hatcloudforms_managementengine:5.10::el7rubygem-psych0:2.2.2-91.el7cfRHSA-2019:1429
Red Hatcloudforms_managementengine:5.10::el7rubygem-rake0:12.0.0-91.el7cfRHSA-2019:1429
Red Hatcloudforms_managementengine:5.10::el7rubygem-rdoc0:5.0.0-91.el7cfRHSA-2019:1429
113 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 14 moreruby2.12.1.9-19.3.2SUSE-SU-2020:1570-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Basesystem 15 SP1ruby2.52.5.5-4.3.1SUSE-SU-2019:1804-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP2-LTSS, Linux Enterprise Server for SAP Applications 12 SP2 and 1 moreyast2-ruby-bindings3.1.53-9.8.1SUSE-SU-2020:1570-1
openSUSELeap 15.0, Leap 15.1ruby-bundled-gems-rpmhelper0.0.2-lp151.2.1openSUSE-SU-2019:1771-1
openSUSELeap 15.0, Leap 15.1ruby2.52.5.5-lp151.4.3.1openSUSE-SU-2019:1771-1
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.5.0+259+8cec6917ALSA-2019:1972
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.5.0+2623+08a8ba32ALSA-2019:1972
AlmaLinux8rubygem-bson, rubygem-bson-doc4.3.0-2.module_el8.5.0+259+8cec6917ALSA-2019:1972
AlmaLinux8rubygem-bson, rubygem-bson-doc4.3.0-2.module_el8.5.0+2625+ec418553ALSA-2019:1972
AlmaLinux8rubygem-mongo, rubygem-mongo-doc2.5.1-2.module_el8.5.0+259+8cec6917ALSA-2019:1972
AlmaLinux8rubygem-mongo, rubygem-mongo-doc2.5.1-2.module_el8.5.0+2625+ec418553ALSA-2019:1972
AlmaLinux8rubygem-mysql2, rubygem-mysql2-doc0.4.10-4.module_el8.5.0+259+8cec6917ALSA-2019:1972
AlmaLinux8rubygem-mysql2, rubygem-mysql2-doc0.4.10-4.module_el8.5.0+2625+ec418553ALSA-2019:1972
AlmaLinux8rubygem-pg, rubygem-pg-doc1.0.0-2.module_el8.5.0+259+8cec6917ALSA-2019:1972
AlmaLinux8rubygem-pg, rubygem-pg-doc1.0.0-2.module_el8.5.0+2625+ec418553ALSA-2019:1972
Rocky Linux8rubygem-abrt0:0.3.0-4.module+el8.3.0+167+5c390590RLSA-2019:1972
Rocky Linux8rubygem-abrt0:0.3.0-4.module+el8.4.0+592+03ff458aRLSA-2019:1972
Rocky Linux8rubygem-abrt0:0.3.0-4.module+el8.5.0+738+032c9c02RLSA-2019:1972
Rocky Linux8rubygem-bson0:4.3.0-2.module+el8.3.0+167+5c390590RLSA-2019:1972
Rocky Linux8rubygem-bson0:4.3.0-2.module+el8.4.0+592+03ff458aRLSA-2019:1972
Rocky Linux8rubygem-bundler0:1.16.1-3.module+el8.3.0+167+5c390590RLSA-2019:1972
Rocky Linux8rubygem-bundler0:1.16.1-3.module+el8.4.0+592+03ff458aRLSA-2019:1972
Rocky Linux8rubygem-mongo0:2.5.1-2.module+el8.4.0+349+3470f258RLSA-2019:1972
Rocky Linux8rubygem-mongo0:2.5.1-2.module+el8.4.0+592+03ff458aRLSA-2019:1972
Rocky Linux8rubygem-mysql20:0.4.10-4.module+el8.3.0+167+5c390590RLSA-2019:1972
Rocky Linux8rubygem-mysql20:0.4.10-4.module+el8.4.0+592+03ff458aRLSA-2019:1972
Rocky Linux8rubygem-mysql20:0.4.10-4.module+el8.5.0+739+43897a5eRLSA-2019:1972
2 more for Rocky Linux in the JSON.
Alpinev3.6, v3.7ruby2.4.6-r0ALPINE-CVE-2019-8324
Alpinev3.8, v3.9ruby2.5.5-r0ALPINE-CVE-2019-8324

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
CloudForms Management Engine 5.10cfme-0:5.10.5.1-1.el7cfFixed 2019-06-11RHSA-2019:1429
CloudForms Management Engine 5.10cfme-amazon-smartstate-0:5.10.5.1-1.el7cfFixed 2019-06-11RHSA-2019:1429
CloudForms Management Engine 5.10cfme-appliance-0:5.10.5.1-1.el7cfFixed 2019-06-11RHSA-2019:1429
CloudForms Management Engine 5.10cfme-gemset-0:5.10.5.1-1.el7cfFixed 2019-06-11RHSA-2019:1429
CloudForms Management Engine 5.10ruby-0:2.4.6-91.el7cfFixed 2019-06-11RHSA-2019:1429
Red Hat Enterprise Linux 7ruby-0:2.0.0.648-35.el7_6Fixed 2019-05-15RHSA-2019:1235
Red Hat Enterprise Linux 7.4 Advanced Update Supportruby-0:2.0.0.648-37.el7_4Fixed 2020-06-30RHSA-2020:2769
Red Hat Enterprise Linux 7.4 Telco Extended Update Supportruby-0:2.0.0.648-37.el7_4Fixed 2020-06-30RHSA-2020:2769
Red Hat Enterprise Linux 7.4 Update Services for SAP Solutionsruby-0:2.0.0.648-37.el7_4Fixed 2020-06-30RHSA-2020:2769
Red Hat Enterprise Linux 8ruby:2.5-8000020190524123348.55190bc5Fixed 2019-08-07RHSA-2019:1972
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-ruby24-ruby-0:2.4.6-92.el6Fixed 2019-05-13RHSA-2019:1150
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-ruby23-ruby-0:2.3.8-70.el6Fixed 2019-05-13RHSA-2019:1151
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby25-ruby-0:2.5.5-7.el7Fixed 2019-05-13RHSA-2019:1148
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby24-ruby-0:2.4.6-92.el7Fixed 2019-05-13RHSA-2019:1150
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby23-ruby-0:2.3.8-70.el7Fixed 2019-05-13RHSA-2019:1151
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-ruby25-ruby-0:2.5.5-7.el7Fixed 2019-05-13RHSA-2019:1148
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-ruby24-ruby-0:2.4.6-92.el7Fixed 2019-05-13RHSA-2019:1150
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-ruby23-ruby-0:2.3.8-70.el7Fixed 2019-05-13RHSA-2019:1151
Red Hat Enterprise Linux 6rubygemsNot affected
Red Hat Software Collectionsrh-ruby26-rubyNot affected
6 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-8324.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON