Skip to main content

Janet Language EUVDEUVD-2026-33654

| CVE-2026-10267 LOW
Buffer Overflow (CWE-119)
2026-06-01 cna@vuldb.com GHSA-mmcx-pc5f-m5m4
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 shell access
  2. Delivery
    Craft Janet function with malformed symbolmap (death_pc or slot_index out of bounds)
  3. Exploit
    Invoke Janet debug introspection (doframe) on crafted function
  4. Execution
    Out-of-bounds read of heap or fiber stack memory
  5. Impact
    Exfiltrate 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.

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

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

Alert me

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

janet 1.4
janet 1.7
janet 1.37
janet 1.6
janet 1.3
janet 1.27
janet 1.17
janet 1.15
janet 1.24
janet 1.33
janet 1.20
janet 1.14
janet 1.18
janet 1.16
janet 1.32
janet 1.22
janet 1.5
janet 1.35
janet 1.38
janet 1.28
janet 1.12
janet 1.23
janet 1.10
janet 1.36
janet 1.26
janet 1.41.0
janet 1.2
janet 1.29
janet 1.19
janet 1.30
janet 1.40
janet 1.34
janet 1.1
janet 1.0
janet 1.8
janet 1.31
janet 1.25
janet 1.13
janet 1.11
janet 1.39
janet 1.9
janet 1.21

Affected Packages

euvd janet 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

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

Vendor (vuldb) PRIMARY 1.9 LOW
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

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

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

EPSS Score
0.0%
Top 98% exploitable
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment 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 Yes
EPSS 0.0%
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

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
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