{"id":"CVE-2018-10199","aliases":["DEBIAN-CVE-2018-10199","EUVD-2018-2275","GHSA-xpq9-m45f-g29q","UBUNTU-CVE-2018-10199"],"status":"published","title":"In versions of mruby up to and including 1.4.0, a use-after-free vulnerability exists in src/io.c...","description":"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.","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02264,"percentile":0.83124,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-416"],"published":"2018-04-18T15:00:00Z","modified":"2026-10-23T18:02:56Z","fixes":[{"ecosystem":"Debian:12","package":"mruby","fixed_in":["1.4.0+20180418+git54905e98-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"mruby","fixed_in":["1.4.0+20180418+git54905e98-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"mruby","fixed_in":["1.4.0+20180418+git54905e98-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"mruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.0+20180418+git54905e98-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"mruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.0+20180418+git54905e98-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"mruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.0+20180418+git54905e98-1"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"mruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.0+20150817+gita1731254-1","1.1.0+20150906+git1cbbb7e1-1","1.2.0+20160315+git4f20d58a-1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"mruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.0-1","1.3.0+20170925+git38185028-1","1.3.0+20171029+git77edafb0-1","1.4.0-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"mruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"mruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.2-3","3.0.0-1","3.0.0-3"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"mruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.2.0-1","3.2.0-2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"mruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.3.0-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"mruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.0-2","3.4.0-3","4.0.0-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"mruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.3.0-1","3.4.0-2"]}],"products":[{"vendor":"mruby","product":"mruby"}],"references":[{"url":"https://github.com/mruby/mruby/commit/b51b21fc63c9805862322551387d9036f2b63433","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix","report"]},{"url":"https://github.com/mruby/mruby/issues/4001","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-10199"},{"url":"https://github.com/advisories/GHSA-xpq9-m45f-g29q"},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-10199","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-10199","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-10199","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2018-10199","description":"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.","status":"published","published":"2018-04-18T15:00:00Z","modified":"2024-09-16T21:58:11.054Z","updated_at":"2026-11-02T14:35:01.619448Z"}],"euvd":[{"id":"EUVD-2018-2275","description":"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.","status":"published","published":"2018-04-18T15:00:00Z","modified":"2024-09-16T21:58:11Z","updated_at":"2026-11-03T00:55:06.714252Z"}],"ghsa":[{"id":"GHSA-xpq9-m45f-g29q","title":"In versions of mruby up to and including 1.4.0, a use-after-free vulnerability exists in src/io.c...","description":"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.","status":"published","published":"2022-05-14T03:21:42Z","modified":"2023-02-02T05:07:46Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:52:34.922323Z"}],"nvd":[{"id":"CVE-2018-10199","description":"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.","status":"published","published":"2018-04-18T15:29:00.207Z","modified":"2026-06-17T01:33:40.13Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:04:25.506659Z"}],"osv":[{"id":"CVE-2018-10199","description":"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.","status":"published","published":"2018-04-18T15:29:00.207Z","modified":"2026-10-20T13:28:31.854251915Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:07.641418Z"},{"id":"DEBIAN-CVE-2018-10199","description":"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.","status":"published","published":"2018-04-18T15:29:00.207Z","modified":"2026-10-23T18:02:56.532062847Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:29.988046Z"},{"id":"UBUNTU-CVE-2018-10199","description":"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.","status":"published","published":"2018-04-18T15:29:00Z","modified":"2026-10-17T12:53:54.318018638Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:16.544091Z"}]}}
