SecurityContext

CVE-2020-6840: mruby - Use After Free

  • Cve: CVE-2020-6840
  • Name: mruby - Use After Free
  • Description: In mruby 2.1.0, there is a use-after-free in hash_slice in mrbgems/mruby-hash-ext/src/hash-ext.c.
  • Impact: Attackers may execute arbitrary code or cause denial of service by triggering use-after-free.
  • Remediation: Update to the latest version of mruby where the issue is fixed or apply patches addressing the use-after-free.
  • Vulnerability type: use_after_free
  • Vulnerability impact: remote_code_execution, denial_of_service
  • Requirement type: none
  • 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.01505
  • Epss percentile: 0.75026
  • Assignee: [email protected]
  • Published at: 2020-01-11T03:15:11Z
  • Age in days: 2509
  • Modified at: 2026-06-17T03:23:54Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-6840
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-416Use After Free

Public exploits

UrlSourceAdded date
https://github.com/mruby/mruby/issues/4927nvd2020-01-11

References

UrlSourceTags
https://github.com/mruby/mruby/issues/4927nvdExploit, Patch, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
mruby:mruby= 2.1.0nonvd/v1/products/mruby/mruby

Projects

RepositoryLink kindsIndexedUrl
mruby/mrubyissuesyes/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: 2020-01-11
  • Remote: yes
  • 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, exposed hosts