Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local low-privilege shell access
-
DeliveryCraft Janet function with malformed symbolmap (death_pc or slot_index out of bounds)
-
ExploitInvoke Janet debug introspection (doframe) on crafted function
-
ExecutionOut-of-bounds read of heap or fiber stack memory
-
ImpactExfiltrate leaked Janet program data
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 | Local access with at least low-privilege execution rights on the target system is required (CVSS AV:L/PR:L). The attacker must be able to execute Janet code that invokes the debug introspection path - specifically the doframe() function in src/core/debug.c - with a crafted function definition containing a malformed JanetSymbolMap entry where death_pc or slot_index exceeds valid array bounds. This triggers an out-of-bounds read only during debug frame inspection. Exploitation is limited by: (1) mandatory local access - no network vector exists; (2) low-privilege local authentication required; (3) the vulnerable code path is in the debugger introspection layer, not the main execution engine; (4) impact is read-only confidentiality leakage with no code execution or memory corruption possible; (5) the vulnerability affects only Janet versions up to 1.41.0. |
| Impact | The aggregate risk picture is low. CVSS 4.0 scores 1.9 with vector AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N, indicating local, low-complexity exploitation by an already-authenticated low-privilege user yielding only limited confidentiality exposure with zero integrity or availability impact. There is no EPSS score provided in the available data, though the E:P modifier in the CVSS 4.0 supplemental metrics confirms exploit code exists. This CVE is not listed in the CISA KEV catalog, meaning no confirmed in-the-wild exploitation has been observed. The combination of local-only attack vector, low-privilege requirement, and minimal impact (memory-read-only, no code execution) dramatically limits real-world risk - this is not a remotely exploitable or privilege-escalating vulnerability. The primary concern is information disclosure from Janet heap or fiber memory, which could expose program data in environments running Janet with untrusted local users. The low CVSS score is consistent with the actual impact ceiling here, not an underestimate. |
| Exploit ScenarioDerived | A local user with low-privilege shell access on a system running Janet crafts or supplies a Janet function with a malformed symbolmap entry - setting death_pc or slot_index to an out-of-range value - then triggers Janet's debug introspection via doframe(), causing the interpreter to read memory beyond the intended environment or stack array. A proof-of-concept is publicly available at https://github.com/biniamf/pocs/tree/main/janet-debug-janet-doframe-env-data-oobread, demonstrating the read primitive. The practical attacker goal is limited to leaking small amounts of Janet heap or fiber memory contents rather than achieving code execution. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 01, 2026
Out-of-bounds read in janet-lang/janet up to version 1.41.0 allows a local low-privileged attacker to read memory beyond allocated bounds via the doframe debug introspection function in src/core/debug.c. The root cause is missing bounds validation when using symbolmap entries (specifically jsm.death_pc and jsm.slot_index) as array indices into function environments and stack data. No public exploit identified at time of analysis, but publicly available exploit code exists per the POC reference; real-world impact is limited to low-confidence local reads with no availability or integrity consequence (CVSS:4.0 score 1.9).
RemediationAI
Apply the upstream fix by updating to a Janet release that incorporates commit ed17dd2c5913a23fb1107251e44a9410a3c30cf5. Users building from source should pull from the janet-lang/janet repository at or after that commit. A released patched version number is not independently confirmed from available data - verify with the upstream release page at https://github.com/janet-lang/janet/ for the first tagged release after this commit. As a compensating control for environments that cannot immediately patch, restrict local shell access to the Janet interpreter to trusted users only, since the vulnerability requires local low-privilege execution. Avoiding untrusted Janet bytecode (e.g., from network sources or third-party packages) also reduces exposure. Disabling Janet debugger use in production deployments is a low-impact workaround given that doframe() is a debug introspection path not required at runtime. The issue was tracked in GitHub issue #1743.
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
Janet is a functional and imperative scripting language implemented in C. The vulnerability resides in the doframe() function (src/core/debug.c), which performs stack-frame introspection for the debugger. Each JanetSymbolMap entry carries a death_pc field that is repurposed (dual-encoded) to store an environment index when birth_pc is UINT32_MAX, and a slot_index field pointing into that environment or the current stack. Pre-patch, neither field was validated against the bounds of the envs[] array (environments_length) nor the env->length before dereferencing - enabling an out-of-bounds read of heap or fiber stack data. CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) precisely describes this class: the symbolmap data arrives from bytecode that is parsed without being fully verified, so a crafted function definition can supply arbitrary index values. The fix (commit ed17dd2c) adds bounds checks in both bytecode.c (janet_verify) and debug.c (doframe), and adds a comment in compile.c clarifying the death_pc dual-encoding contract.
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:N/VA:N/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (vuldb) · only source for this CVE.
CVSS VectorVendor: vuldb
DescriptionCVE.org
A security flaw has been discovered in janet-lang janet up to 1.41.0. This affects the function doframe of the file src/core/debug.c. Performing a manipulation results in out-of-bounds read. Attacking locally is a requirement. The exploit has been released to the public and may be used for attacks. The patch is named ed17dd2c5913a23fb1107251e44a9410a3c30cf5.
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-33654
GHSA-mmcx-pc5f-m5m4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB