Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malformed KTX2 file
-
DeliveryDeliver to victim or asset pipeline
-
ExploitVictim parses file via ktx info/validation path
-
ExecutionUnvalidated header offsets trigger out-of-bounds read
-
ImpactLeak adjacent memory or crash parser
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection 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 victim to process an attacker-crafted KTX2 file through KTX-Software's information/validation code path (e.g., the ktx info command or the printKTX2Info2 / validateDFD library functions). The crafted file supplies malformed KTX2 header fields - level index size, data-format-descriptor byteLength, key-value data byteLength, or supercompression global data byteOffset/byteLength - that the pre-patch code uses to read or allocate without checking them against the stream size, producing the out-of-bounds read. Limiting factors that reduce real-world risk: passive user interaction is required (UI:P) - a user or automated pipeline must feed the malicious file to the parser; no authentication or special privileges are needed; no non-default configuration is required beyond invoking the info/validation functionality; and impact is limited to information disclosure or a crash (LOW C/I/A), not code execution. |
| Impact | This is a medium-severity, out-of-bounds read (CWE-125) in KhronosGroup KTX-Software's informational/validation code path (printKTX2Info2/printLevelIndex/ktx::ValidationContext::validateDFD in lib/src/info.c). The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L, score 5.3) signals a low-complexity, no-privilege attack but with passive user interaction (UI:P) and only LOW impact to confidentiality, integrity, and availability - consistent with a file-parsing over-read rather than code execution. Supporting signals are mixed-to-low: it is NOT on CISA KEV (no confirmed active exploitation), no EPSS score was provided, and the PoC is a reference-only artifact (poc.zip) that is not verified as working exploit code; the vuln.today decision label is 'this_month' (patch on a normal cadence, not emergency). The source diff confirms the root cause precisely: pre-patch code trusts header-supplied offsets/lengths (level index, DFD, key-value data, supercompression global data) and reads/allocates without checking them against the stream size, which the patch fixes by adding checkBlockInStream/checkNextBlockInStream bounds checks. One signal to verify: the input marks AV:N (remote), but the actual trigger is processing an attacker-supplied KTX2 file through the info/validation path, which in practice is a local tool or library consuming a file delivered to it - AV:N is defensible only because the malicious file can be delivered remotely, and UI:P correctly captures the required victim action. Overall this is a real but non-urgent bug: patch within normal maintenance windows; it is not a high-priority emergency, and the public PoC is unverified rather than a confirmed weaponized exploit. |
| Exploit ScenarioDerived | An attacker crafts a malformed KTX2 texture file whose header declares level-index, DFD, key-value, or supercompression-global-data offsets/lengths that exceed the file's actual size. A victim (or an automated asset pipeline) runs the KTX info/validation functionality on that file, and the unvalidated offsets drive an out-of-bounds read that can leak adjacent process memory to output or crash the tool. A public PoC reference (poc.zip) exists but is not verified as working exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 29, 2026
An out-of-bounds read (CWE-125) in KhronosGroup KTX-Software through 5.0.0-rc2 is reachable through the library's information and validation routines - printKTX2Info2, printLevelIndex and ktx::ValidationContext::validateDFD in lib/src/info.c - when a crafted KTX2 file is parsed, allowing disclosure of adjacent memory or a crash of the consuming tool. Exploitation requires the victim (or an automated asset pipeline) to feed a malicious .ktx2 file to the info/validation code path, so user interaction beyond opening the file is not needed but the file must be actively supplied; no authentication or elevated privilege is required apart from the ability to deliver the file, which is why the assessed CVSS:3.1 vector is AV:N/AC:L/PR:N/UI:R with only LOW confidentiality and availability impact and no code execution. Severity is moderate (CVSS 5.3 per the CVSS:4.0 record) and a public PoC reference exists for this issue; it is not verified as working exploit code, and there is no indication of active exploitation. Khronos has fixed the flaw upstream in commit 320be06703673dcb59810bf93cda11b67f9d8693 (PR #1319), and the issue is tracked as this_month priority rather than an emergency.
RemediationAI
Apply the upstream fix commit 320be06703673dcb59810bf93cda11b67f9d8693 (merged via PR https://github.com/KhronosGroup/KTX-Software/pull/1319) or rebuild libktx/the ktx tool from a repository state that includes it; no tagged release version is confirmed in the available data, so treat the commit - not a version number - as the patch reference and confirm with the project advisory and issue https://github.com/KhronosGroup/KTX-Software/issues/1315 before relying on a prebuilt binary. Because the flaw only triggers when a crafted KTX2 file reaches the info/validation path, a compensating control is to avoid running ktx info, printKTX2Info2 or ValidationContext::validateDFD against files from untrusted or unauthenticated sources, or to sandbox those conversions with restricted memory access so a failed out-of-bounds read yields a contained crash instead of leaking process memory; the trade-off is that untrusted assets then go unvalidated and any corrupt texture must be caught later in the pipeline at the cost of downstream GPU or renderer errors. Preventing untrusted files from reaching the parser reduces exposure but does not remove the defect, so updating remains the complete fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
KTX2 is a container format for GPU textures specified by the Khronos Group; a KTX2 file begins with a header carrying offsets and byte lengths for the level index, the data format descriptor (DFD), key-value data and the supercompression global data (SGD), plus levelCount, layerCount, faceCount and pixelDepth fields. The affected code lives in lib/src/info.c of KTX-Software (libktx), which walks those header fields to print or validate file contents. Pre-patch, printKTX2Info2 computed levelIndexSize as a 32-bit product of sizeof(ktxLevelIndexEntry) and numLevels, allocated it and read from the stream without confirming the block fits inside the stream; similarly the DFD byteLength, key-value byteLength and the SGD byteOffset/byteLength were used to allocate and read without bounds checks against the stream size, and the image count for Basis/UASTC HDR supercompression was derived with 32-bit shifts that could be undefined (depth shifted by 32 or more bits). This is class CWE-125: out-of-bounds read - the root cause is unchecked, attacker-supplied size and offset metadata in the file header being trusted before reading or allocating. The upstream fix adds checkBlockInStream() and checkNextBlockInStream() helpers that compare a block's offset and length against the known stream size (returning KTX_FILE_UNEXPECTED_EOF when it extends past the end, KTX_OUT_OF_MEMORY when it cannot be allocated), widens levelIndexSize to 64 bits with explicit SIZE_MAX checks, rejects DFD byteLength values below sizeof(ktx_uint32_t), restricts the SGD bounds check to the KTX_SS_BASIS_LZ and KTX_SS_UASTC_HDR_6x6_INTERMEDIATE schemes, introduces numImagesInLevels() computing the image count in 64 bits with a UINT32_MAX cap, and corrects two format-string mismatches in printKVData/printKVDataJSON by casting values to unsigned. The trigger is untrusted file parsing through the info/validation path; no network service exposure of KTX-Software is described in the available sources.
Know when Ktx Software 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
Requires a victim to parse a crafted KTX2 file (UI:R) with no privileges; an out-of-bounds read yields limited memory disclosure (C:L) and a possible crash (A:L) with no integrity impact (I:N).
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A weakness has been identified in KhronosGroup KTX-Software up to 5.0.0-rc2. Affected is the function printKTX2Info2/printLevelIndex/ktx::ValidationContext::validateDFD of the file lib/src/info.c. This manipulation causes out-of-bounds read. The attack can be initiated remotely. The exploit has been made available to the public and could be used for attacks. Patch name: 320be06703673dcb59810bf93cda11b67f9d8693. It is suggested to install a patch to address this issue.
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.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-137726
GHSA-jc45-rff7-r7w6
NVD
CVE.org
EPSS
VulDB
Exploit-DB