Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 95%

CVE-2026-50144: CWE-20: Improper Input Validation in Tencent ncnn

0
High
VulnerabilityCVE-2026-50144cvecve-2026-50144cwe-20cwe-129cwe-787
Published: 07/15/2026 (07/15/2026, 20:04:07 UTC)
Source: CVE Database V5
Vendor/Project: Tencent
Product: ncnn

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.

CVSS v3.1

Score 7.1high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/22/2026, 22:54:50 UTC

Technical Analysis

CVE-2026-50144 describes an improper input validation vulnerability in Tencent's ncnn framework. Specifically, in commit e54f7b1f88434e1d844ea0551b880a1cfb079ce1 and earlier, the load_param() function in ncnn::ParamDict allows an out-of-bounds heap write when loading a malicious .param model file. The parameter ID is only checked against being greater than or equal to NCNN_MAX_PARAM_COUNT, but negative IDs are not properly handled, enabling indexing before the params array. This vulnerability is addressed by commit 5a0288f255daa6c3294f77109f67718e434ec020.

Potential Impact

The vulnerability allows an attacker to cause an out-of-bounds heap write, which can lead to integrity and availability impacts such as application crashes or potential code execution. The CVSS v3.1 score is 7.1 (high), with attack vector local, low attack complexity, no privileges required, user interaction required, unchanged scope, no confidentiality impact, high integrity impact, and high availability impact.

Mitigation Recommendations

A fix for this vulnerability is available as it was addressed in commit 5a0288f255daa6c3294f77109f67718e434ec020. Users should update to a version of ncnn that includes this commit to remediate the issue. Patch status is not explicitly confirmed in vendor advisories, so users should verify the presence of this fix in their version. No additional mitigations are specified.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-03T18:49:32.275Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a57eb0b68715ace4363c88d

Added to database: 07/15/2026, 20:18:19 UTC

Last enriched: 07/22/2026, 22:54:50 UTC

Last updated: 08/29/2026, 22:52:12 UTC

Views: 75

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses