Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted grayscale JPEG (direct or in .lottie)
-
DeliveryApp renders image via ThorVG
-
ExploitDuplicate SOS component inflates m_blocks_per_mcu
-
ExecutionDecoder writes past heap buffer
-
ImpactMemory corruption and process crash (DoS)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that an application use ThorVG (<= 1.1.1 or main) to decode or render an attacker-supplied JPEG - either a direct .jpg passed to ThorVG's JPEG loader, or a JPEG embedded inside a .lottie/dotLottie that ThorVG renders. The specific trigger is a JPEG (demonstrated on a 1-component grayscale image) whose SOS scan header lists the same component selector multiple times; no special ThorVG configuration, feature flag, or authentication is needed. The main limiting factor is reachability of untrusted image input: the target app must actually feed externally-controlled image/Lottie content to ThorVG (files, network, user uploads, or CMS content), and some action to load/render that content is required. Confirmed outcome is a crash/DoS on both sanitizer and normal builds; weaponization beyond DoS is not demonstrated. |
| Impact | Severity signals are moderate-to-high but point to denial of service rather than confirmed code execution. The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H, 7.4) shows a network-reachable, low-complexity, unauthenticated flaw whose only confirmed impact is availability (A:H) - consistent with the advisory's statement that confirmed impact is 'memory corruption → crash / denial of service.' No EPSS score and no CISA KEV entry were provided, so there is no evidence of active or widespread exploitation; absence of these is not proof of safety but should not be read as active exploitation either. The GHSA advisory ships a working crash reproduction (crafted gwevil.jpg plus a self-contained decoder mini-harness producing an ASan heap-buffer-overflow WRITE), so a public PoC reference exists and reliably demonstrates the crash, but it is a DoS repro, not a verified code-execution exploit - the advisory only says the attacker-sized OOB write 'can likely be pushed toward code execution,' which is speculative. The vuln.today Decision label is 'this_week' (not act_now/emergency), aligning with the DoS-confirmed, code-exec-unproven picture. One signal worth flagging: the input vector sets S:C (scope change), which is not obviously justified for an in-process heap overflow in an image decoder - I independently assess scope unchanged (see assessed vectors). Net: a real, patch-this-week issue for anyone feeding untrusted images to ThorVG, but not a confirmed-RCE emergency on current evidence. |
| Exploit ScenarioDerived | An attacker crafts a grayscale JPEG whose SOS scan header repeats its single component selector multiple times, then delivers it as a plain .jpg or embeds it inside a .lottie/dotLottie served to an application that renders untrusted content with ThorVG. When ThorVG decodes the image, the inflated per-MCU block count drives an out-of-bounds heap write, corrupting memory and crashing the process. A working crash PoC (gwevil.jpg) and a standalone decoder harness are published in the GHSA advisory, so reliable DoS reproduction is already public. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 09, 2026
A heap out-of-bounds write in ThorVG 1.1.0, 1.1.1 and the main branch lets an attacker-supplied JPEG corrupt memory during decoding, crashing the process and potentially reaching further than denial of service. The bundled jpgd decoder sizes its block buffers from the frame's component count but increments m_blocks_per_mcu once per entry in the SOS scan header without ever capping it, so a grayscale JPEG that repeats its single component selector in the scan header drives writes past a one-component heap allocation. The flaw is reachable unauthenticated from remote input (CVSS:3.1/AV:N/AC:L/PR:N/UI:R, A:H, scope unchanged) anywhere an application hands ThorVG a JPEG - directly as a .jpg or embedded in a .lottie/dotLottie - and the reporter has published a public proof-of-concept reference (a crafted JPEG plus a minimal AddressSanitizer harness) that is demonstrated to crash on both sanitized and normal builds; it is not verified as working code-execution exploit code, and no CISA KEV entry or active exploitation is reported. Version 1.1.2 fixes it.
RemediationAI
Upgrade to ThorVG 1.1.2, the first release containing the fix (https://github.com/thorvg/thorvg/releases/tag/v1.1.2); the two commits that resolve it are 67680c546d38d817e42eb7583dac8d87a4a319b5, which rejects duplicate component selectors in read_sos_marker() with JPGD_BAD_SOS_COMP_ID, and e740313029dd427d1ebd9f53f300da71363f80ce. Teams carrying a downstream fork of the vendored jpgd should either rebase onto 1.1.2 or backport both the duplicate-ID check and the older upstream bound 'if (m_blocks_per_mcu > m_max_blocks_per_mcu)' from richgel999/jpeg-compressor commit 95c494f43939ad2780f8b05f33138070acb89735; the trade-off is that these checks make the decoder reject a class of malformed-but-previously-accepted JPEGs, so regression-test any corpus of quirky real-world images. If upgrading cannot happen immediately, the effective compensating control is to keep untrusted image data away from these versions: decode or transcode JPEGs with a hardened, separately sandboxed decoder before handing pixels to ThorVG, and strip or block JPEG members inside .lottie/dotLottie archives, at the cost of extra processing and reduced format support. Running image decoding in a memory-safe or resource-limited sandbox (separate process, ASAN/container memory caps) converts a successful overflow into a contained crash rather than host memory corruption. Full details are in the vendor advisory at https://github.com/thorvg/thorvg/security/advisories/GHSA-mw4c-w54x-248r.
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
ThorVG ships a vendored copy of Rich Geldreich's jpgd baseline JPEG decoder, and that copy predates the upstream 2020 hardening commit (richgel999/jpeg-compressor 95c494f) that bounded the per-MCU block count. In src/loaders/jpg/tvgJpgd.cpp the SOS (start-of-scan) parser accepts a component list without requiring the selectors to be distinct, and the loop that builds the scan's component list adds each accepted entry to m_blocks_per_mcu. Because the decoder's working buffers (coefficient and sample buffers) were allocated from the frame header's component count, a one-component grayscale image that lists that same component selector four times inflates the counter to four times the allocated capacity; both decode call sites then run off the end of the heap buffer, which is CWE-787. The upstream fix in ThorVG 1.1.2 adds a duplicate-selector check inside read_sos_marker() that returns JPGD_BAD_SOS_COMP_ID when a component ID repeats, rejecting the malformed scan header before any buffer maths occurs. The affected package is CPE cpe:2.3:a:thorvg:thorvg:* (all versions to date, per the CPE) with the vendor advisory narrowing practical exposure to 1.1.0, 1.1.1 and main. Triggering the write requires no special configuration or feature flag; the gating factor is purely whether the application feeds attacker-controlled JPEG or Lottie content into the library, since ThorVG is typically embedded as a rendering engine inside other products. Post-corruption behavior beyond a crash is not demonstrated in the supplied evidence.
Know when Thorvg 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
AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H
Remote untrusted image, no auth and low complexity (AV:N/AC:L/PR:N); rendering the image is required (UI:R); in-process decoder overflow so S:U; only DoS confirmed, hence C:N/I:N/A:H.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Thor Vector Graphics (ThorVG) is a production-ready vector graphics engine. Prior to 1.1.2, the bundled jpgd JPEG decoder accepts duplicate component selectors in an SOS scan header, causing each duplicate to increase m_blocks_per_mcu without checking the buffers sized from the frame components. A crafted grayscale JPEG can repeat its component in the SOS header, causing decode paths in src/loaders/jpg/tvgJpgd.cpp to write beyond heap buffers sized for one component. The issue is reachable through direct JPEG decoding and through JPEG images embedded in Lottie content, and confirmed impact is memory corruption followed by a process crash. This issue is fixed in version 1.1.2.
Technical POC Analysis
CWE-787, out-of-bounds write, in the jpgd JPEG decoder vendored into ThorVG at src/loaders/jpg/tvgJpgd.cpp.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-123367 is a heap out-of-bounds write in ThorVG versions 1.1.0 and 1.1.1, the graphics library used to render Lottie animations. A malicious JPEG-whether loaded directly or embedded in a .lottie file-can crash any application using ThorVG, such as mobile apps or web services that display user-supplied animations. Because the public proof-of-concept is demonstrated to crash both sanitized and production builds, exploitation risk is elevated, and leadership should prioritize immediate remediation to prevent service disruptions and potential data compromise from corrupted memory.
No vendor-released patch identified at time of analysis. Implement strict input validation to reject JPEG files with duplicate component selectors in the scan header; sandbox ThorVG rendering in a low-privilege process; and deploy runtime detection for anomalous memory writes.
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.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Out-of-bounds read in ThorVG's SFNT/TTF font loader (all versions before 1.0.7) lets an attacker who can supply a font b
Null pointer dereference in ThorVG's SVG loader crashes any process that passes untrusted SVG content through Picture::l
EUVD-2026-120122
NVD
CVE.org
EPSS
GitHub
Exploit-DB