An issue was discovered in WAVM before 2018-09-16. The loadModule function in Include/Inline/CLI.h lacks checking of the file length before a file magic comparison, allowing attackers to cause a Denial of Service (application crash caused by out-of-bounds read) by crafting a file that has fewer than 4 bytes.
{
"unresolved_ranges": [
{
"extracted_events": [
{
"fixed": "2018-09-16"
}
],
"source": "CPE_RANGE",
"vendor_product": "webassembly_virtual_machine_project:webassembly_virtual_machine",
"cpes": [
"cpe:2.3:a:webassembly_virtual_machine_project:webassembly_virtual_machine:*:*:*:*:*:*:*:*"
]
},
{
"source": "DESCRIPTION",
"extracted_events": [
{
"fixed": "2018-09-16"
}
]
}
]
}"2026-07-08T14:14:57Z"
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-17292.json"
[
{
"id": "CVE-2018-17292-2958001b",
"digest": {
"line_hashes": [
"112379488776436947612710551796701402285",
"298952837052144306289224370212553157791",
"333636664427175226892314460735793132550",
"49201747908917128368529990071983717468"
],
"threshold": 0.9
},
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/wavm/wavm/commit/2de6cf70c5ef31e22ed119a25ac2daeefd3d18a1",
"deprecated": false,
"target": {
"file": "Include/Inline/CLI.h"
}
},
{
"id": "CVE-2018-17292-bf49ce6b",
"digest": {
"function_hash": "117933967364559220472287494539571197985",
"length": 574.0
},
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/wavm/wavm/commit/2de6cf70c5ef31e22ed119a25ac2daeefd3d18a1",
"deprecated": false,
"target": {
"function": "loadModule",
"file": "Include/Inline/CLI.h"
}
}
]