Skip to main content

Duktape EUVDEUVD-2026-36689

| CVE-2026-12216 LOW
Buffer Overflow (CWE-119)
2026-06-15 cna@vuldb.com GHSA-3p43-j8hp-v57p
1.9
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local low-privilege access
  2. Delivery
    Craft malicious bytecode blob with manipulated count_instr
  3. Exploit
    Supply blob to Duktape-embedding application
  4. Execution
    Trigger out-of-bounds buffer operation in duk_api_bytecode.c
  5. Impact
    Achieve 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

duktape 2.99.49
duktape 2.99.84
duktape 2.99.52
duktape 2.99.70
duktape 2.99.38
duktape 2.99.8
duktape 2.99.2
duktape 2.99.54
duktape 2.99.4
duktape 2.99.72
duktape 2.99.67
duktape 2.99.40
duktape 2.99.11
duktape 2.99.81
duktape 2.99.41
duktape 2.99.0
duktape 2.99.75
duktape 2.99.86
duktape 2.99.93
duktape 2.99.32
duktape 2.99.48
duktape 2.99.47
duktape 2.99.14
duktape 2.99.99
duktape 2.99.57
duktape 2.99.98
duktape 2.99.13
duktape 2.99.20
duktape 2.99.90
duktape 2.99.66
duktape 2.99.21
duktape 2.99.63
duktape 2.99.45
duktape 2.99.64
duktape 2.99.36
duktape 2.99.18
duktape 2.99.51
duktape 2.99.19
duktape 2.99.65
duktape 2.99.56
duktape 2.99.91
duktape 2.99.37
duktape 2.99.83
duktape 2.99.44
duktape 2.99.23
duktape 2.99.61
duktape 2.99.28
duktape 2.99.1
duktape 2.99.35
duktape 2.99.76
duktape 2.99.95
duktape 2.99.68
duktape 2.99.77
duktape 2.99.3
duktape 2.99.60
duktape 2.99.12
duktape 2.99.80
duktape 2.99.39
duktape 2.99.16
duktape 2.99.43
duktape 2.99.62
duktape 2.99.25
duktape 2.99.73
duktape 2.99.26
duktape 2.99.7
duktape 2.99.24
duktape 2.99.89
duktape 2.99.15
duktape 2.99.31
duktape 2.99.22
duktape 2.99.78
duktape 2.99.82
duktape 2.99.96
duktape 2.99.50
duktape 2.99.34
duktape 2.99.69
duktape 2.99.46
duktape 2.99.97
duktape 2.99.87
duktape 2.99.9
duktape 2.99.33
duktape 2.99.58
duktape 2.99.42
duktape 2.99.17
duktape 2.99.59
duktape 2.99.53
duktape 2.99.29
duktape 2.99.94
duktape 2.99.71
duktape 2.99.6
duktape 2.99.74
duktape 2.99.27
duktape 2.99.92
duktape 2.99.10
duktape 2.99.79
duktape 2.99.88
duktape 2.99.55
duktape 2.99.5
duktape 2.99.30
duktape 2.99.85

Affected Packages

euvd duktape no fix

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

Vendor (vuldb) PRIMARY 1.9 MEDIUM
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
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (vuldb).

CVSS VectorVendor: vuldb

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.1%
Top 98% exploitable
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy