Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local low-privilege access
-
DeliveryCraft malicious bytecode blob with manipulated count_instr
-
ExploitSupply blob to Duktape-embedding application
-
ExecutionTrigger out-of-bounds buffer operation in duk_api_bytecode.c
-
ImpactAchieve limited memory corruption (C:L/I:L/A:L) within host process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, buffer size validation
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 local system access with at minimum a low-privilege user account (PR:L per CVSS 4.0 vector). The vulnerable code path is in duk_api_bytecode.c and is specifically triggered when an application embedding Duktape processes attacker-controlled bytecode input - the count_instr argument must be manipulable by the attacker, which typically requires the host application to expose bytecode loading (duk_load_function or equivalent) to user-controlled data. Applications that compile JavaScript internally and never load externally sourced bytecode blobs are not affected. Remote exploitation is not indicated (AV:L). No special non-default Duktape configuration is cited as a prerequisite, but the attack is limited to deployment contexts where untrusted bytecode reaches the parser. Scope is confined to the vulnerable system (SC:N/SI:N/SA:N); no lateral system impact is indicated. |
| Impact | The CVSS 4.0 base score of 1.9 is among the lowest possible ratings and accurately reflects the constrained threat model: the attack vector is local (AV:L), low privileges are required (PR:L), and impact across confidentiality, integrity, and availability is limited to the vulnerable system only (VC:L/VI:L/VA:L/SC:N/SI:N/SA:N). The E:P supplemental metric confirms a public POC exists, which lowers the exploitation bar but does not expand the attack surface beyond local access. No CISA KEV listing is present, meaning active exploitation in the wild is not confirmed. No EPSS score was provided in the input data, so probability-of-exploitation comparisons cannot be made. The most realistic risk applies to multi-tenant or shared systems where an unprivileged local user can interact with an application that embeds Duktape and exposes bytecode loading to user-controlled input. The absence of a vendor response means no official severity assessment or clarification of impact boundaries exists - the affected version ceiling of 2.99.99 appears to be the maximum known version, not a confirmed fixed boundary, and should be treated as analyst-inferred rather than vendor-confirmed. |
| Exploit ScenarioDerived | A low-privilege local user on a system running an application that embeds Duktape and accepts user-supplied bytecode crafts a malicious bytecode blob with a manipulated count_instr value. When the application deserializes this blob through the duk_api_bytecode.c code path, the insufficient bounds check triggers memory corruption within the process, potentially enabling limited out-of-bounds reads or writes. A public proof-of-concept is available at the researcher's GitHub (hmKunlun/compileOOB), further lowering the technical bar for local exploitation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 15, 2026
Memory corruption in Duktape's bytecode API (duk_api_bytecode.c) allows local low-privilege attackers to corrupt process memory by supplying a crafted count_instr argument during bytecode processing. All Duktape versions up to 2.99.99 are affected. A public proof-of-concept exploit exists, though the CVSS 4.0 score of 1.9 reflects constrained real-world impact - local access and low privileges are required, and confidentiality, integrity, and availability impact is rated low. No patch is available; the vendor did not respond to coordinated disclosure.
RemediationAI
No vendor-released patch has been identified at time of analysis; the vendor (svaarala) did not respond to coordinated disclosure, and no fixed version has been confirmed from any reference. The most effective compensating control is to avoid loading Duktape bytecode blobs (via duk_load_function or equivalent) from any untrusted or user-controlled source - restricting bytecode input to internally compiled, trusted sources eliminates the attack surface entirely, with no functional trade-off for most deployments. Where Duktape is embedded in multi-user or shared environments, sandboxing or containerizing the host process (e.g., via Linux namespaces or seccomp profiles) limits memory corruption impact to the isolated process and prevents privilege escalation or lateral movement. Monitor the Duktape GitHub repository and VulDB entry https://vuldb.com/vuln/370859 for any upstream patch commits or tagged releases addressing this issue.
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
Duktape (svaarala/duktape) is a lightweight, embeddable ECMAScript E5/E5.1 engine written in C, commonly used in IoT firmware, game scripting, and resource-constrained environments. The vulnerability resides in duk_api_bytecode.c, which handles serialization and deserialization of compiled JavaScript bytecode - functions such as duk_dump_function and duk_load_function operate on this code path. CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) identifies the root cause as insufficient validation of the count_instr parameter, which controls instruction-count bookkeeping during bytecode parsing. A malformed value can cause out-of-bounds buffer operations, leading to memory corruption within the host process. No CPE strings were included in the source data; the affected product is identified by VulDB as svaarala/duktape through version 2.99.99.
Know when the next one hits your stack
- 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:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Local attack vector and low privileges required to supply malicious bytecode; no scope change, with limited confidentiality, integrity, and availability impact confined to the host process.
Primary rating from Vendor (vuldb).
CVSS VectorVendor: vuldb
DescriptionCVE.org
A weakness has been identified in svaarala duktape up to 2.99.99. This issue affects some unknown processing of the file duk_api_bytecode.c. Executing a manipulation of the argument count_instr can lead to memory corruption. The attack requires local access. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
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.
EUVD-2026-36689
GHSA-3p43-j8hp-v57p
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB