CVE-2026-50144
ncnn: Out-of-bounds heap write in ParamDict::load_param via unchecked negative parameter id
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.
INFO
Published Date :
July 15, 2026, 8:17 p.m.
Last Modified :
Oct. 24, 2026, 9:10 p.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | [email protected] |
Solution
- Update ncnn to the latest version.
- Apply the fix from commit 5a0288f255daa6c3294f77109f67718e434ec020.
- Validate model parsing logic for security.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-50144.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-50144 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-50144
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-50144 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-50144 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 24, 2026
Action Type Old Value New Value Added Translation Title: ncnn de Tencent, Description: ncnn es un framework de inferencia de redes neuronales de alto rendimiento optimizado para la plataforma móvil. En el commit e54f7b1f88434e1d844ea0551b880a1cfb079ce1 y anteriores, ncnn permite una escritura fuera de límites en el heap (out-of-bounds heap write) en ncnn::ParamDict::load_param() cuando Net::load_param() carga un archivo de modelo .param malicioso porque el ID del parámetro analizado se verifica solo contra id >= NCNN_MAX_PARAM_COUNT, lo que permite que un ID negativo indexe antes del array params[NCNN_MAX_PARAM_COUNT]. Esta vulnerabilidad se corrige con el commit 5a0288f255daa6c3294f77109f67718e434ec020. -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jul. 17, 2026
Action Type Old Value New Value Added Reference https://github.com/Tencent/ncnn/security/advisories/GHSA-jxmc-3mv6-7pwr Added SSVC {'id': 'CVE-2026-50144', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-07-17T12:27:05.477293Z'} -
New CVE Received by [email protected]
Jul. 15, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'Tencent', 'product': 'ncnn', 'versions': [{'status': 'affected', 'version': '< 5a0288f255daa6c3294f77109f67718e434ec020'}, {'status': 'affected', 'version': '<= 20260526'}]}] Added 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. Added CVSS V3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H Added CWE CWE-20 Added CWE CWE-787 Added CWE CWE-129 Added Reference https://github.com/Tencent/ncnn/commit/5a0288f255daa6c3294f77109f67718e434ec020 Added Reference https://github.com/Tencent/ncnn/security/advisories/GHSA-jxmc-3mv6-7pwr