ncnn is a high-performance neural network inference framework optimized for the mobile platform. In commit e54f7b1f88434e1d844ea0551b880a1cfb079ce1 and earlier, ncnn allows an out-of-bounds heap write in ncnn::ParamDict::loadparam() when Net::loadparam() loads a malicious .param model file because the parsed parameter id is checked only against id >= NCNNMAXPARAMCOUNT, allowing a negative id to index before the params[NCNNMAXPARAMCOUNT] array. This vulnerability is fixed by commit 5a0288f255daa6c3294f77109f67718e434ec020.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50144.json",
"unresolved_ranges": [
{
"source": "AFFECTED_FIELD",
"extracted_events": [
{
"fixed": "5a0288f255daa6c3294f77109f67718e434ec020"
}
]
}
],
"cwe_ids": [
"CWE-129",
"CWE-20",
"CWE-787"
],
"cna_assigner": "GitHub_M"
}[
{
"id": "CVE-2026-50144-103a1a0e",
"target": {
"function": "ParamDict::load_param",
"file": "src/paramdict.cpp"
},
"deprecated": false,
"digest": {
"function_hash": "171297044334995494663078596060466133510",
"length": 3618.0
},
"signature_version": "v1",
"source": "https://github.com/tencent/ncnn/commit/5a0288f255daa6c3294f77109f67718e434ec020",
"signature_type": "Function"
},
{
"id": "CVE-2026-50144-1def21a3",
"target": {
"file": "src/paramdict.cpp"
},
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"181853437630716551010737920368319553457",
"299637648197898981894720791795991685189",
"299458721291546431739895988765752750296",
"108422265294207834176307630156347872400",
"181853437630716551010737920368319553457",
"299637648197898981894720791795991685189",
"299458721291546431739895988765752750296",
"108422265294207834176307630156347872400"
]
},
"signature_version": "v1",
"source": "https://github.com/tencent/ncnn/commit/5a0288f255daa6c3294f77109f67718e434ec020",
"signature_type": "Line"
},
{
"id": "CVE-2026-50144-8c88893a",
"target": {
"function": "ParamDict::load_param_bin",
"file": "src/paramdict.cpp"
},
"deprecated": false,
"digest": {
"function_hash": "246336981704188830382479758241099552672",
"length": 2403.0
},
"signature_version": "v1",
"source": "https://github.com/tencent/ncnn/commit/5a0288f255daa6c3294f77109f67718e434ec020",
"signature_type": "Function"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-50144.json"
"2026-08-12T16:09:42Z"