CVE-2026-2240
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| janet-lang | janet | {"endIncluding":"1.40.1"} | |
References
- https://github.com/janet-lang/janet/
- https://github.com/janet-lang/janet/commit/4dd08a4cdef5b1c42d9a2c19fc24412e97ef51d5
- https://github.com/janet-lang/janet/issues/1702
- https://github.com/janet-lang/janet/issues/1702#issuecomment-3790473369
- https://github.com/oneafter/0123/blob/main/ja4/repro
- https://vuldb.com/?ctiid.344979
- https://vuldb.com/?id.344979
- https://vuldb.com/?submit.753155
CWEs
CWE-119 CWE-125
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.