Critical
Security advisory
In versions of mruby up to and including 1.4.0, a use-after-free vulnerability exists in src/io.c::File#initilialize_copy(). An attacker that can cause Ruby code to be run can possibly use this to execute arbitrary code.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-10199
- 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, a use-after-free vulnerability exists in src/io.c::File#initilialize_copy(). An attacker that can cause Ruby code to be run can possibly use this to execute arbitrary code.
osv:CVE-2018-10199
Complete source record
{
"id": "46d999475e053ca929711ed71fa0546bd119f1dde5ee1d79c572ca39e82f0dbc",
"url": "https://osv.dev/vulnerability/CVE-2018-10199",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-10199",
"summary": "In versions of mruby up to and including 1.4.0, a use-after-free vulnerability exists in src/io.c::File#initilialize_copy(). An attacker that can cause Ruby code to be run can possibly use this to execute arbitrary code.",
"evidence": "osv:CVE-2018-10199",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2018-10199",
"aliases": [
"CVE-2018-10199"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/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": "b51b21fc63c9805862322551387d9036f2b63433"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:mruby:mruby:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.4.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "b51b21fc63c9805862322551387d9036f2b63433"
}
],
"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-10199.json",
"vanir_signatures": [
{
"id": "CVE-2018-10199-3968ad5e",
"digest": {
"length": 1032,
"function_hash": "176470287796102068116200247742974157189"
},
"source": "https://github.com/mruby/mruby/commit/b51b21fc63c9805862322551387d9036f2b63433",
"target": {
"file": "mrbgems/mruby-io/src/io.c",
"function": "mrb_io_initialize_copy"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2018-10199-74069e8a",
"digest": {
"threshold": 0.9,
"line_hashes": [
"26428399209722362404772608474695113136",
"222149713925856606992976566986370645464",
"242975534844887006541029859650857140185",
"283945130415032626426675985272024724847",
"113971097661674165332142934430449657499",
"31486327155438268750255794855118764637",
"333268945746951759752781923786946114447",
"84224174781620867617528170324289898103",
"160934137204212079820212675447251727175",
"98899778162484268282287483093347673153",
"29675728426105141391949315817511663971"
]
},
"source": "https://github.com/mruby/mruby/commit/b51b21fc63c9805862322551387d9036f2b63433",
"target": {
"file": "mrbgems/mruby-io/src/io.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:28:31Z"
}
}
],
"modified": "2026-10-20T13:28:31.854251915Z",
"provider": "osv",
"references": [
"https://github.com/mruby/mruby/issues/4001",
"https://github.com/mruby/mruby/commit/b51b21fc63c9805862322551387d9036f2b63433"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2018-10199",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387717,
"published_at": "2018-04-18T15:29:00.207+00:00"
}