CVE-2026-50144 Details
Description
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.
A vulnerability allowing an out-of-bounds heap write has been identified in the ncnn neural network inference framework, specifically in versions through commit e54f7b1f88434e1d844ea0551b880a1cfb079ce1. The issue arises in the ParamDict::load_param() function when loading a malicious .param model file. The vulnerability is caused by insufficient validation of the parameter id, which is only checked against an upper limit, allowing negative ids to index before the params array, leading to memory corruption. This flaw can be exploited to cause a denial-of-service or potentially allow code execution.
Users should update to the latest version of ncnn, where this vulnerability has been fixed by adding the missing lower-bound check for parameter ids. The fix should be applied to both the text and binary parameter loaders.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 17, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-129 | Improper Validation of Array Index | [email protected] |
| CWE-20 | Improper Input Validation | [email protected] |
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
No affected product data is available for this CVE.
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 17, 2026 | CVE Modified | CISA-ADP |
| Jul 15, 2026 | New CVE Received | [email protected] |