Critical
Security advisory
In versions of mruby up to and including 1.4.0, an integer overflow exists in src/vm.c::mrb_vm_exec() when handling OP_GETUPVAR in the presence of deep scope nesting, resulting in a use-after-free. An attacker that can cause Ruby code to be run can use this to possibly execute arbitrary code.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-10191
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:24 UTC · Revision 1
Source evidence
In versions of mruby up to and including 1.4.0, an integer overflow exists in src/vm.c::mrb_vm_exec() when handling OP_GETUPVAR in the presence of deep scope nesting, resulting in a use-after-free. An attacker that can cause Ruby code to be run can use this to possibly execute arbitrary code.
osv:CVE-2018-10191
Complete source record
{
"id": "54381821941d02c31d30f7d4443633f9ffbe93cebab74680b3ef84717860965d",
"url": "https://osv.dev/vulnerability/CVE-2018-10191",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-10191",
"summary": "In versions of mruby up to and including 1.4.0, an integer overflow exists in src/vm.c::mrb_vm_exec() when handling OP_GETUPVAR in the presence of deep scope nesting, resulting in a use-after-free. An attacker that can cause Ruby code to be run can use this to possibly execute arbitrary code.",
"evidence": "osv:CVE-2018-10191",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2018-10191",
"aliases": [
"CVE-2018-10191"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/mruby/mruby",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "58fb6f421ad9824caae5a2cabb849d48647b90ec"
},
{
"fixed": "1905091634a6a2925c911484434448e568330626"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:mruby:mruby:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.4.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "1905091634a6a2925c911484434448e568330626"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"1.4.0",
"1.2.0",
"1.1.0",
"1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-10191.json",
"vanir_signatures": [
{
"id": "CVE-2018-10191-4f906dc6",
"digest": {
"threshold": 0.9,
"line_hashes": [
"318179098320671580796334812011546468836",
"31385894504806590158479134728976733374",
"291488986920338441806228910834754532837",
"234188554461621141776788455322527686487",
"12890778145267399150668197333810861362",
"46198236631767394421020263073167925398",
"315187527932322571882289740280446195103",
"295169726589021630819681535583790457470"
]
},
"source": "https://github.com/mruby/mruby/commit/1905091634a6a2925c911484434448e568330626",
"target": {
"file": "src/vm.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2018-10191-9de90541",
"digest": {
"length": 34172,
"function_hash": "105486956670678688502489234273124890437"
},
"source": "https://github.com/mruby/mruby/commit/1905091634a6a2925c911484434448e568330626",
"target": {
"file": "src/vm.c",
"function": "mrb_vm_exec"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:28:32Z"
}
}
],
"modified": "2026-10-20T13:28:32.615844452Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2022/05/msg00006.html",
"https://github.com/mruby/mruby/issues/3995",
"https://github.com/mruby/mruby/commit/1905091634a6a2925c911484434448e568330626"
],
"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"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2018-10191",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387719,
"published_at": "2018-04-17T21:29:00.233+00:00"
}