High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2019-8324
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 06:20 UTC · Revision 1
Source evidence
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.
osv:CVE-2019-8324
Complete source record
{
"id": "4437bf53e4827d68b9984f0d70bc2cbea5c2733e1c83889eabd15e0babb7e917",
"url": "https://osv.dev/vulnerability/CVE-2019-8324",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2019-8324",
"summary": "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.",
"evidence": "osv:CVE-2019-8324",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2019-8324",
"aliases": [
"CVE-2019-8324",
"GHSA-76wm-422q-92mq"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/ruby/rubygems",
"type": "GIT",
"events": [
{
"introduced": "4bfc34cb00f3be715d811bf9106e01a4893fbf92"
},
{
"last_affected": "d5ddf07a88a89c34339b268533de594990f7170b"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:rubygems:rubygems:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.6.0"
},
{
"last_affected": "3.0.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v3.0.2",
"v3.0.1",
"v3.0.0",
"v3.0.0.beta3",
"v3.0.0.beta1",
"v2.7.3",
"v2.7.2",
"v2.7.0",
"v2.7.1",
"v2.6.6",
"v2.6.5",
"v2.6.3",
"v2.6.4",
"v2.6.2",
"v2.6.1",
"v2.6.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-8324.json"
}
}
],
"modified": "2026-10-24T10:30:37.948546467Z",
"provider": "osv",
"references": [
"https://access.redhat.com/errata/RHSA-2019:1972",
"https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html",
"https://hackerone.com/reports/328571"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:*",
"cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*"
],
"vendor_product": "opensuse:leap",
"extracted_events": [
{
"range": [
{
"introduced": "15.0"
},
{
"last_affected": "15.0"
},
{
"introduced": "15.1"
},
{
"last_affected": "15.1"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"
],
"vendor_product": "redhat:enterprise_linux",
"extracted_events": [
{
"range": [
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2019-8324",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 434345,
"published_at": "2019-06-17T19:15:11.843+00:00"
}