Skip to main content

Janet EUVDEUVD-2026-33681

| CVE-2026-10268 LOW
Integer Overflow or Wraparound (CWE-190)
2026-06-01 VulDB GHSA-gqw4-cq8m-g989
1.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Obtain local low-privileged account
  2. Delivery
    Craft fiber payload with fiber_stacktop near INT32_MAX
  3. Exploit
    Submit marshaled data to Janet interpreter
  4. Execution
    Trigger unmarshal_one_fiber integer overflow
  5. Persist
    Corrupt fiber capacity value
  6. Impact
    Crash interpreter process (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must have local access to the host and a low-privileged account (confirmed by CVSS PR:L). The vulnerable code path is triggered specifically when the Janet runtime calls unmarshal_one_fiber to deserialize a marshaled fiber object - exploitation requires the ability to supply crafted marshaled Janet data to the interpreter. Environments where Janet is used only to execute static, trusted scripts without accepting externally supplied serialized fibers are not at realistic risk. Limiting factors include: no remote attack vector (AV:L excludes network exploitation), no unauthenticated exploitation path (PR:L requires at minimum a local user session), and impact is limited to availability only (no data exfiltration or integrity violation). Non-default conditions required: the application must consume marshaled Janet fiber data from an untrusted or attacker-controlled source.

Impact

The CVSS 3.1 base score of 3.3 (Low) is consistent with the attack surface: AV:L (local host only), AC:L (no special conditions), PR:L (requires a low-privileged local account), UI:N, with impact confined to availability (A:L) and no confidentiality or integrity exposure. This is not a remotely exploitable vulnerability in default deployments. The temporal metrics reinforce a contained posture: E:P (proof-of-concept code is public), RL:O (official fix is available), RC:C (vulnerability is confirmed). No EPSS data was provided, but the local-only attack vector and limited availability impact suggest a low exploitation probability in practice. The existence of a public POC (https://github.com/biniamf/pocs/tree/main/janet-marsh-unmarshal-intovf) does elevate urgency for environments where untrusted parties can supply Janet bytecode or marshaled data to a Janet interpreter. KEV status is not confirmed, so this should not be treated as actively exploited in the wild. No CVSS conflict is identified - the local attack vector aligns with the description's statement that the attack is launched on the local host.

Exploit ScenarioDerived

A local attacker with a low-privileged account on a system running Janet crafts a malicious serialized fiber payload in which the fiber_stacktop field is set to a value near INT32_MAX. When the Janet interpreter calls unmarshal_one_fiber to deserialize this data, the unchecked addition overflows, assigning an invalid (very small) capacity to the fiber's stack buffer. Subsequent runtime operations that write to that under-sized buffer cause a crash, producing a denial-of-service condition. A public proof-of-concept demonstrating this technique is available at https://github.com/biniamf/pocs/tree/main/janet-marsh-unmarshal-intovf.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 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

Integer overflow in the Janet scripting language's fiber unmarshaling routine (versions up to 1.41.0) allows a local authenticated attacker to cause a denial-of-service condition. The vulnerable function unmarshal_one_fiber in src/core/marsh.c performs an unchecked addition when computing fiber stack capacity - if fiber_stacktop is near INT32_MAX, adding 10 wraps the value, resulting in a dangerously small capacity allocation that crashes the interpreter. No public exploitation in production environments has been confirmed (not listed in CISA KEV), but a public proof-of-concept exploit exists, and the upstream patch has been released as commit d9b1d711.

RemediationAI

Apply upstream patch commit d9b1d711ea1fde52ac73a82088b512a3e17bad0d from the Janet GitHub repository (https://github.com/janet-lang/janet/commit/d9b1d711ea1fde52ac73a82088b512a3e17bad0d). The fix wraps the capacity assignment in a bounds check: if fiber_stacktop < INT32_MAX - 10, the original expression is used; otherwise fiber->capacity is clamped to INT32_MAX, avoiding overflow. Consumers using Janet as an embedded library should rebuild from a patched commit or wait for a tagged release incorporating this fix - a specific tagged release version was not independently confirmed from available data, so verify with the upstream project. As a compensating control where patching is not immediately feasible, restrict the ability of untrusted users or processes to supply marshaled Janet data to the interpreter, particularly in sandboxed or shared environments. This control trades off some Janet deserialization functionality but eliminates the attack surface for this class of exploit.

Affected VersionsENISA

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

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 lightweight, embeddable scripting language written in C. The affected code path involves the deserialization (unmarshaling) subsystem in src/core/marsh.c, specifically the unmarshal_one_fiber function responsible for reconstructing fiber (coroutine) state from serialized bytes. The root cause is CWE-190 (Integer Overflow or Wraparound): the expression fiber->capacity = fiber_stacktop + 10 is evaluated without checking whether fiber_stacktop is close to INT32_MAX. If a crafted marshaled payload supplies a fiber_stacktop value in the range (INT32_MAX - 9, INT32_MAX], the addition wraps around to a small or negative integer, yielding an invalid capacity field. This can lead to under-allocation of the fiber stack buffer, producing memory corruption or an immediate crash when the runtime subsequently writes stack frames. The affected CPE is cpe:2.3:a:janet-lang:janet:*:*:*:*:*:*:*:* covering all versions through 1.41.0.

Know when Janet 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

Vendor (VulDB) PRIMARY 1.9 LOW
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/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
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jun 01, 2026 - 17:22 NVD
3.3 (LOW) 1.9 (LOW)

DescriptionCVE.org

A weakness has been identified in janet-lang janet up to 1.41.0. This vulnerability affects the function unmarshal_one_fiber of the file src/core/marsh.c. Executing a manipulation can lead to integer overflow. It is possible to launch the attack on the local host. The exploit has been made available to the public and could be used for attacks. This patch is called d9b1d711ea1fde52ac73a82088b512a3e17bad0d. A patch should be applied to remediate this issue.

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 Yes
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.

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

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