janet-lang janet up to 1.40.1 src/core/compile.c janetc_pop_funcdef out-of-bounds

Summaryinfo

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.

Detailsinfo

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.

Productinfo

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒

CVSSv3info

VulDB Meta Base Score: 4.2
VulDB 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: 🔒

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Out-of-bounds
CWE: 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-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Patch
Status: 🔍

0-Day Time: 🔒

Patch: 4dd08a4cdef5b1c42d9a2c19fc24412e97ef51d5

Timelineinfo

02/09/2026 Advisory disclosed
02/09/2026 +0 days VulDB entry created
02/26/2026 +17 days VulDB entry last update

Sourcesinfo

Product: github.com

Advisory: 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

Entryinfo

Created: 02/09/2026 10:43
Updated: 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

Submitinfo

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.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!