SecurityContext

CVE-2018-10191: mruby - Use After Free

  • Cve: CVE-2018-10191
  • Name: mruby - Use After Free
  • Description: 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.
  • Impact: Attackers can execute arbitrary code through the use-after-free vulnerability when deep scope nesting is present.
  • Remediation: Update to the latest version of mruby where the issue is fixed.
  • Vulnerability type: use_after_free
  • Vulnerability impact: remote_code_execution
  • Requirement type: user_interaction
  • Requirements: Attacker needs to cause Ruby code to be run
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.02638
  • Epss percentile: 0.85951
  • Assignee: [email protected]
  • Published at: 2018-04-17T21:29:00Z
  • Age in days: 3143
  • Modified at: 2026-06-17T01:33:38Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-10191
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-190Integer Overflow or Wraparound

Public exploits

UrlSourceAdded date
https://github.com/mruby/mruby/issues/3995nvd2018-04-17

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/mruby/mruby/commit/1905091634a6a2925c911484434448e568330626Patch, Third Party Advisory
https://github.com/mruby/mruby/issues/3995Exploit, Issue Tracking, Third Party Advisory
https://lists.debian.org/debian-lts-announce/2022/05/msg00006.htmlMailing List, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
mruby:mruby<= 1.4.0nonvd/v1/products/mruby/mruby
debian:debian_linux= 9.0nonvd/v1/products/debian/debian_linux

Projects

RepositoryLink kindsIndexedUrl
mruby/mrubycommit, fix, issuesyes/v1/repositories/mruby/mruby

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2018-04-17
  • Remote: yes
  • Exposed hosts: 4706702
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports