CVE-2026-2240
janet-lang janet compile.c janetc_pop_funcdef out-of-bounds
- State
- Published
- Severity
- 4.8 Medium
- Published
- Feb 9, 2026
- Updated
- Feb 23, 2026
- Reserved
- Feb 9, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 4.8 Medium | 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 | VulDB |
| 3.1 | 3.3 Low | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C | VulDB |
| 3.0 | 3.3 Low | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C | VulDB |
| 2.0 | 1.7 Low | AV:L/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:OF/RC:C | VulDB |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
janetjanet-lang |
|
References
- VDB-344979 | janet-lang janet compile.c janetc_pop_funcdef out-of-boundsvdb-entrytechnical-description
- VDB-344979 | CTI Indicators (IOB, IOC, IOA)signaturepermissions-required
- Submit #753155 | janet-lang janet 883dde4 Heap-based Buffer Overflowthird-party-advisory
- https://github.com/janet-lang/janet/issues/1702issue-tracking
- https://github.com/janet-lang/janet/issues/1702#issuecomment-3790473369issue-tracking
- https://github.com/oneafter/0123/blob/main/ja4/reproexploit
- https://github.com/janet-lang/janet/commit/4dd08a4cdef5b1c42d9a2c19fc24412e97ef51d5patch
- https://github.com/janet-lang/janet/product
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.