Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCraft JS payload with resize-on-coercion TypedArray.copyWithin
-
DeliveryDeliver via sideloaded app or crafted web content
-
ExploitLocal user executes payload in Escargot context
-
InstallBuffer resized mid-coercion alters array length
-
C2len - startIndex underflows to negative float
-
ExecuteCast to size_t produces massive allocation request
-
ImpactOOM abort crashes process (DoS)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory allocation limits
|
| Exploitation Conditions | Exploitation requires local access to a system running Escargot and the ability to supply attacker-controlled JavaScript for execution by the engine - specifically, a call to TypedArray.prototype.copyWithin where one or more index arguments have a custom valueOf or toString method that resizes the underlying ArrayBuffer during coercion, causing the post-coercion length calculations in the copyWithin implementation to underflow. The CVSS vector (AV:L/UI:R) confirms this is a local attack requiring user interaction - a fully remote unauthenticated attacker cannot trigger this without a delivery mechanism (e.g., a malicious app or web page). The PR:N component indicates no operating-system-level privileges are needed by the attacker, but the UI:R constraint means a local user must take an action such as opening a crafted file or launching a malicious application. Exploitation is limited to JavaScript execution environments backed by unpatched Escargot builds at commit 590345cc; deployments where untrusted JavaScript execution is disabled or restricted are not exposed. Standard JavaScript code that does not use typed array resize-during-coercion patterns (resizable ArrayBuffer or side-effecting valueOf on index arguments) is unaffected. |
| Impact | The CVSS 3.1 base score of 5.5 (Medium) is derived from a local attack vector (AV:L), low complexity (AC:L), no privilege requirement (PR:N), user interaction required (UI:R), unchanged scope (S:U), and high availability impact (A:H) with no confidentiality or integrity impact. The local attack vector means this is not directly reachable from a remote network without an additional delivery step. User interaction required further constrains exploitation to scenarios where a local user opens or executes attacker-controlled JavaScript content. EPSS data was not available in provided intelligence, limiting probabilistic exploitation probability assessment. No CISA KEV listing was identified, and no standalone proof-of-concept code was found beyond the fix diff in PR #1565, which itself provides sufficient implementation detail for a researcher to reproduce the condition. The 'Information Disclosure' tag in the source intelligence conflicts directly with the CVSS confidentiality impact of C:N - this tagging appears erroneous; the actual impact observed in the code changes and CVSS vector is purely availability (process abort). This conflict should be verified with the reporter (samsung.tv_appliance). The OOM abort handler added in the fix confirms the engine previously had undefined behavior on excessive allocation, which could theoretically widen impact, but based on confirmed CVSS data the impact is denial of service. Real-world priority is low-to-medium: exploitation in Samsung appliance/TV contexts would require delivering malicious JavaScript via a sideloaded app or compromised web content, precluding mass automated exploitation. |
| Exploit ScenarioDerived | An attacker crafts a JavaScript file containing a TypedArray.prototype.copyWithin call where the index arguments' valueOf methods trigger an ArrayBuffer resize mid-coercion, causing the engine's internal length calculations to go negative and wrap to a massive size_t value when cast. A local user on a Samsung smart TV or appliance executes this payload - for example, by launching a sideloaded application or visiting a crafted web page rendered by an Escargot-powered browser - causing the Escargot process to request an out-of-memory allocation, triggering the OOM abort handler and crashing the application or scripting runtime. No standalone public proof-of-concept was identified at the time of analysis, but the PR diff discloses sufficient implementation detail to reconstruct the triggering condition. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 19, 2026
Excessive memory allocation in Samsung's Escargot JavaScript engine (commit 590345cc) triggers a denial-of-service condition via integer underflow in the TypedArray.prototype.copyWithin implementation, causing the engine to request a massive heap allocation and subsequently abort the process. Affected deployments include Samsung TV and appliance firmware that embeds Escargot as a scripting runtime. No public exploit code and no CISA KEV listing are present; EPSS data was not provided in available intelligence. Risk is bounded by the local attack vector and user interaction requirement in the CVSS vector.
RemediationAI
Upstream fix is available via GitHub pull request #1565 at https://github.com/Samsung/escargot/pull/1565; a released tagged version incorporating this fix is not independently confirmed from available data, so downstream consumers must monitor the Samsung Escargot repository for an official release. Organizations embedding Escargot directly should apply the PR diff - specifically the count clamping fix in src/builtins/BuiltinTypedArray.cpp (adding std::max(0.0, ...) around the min expression) and the OOM abort handler in src/heap/Heap.cpp. As a compensating control, restricting the installation or execution of untrusted third-party applications on Samsung smart TV and appliance platforms reduces exposure, though this limits legitimate app ecosystem functionality. Restricting access to Escargot-powered scripting interfaces in embedded deployments (e.g., disabling developer mode or sideloading capabilities) is a more targeted mitigation with lower functional impact. Enabling ASAN builds in QA/testing pipelines is now facilitated by the ASAN detection macros added in src/Escargot.h in the same PR, which can surface similar memory issues before production release.
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
Escargot is Samsung's open-source C++ JavaScript engine (CPE: cpe:2.3:a:samsung_open_source:escargot:*:*:*:*:*:*:*:*) designed for embedded and IoT platforms including Samsung smart TVs and appliances. The root cause class is CWE-789 (Memory Allocation with Excessive Size Value). The vulnerable code path is in src/builtins/BuiltinTypedArray.cpp within builtinTypedArrayCopyWithin: when TypedArray.prototype.copyWithin coerces its index arguments, a JavaScript-level side effect (such as a valueOf or toString override) can resize the underlying ArrayBuffer during coercion. After the resize, the stored array length (len) is stale, causing expressions like len - startIndex or len - targetIndex to produce negative floating-point results. These negative values are then passed to std::min and ultimately cast to size_t (an unsigned integer type), wrapping to an astronomically large value. The resulting allocation request exhausts memory. The GitHub PR #1565 diff also reveals secondary fixes: a null-pointer dereference in EscargotPublic.cpp for nested eval-throw-finally edge cases, missing fast-mode array checks in ByteCodeInterpreter.cpp after setArrayLength, coercion ordering and re-coercion prevention in DataViewObject.h, and the addition of an OOM abort handler in Heap.cpp via GC_set_oom_fn - confirming that prior to this patch, out-of-memory conditions yielded undefined behavior rather than a clean abort.
Know when Samsung Open Source 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:N/S:U/C:N/I:N/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionNVD
Memory allocation with excessive size value vulnerability in Samsung Open Source Escargot allows Excessive Allocation.
This issue affects Escargot: 590345cc6258317c5da850d846ce6baaf2afc2d3.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Samsung Open Source
View allHeap buffer overflow in Samsung's rlottie animation rendering library allows remote denial-of-service via maliciously cr
Uncontrolled resource consumption in Samsung's open-source rlottie library allows a crafted Lottie animation file to tri
OS command injection in the Samsung QA-Board backend allows unauthenticated remote attackers to execute arbitrary operat
Memory corruption in Samsung Open Source Escargot's code-cache and value-deserialization handling can allow unauthentica
Out-of-bounds write in Samsung Open Source Escargot JavaScript engine allows local attackers to execute arbitrary code o
Heap-based buffer overflow in Samsung Open Source Escargot JavaScript engine enables out-of-bounds memory writes with hi
Type confusion vulnerability in Samsung Open Source Escargot JavaScript engine allows local attackers with user interact
Out-of-bounds write in Samsung's Escargot lightweight JavaScript engine (commit 590345cc6258317c5da850d846ce6baaf2afc2d3
Heap-based buffer overflow in Samsung's Escargot JavaScript engine (commit 590345cc6258317c5da850d846ce6baaf2afc2d3) all
Use-after-free memory corruption in Samsung's Escargot JavaScript engine (commit 590345cc6258317c5da850d846ce6baaf2afc2d
Out-of-bounds read in Samsung Open Source Escargot JavaScript engine exposes sensitive memory content to remote attacker
Out-of-bounds read in Samsung Open Source Escargot JavaScript engine allows local attackers to leak sensitive memory con
EUVD-2026-30845
GHSA-mpg3-32g2-7qf5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB