Critical
Security advisory
In mruby 2.1.0, there is a use-after-free in hash_slice in mrbgems/mruby-hash-ext/src/hash-ext.c.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-6840
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:13 UTC · Revision 1
Source evidence
In mruby 2.1.0, there is a use-after-free in hash_slice in mrbgems/mruby-hash-ext/src/hash-ext.c.
osv:CVE-2020-6840
Complete source record
{
"id": "509920065b2b1cffb7972ff416dc84eb2978cc82641a31117d7ff8f79c61fc45",
"url": "https://osv.dev/vulnerability/CVE-2020-6840",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-6840",
"summary": "In mruby 2.1.0, there is a use-after-free in hash_slice in mrbgems/mruby-hash-ext/src/hash-ext.c.",
"evidence": "osv:CVE-2020-6840",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2020-6840",
"aliases": [
"CVE-2020-6840"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/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": "57a56ddaa26d1bb7d67c8dde435b2e08dc17290f"
},
{
"last_affected": "57a56ddaa26d1bb7d67c8dde435b2e08dc17290f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:mruby:mruby:2.1.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.1.0"
},
{
"last_affected": "2.1.0"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"2.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-6840.json"
}
}
],
"modified": "2026-10-20T10:53:29.644222048Z",
"provider": "osv",
"references": [
"https://github.com/mruby/mruby/issues/4927"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2020-6840",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 384363,
"published_at": "2020-01-11T03:15:11.09+00:00"
}