Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted YUV420SP image to target app
-
ExploitTrigger integer overflow in yuv420sp2rgb size math
-
ExecutionUndersized allocation causes out-of-bounds heap write
-
ImpactCrash or limited memory corruption
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target application to invoke ncnn's YUV-to-RGB Conversion API (the ncnn::yuv420sp2rgb function in src/mat_pixel.cpp) on attacker-controlled image data, supplying crafted width/height/stride values that overflow an integer during buffer-size calculation. Concrete limiting factors: the victim application must actually accept and convert external YUV420SP input (UI:P / application-mediated processing), the deployment must use ncnn at or before commit 44b02dabdcf97499281a4692ebd65bad73dcf8b6, and the resulting impact is limited (Low confidentiality/integrity/availability, no scope change) - making denial of service or bounded heap corruption the realistic outcome rather than reliable remote code execution. |
| Impact | This is a medium-severity issue (CVSS 4.0 base 5.3) whose signals are internally consistent but point to limited real-world urgency. The vector AV:N/AC:L/PR:N/UI:P describes a remotely-reachable, unauthenticated, low-complexity flaw that nonetheless requires passive user interaction (UI:P) - the victim application must actually ingest and convert an attacker-supplied YUV420SP image via ncnn's Conversion API. Impact is uniformly Low across confidentiality, integrity and availability (VC:L/VI:L/VA:L) with no scope change, which is typical of an integer overflow (CWE-190) that may corrupt a heap buffer rather than yielding reliable code execution. The CVSS 4.0 Exploit Maturity is E:P (Proof-of-Concept), and the intelligence confirms publicly available exploit code via the GitHub issue, so 'publicly available exploit code exists' - but there is NO CISA KEV listing and NO EPSS score provided in the input, so widespread or active exploitation cannot be asserted. A noteworthy conflicting/weakening signal: this is reported solely by VulDB with the vendor (Tencent) having 'not responded yet,' meaning affected-version boundaries and impact severity are not vendor-confirmed. Net assessment: a legitimate but low-priority library bug - real because a POC exists and it is network-reachable, but de-prioritized by the required user/application interaction, the uniformly Low impact, the absence of KEV/EPSS corroboration, and its dependency on how downstream applications invoke the vulnerable conversion routine. |
| Exploit ScenarioDerived | An attacker crafts a malicious YUV420SP image with dimensions or stride values engineered to overflow an integer during size computation in ncnn::yuv420sp2rgb, then delivers it to an application (e.g., a mobile or server-side ML pipeline) that uses ncnn to convert camera/image input to RGB. When the victim application processes the image, the integer overflow produces an undersized allocation and subsequent out-of-bounds write, leading to a crash or limited heap corruption. A public proof-of-concept is already available via the Tencent/ncnn GitHub issue (#7035). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 19, 2026
Integer overflow in Tencent ncnn's YUV420SP-to-RGB conversion API (ncnn::yuv420sp2rgb in src/mat_pixel.cpp) lets unauthenticated remote attackers who can get a target application to process crafted YUV image dimensions or strides trigger an undersized buffer allocation and subsequent out-of-bounds writes. The flaw affects ncnn builds up to commit 44b02dabdcf97499281a4692ebd65bad73dcf8b6 and requires the application to process attacker-controlled YUV420SP data (UI:P); realistic outcomes are denial of service or bounded heap corruption with Low confidentiality, integrity, and availability impact rather than reliable remote code execution. Publicly available exploit code exists, and the vendor has not responded to the upstream issue report.
RemediationAI
No vendor-released patch was identified at time of analysis. Until an upstream fix is available via https://github.com/Tencent/ncnn/issues/7035 or the ncnn repository, validate caller-supplied width, height, and stride before invoking ncnn::yuv420sp2rgb, rejecting values where size calculations such as width*height or stride*height can overflow; this may reject some malformed or unusual frames. Avoid converting YUV420SP data from untrusted sources, or pre-validate frame geometry in the application layer, at the cost of reduced functionality for external media. Run ncnn conversions in a sandboxed or low-privilege worker process to contain heap corruption and denial-of-service effects, accepting added complexity and performance overhead. Monitor the upstream issue and repository for a fix commit or release and apply it when published; the VulDB entry is https://vuldb.com/vuln/421753.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ncnn is Tencent's lightweight neural-network inference framework; src/mat_pixel.cpp implements pixel-format conversion helpers used when feeding camera or video frames into models. In ncnn::yuv420sp2rgb, buffer sizes for the converted RGB output are derived from caller-supplied width, height, and stride values; integer overflow in those calculations (CWE-190) can cause a smaller-than-expected allocation followed by writes beyond the heap buffer. The CPE entry cpe:2.3:a:tencent:ncnn:*:*:*:*:*:*:*:* tracks the issue across ncnn versions up to commit 44b02dabdcf97499281a4692ebd65bad73dcf8b6. Exploitation requires the application to expose the Conversion API to untrusted YUV420SP input.
Know when Tencent gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Crafted image is network-deliverable (AV:N) and needs no privileges (PR:N) but the victim app must process it (UI:R); an integer overflow yields bounded heap corruption, so C/I/A are each Low.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A security flaw has been discovered in Tencent ncnn up to 44b02dabdcf97499281a4692ebd65bad73dcf8b6. Affected by this issue is the function ncnn::yuv420sp2rgb of the file src/mat_pixel.cpp of the component Conversion API. The manipulation results in integer overflow. The attack can be launched remotely. The exploit has been released to the public and may be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
WeKnora LLM framework (before 0.2.5) allows authenticated users to inject MCP stdio commands that the server executes as
OS command injection in WeKnora from version 0.2.5 allows authenticated users to execute arbitrary system commands. CVSS
SQL injection in WeKnora LLM document understanding framework allows authenticated users to extract arbitrary database c
vConsole v3.15.0 was discovered to contain a prototype pollution due to incorrect key and value resolution in setOptions
Insufficient authorization checks in WeKnora's tenant management endpoints allow any authenticated user to read, modify,
Insecure Permissions vulnerability in Tencent wechat v.8.0.37 allows an attacker to escalate privileges via the web-view
Tencent Blueking CMDB v3.2.x to v3.9.x was discovered to contain a Server-Side Request Forgery (SSRF) via the event subs
Tencent GameLoop before 4.1.21.90 downloaded updates over an insecure HTTP connection. Rated high severity (CVSS 8.1), t
In Tencent QQ through 9.7.8.29039 and TIM through 3.4.7.22084, QQProtect.exe and QQProtectEngine.dll do not validate poi
HaboMalHunter through 2.0.0.3 in Tencent Habo allows attackers to evade dynamic malware analysis via PIE compilation. Ra
Tencent tdsqlpcloud through 1.8.5 allows unauthenticated remote attackers to discover database credentials via an index.
A vulnerability in the lua parser of TscanCode tsclua v2.15.01 allows attackers to cause a Denial of Service (DoS) via a
EUVD-2026-104056
GHSA-8m72-m8r9-85xc
NVD
CVE.org
VulDB
Exploit-DB