Use After Free Affecting mruby/mruby package, versions [,1.4.1)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.41% (74th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-MRUBYMRUBY-2333604
  • published12 Jan 2022
  • disclosed18 Apr 2018
  • creditUnknown

Introduced: 18 Apr 2018

CVE-2018-10199  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade mruby/mruby to version 1.4.1 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free. 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.

CVSS Scores

version 3.1