Buffer overflow in Janet-Lang Janet
CVE-2026-2240
A vulnerability has been found in janet-lang janet up to 1.40.1. The impacted element is the function janetc_pop_funcdef of the file src/core/compile.c. Such manipulation leads to out-of-bounds read. The attack must be carried out locally. The exploit has been disclosed to the public and may be used. The name of the patch is 4dd08a4cdef5b1c42d9a2c19fc24412e97ef51d5. A patch should be applied to remediate this issue.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 3.3 (Low). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS 0.002, 8.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Janet-Lang Janet — versions 1.40.0, 1.40.1
Weakness classification (CWE)
References
- VDB-344979 | janet-lang janet compile.c janetc_pop_funcdef out-of-bounds (technical-description, Third Party Advisory, VDB Entry, vdb-entry)
- VDB-344979 | CTI Indicators (IOB, IOC, IOA) (signature, Permissions Required, permissions-required, VDB Entry)
- Submit #753155 | janet-lang janet 883dde4 Heap-based Buffer Overflow (Third Party Advisory, VDB Entry, third-party-advisory)
- github.com/janet-lang/janet/issues/1702 (issue-tracking, Exploit, Issue Tracking)
- github.com/janet-lang/janet/issues/1702 (issue-tracking, Exploit, Issue Tracking)
- github.com/oneafter/0123/blob/main/ja4/repro (Exploit, exploit)
- github.com/janet-lang/janet/commit/4dd08a4cdef5b1c42d9a2c19fc24412e97ef51d5 (Patch, patch)
- github.com/janet-lang/janet/ (Product, product)