{"id":"CVE-2026-50144","published":"2026-07-15T20:04:07Z","modified":"2026-07-17T12:27:10Z","title":"ncnn: Out-of-bounds heap write in ParamDict::load_param via unchecked negative parameter id","vendor":"Tencent","product":"ncnn","tier":"tail","description":{"text":"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::load_param() when Net::load_param() loads a malicious .param model file because the parsed parameter id is checked only against id >= NCNN_MAX_PARAM_COUNT, allowing a negative id to index before the params[NCNN_MAX_PARAM_COUNT] array. This vulnerability is fixed by commit 5a0288f255daa6c3294f77109f67718e434ec020.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00161,"percentile":0.05385,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-129","name":"Improper Validation of Array Index"},{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://github.com/Tencent/ncnn/security/advisories/GHSA-jxmc-3mv6-7pwr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Tencent/ncnn/commit/5a0288f255daa6c3294f77109f67718e434ec020","tags":["x_refsource_MISC"]}],"priority":{"score":6.0,"factors":[{"name":"EPSS percentile","points":1.08},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"tencent","affectedVersions":[{"vendor":"Tencent","product":"ncnn","versions":["< 5a0288f255daa6c3294f77109f67718e434ec020","<= 20260526"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-07-17T12:27:05.477293Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-44794","exploited":false,"provenance":"source"}}