janet-lang janet up to 1.40.1 src/core/compile.c janetc_pop_funcdef out-of-bounds
Summary
A vulnerability was found in janet-lang janet up to 1.40.1. It has been classified as problematic. This affects the function janetc_pop_funcdef of the file src/core/compile.c. Performing a manipulation results in out-of-bounds.
This vulnerability is cataloged as CVE-2026-2240. The attack must be initiated from a local position. Furthermore, there is an exploit available.
To fix this issue, it is recommended to deploy a patch.
Details
A vulnerability classified as problematic has been found in janet-lang janet up to 1.40.1. This affects the function janetc_pop_funcdef of the file src/core/compile.c. The manipulation with an unknown input leads to a out-of-bounds vulnerability. CWE is classifying the issue as CWE-125. The product reads data past the end, or before the beginning, of the intended buffer. This is going to have an impact on availability.
It is possible to read the advisory at github.com. This vulnerability is uniquely identified as CVE-2026-2240. The exploitability is told to be easy. Attacking locally is a requirement. Technical details and a public exploit are known.
The exploit is shared for download at github.com. It is declared as proof-of-concept.
Applying the patch 4dd08a4cdef5b1c42d9a2c19fc24412e97ef51d5 is able to eliminate this problem. The bugfix is ready for download at github.com.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Product
Vendor
Name
Version
License
Website
- Product: https://github.com/janet-lang/janet/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒
CVSSv3
VulDB Meta Base Score: 4.2VulDB Meta Temp Score: 4.1
VulDB Base Score: 3.3
VulDB Temp Score: 3.0
VulDB Vector: 🔒
VulDB Reliability: 🔍
NVD Base Score: 6.1
NVD Vector: 🔒
CNA Base Score: 3.3
CNA Vector: 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Out-of-boundsCWE: CWE-125 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒
Physical: Partially
Local: Yes
Remote: No
Availability: 🔒
Access: Public
Status: Proof-of-Concept
Download: 🔒
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: PatchStatus: 🔍
0-Day Time: 🔒
Patch: 4dd08a4cdef5b1c42d9a2c19fc24412e97ef51d5
Timeline
02/09/2026 Advisory disclosed02/09/2026 VulDB entry created
02/26/2026 VulDB entry last update
Sources
Product: github.comAdvisory: 1702
Status: Confirmed
Confirmation: 🔒
CVE: CVE-2026-2240 (🔒)
GCVE (CVE): GCVE-0-2026-2240
GCVE (VulDB): GCVE-100-344979
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 02/09/2026 10:43Updated: 02/26/2026 13:51
Changes: 02/09/2026 10:43 (60), 02/09/2026 18:15 (30), 02/26/2026 13:51 (12)
Complete: 🔍
Submitter: Oneafter
Cache ID: 216::103
Submit
Accepted
- Submit #753155: janet-lang janet 883dde4 Heap-based Buffer Overflow (by Oneafter)
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.