CVE-2026-2240: janet · Out-of-Bounds Read
Affects janetSource CVE Database V5
Not known to be exploited · CVSS 4.8 Medium.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 7% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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:PExploitation evidence
Disclosed: evidence found.
CVE published 9 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| janet-langjanet | Affected
| Fixed in– |
AI-suggested
To mitigate CVE-2026-2240, organizations should promptly apply the official patch identified by commit 4dd08a4cdef5b1c42d9a2c19fc24412e97ef51d5 to all affected janet-lang versions (1.40.0 and 1.40.1). Additionally, restrict local access to systems running janet-lang to trusted users only, minimizing the risk of exploitation by unprivileged attackers. Implement strict access controls and monitoring on systems where janet is installed, especially in shared or multi-user environments. Consider using sandboxing or containerization to isolate janet-lang processes and limit potential memory exposure. Regularly audit and update janet-lang installations to the latest secure versions. If patching is not immediately feasible, monitor system logs for unusual activity and limit the execution of untrusted scripts. Educate developers and system administrators about the vulnerability and the importance of applying security updates. Finally, incorporate janet-lang vulnerability scanning into routine security assessments to detect outdated versions.
Description
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.
References
- vuldb.com (opens in a new tab)
- vuldb.com (opens in a new tab)
- vuldb.com (opens in a new tab)
- github.com/janet-lang/janet/issues/1702 (opens in a new tab)
- github.com/janet-lang/janet/issues/1702 (opens in a new tab)
- github.com/oneafter/0123/blob/main/ja4/repro (opens in a new tab)
- github.com/janet-lang/janet/commit/4dd08a4cdef5b1c42d9a2c19fc24412e97ef51d5 (opens in a new tab)
- github.com/janet-lang/janet/ (opens in a new tab)