CVE-2026-2240
published medium CVSS 4.0 · 4.8janet-lang janet compile.c janetc_pop_funcdef out-of-bounds
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| janet-lang | — | janet1.40.0 · 1.40.1 | Affected | Not stated | VulDB |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 4.8 / 10
- Severity
- medium
- Provider
- VulDB · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 3.3 | low | VulDB · cna | 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 | — |
| 3.0 | 3.3 | low | VulDB · cna | 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 | — |
| 2.0 | 1.7 | low | VulDB · cna | AV:L/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:OF/RC:C | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| janet-lang | janet | 1.40.0 (affected)1.40.1 (affected) | VulDB · cna |
Weaknesses
2- CWE-125 Out-of-Bounds Read
- CWE-119 Memory Corruption
References
8- 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
- VDB-344979 | CTI Indicators (IOB, IOC, IOA) https://vuldb.com/?ctiid.344979
- VDB-344979 | janet-lang janet compile.c janetc_pop_funcdef out-of-bounds https://vuldb.com/?id.344979
- Submit #753155 | janet-lang janet 883dde4 Heap-based Buffer Overflow https://vuldb.com/?submit.753155
Provider assertions
2VulDB · cna
janet-lang janet compile.c janetc_pop_funcdef out-of-bounds
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0a65de2970cec5494d358d9188488d84caa3c398b145bd48be04531925eb3050
- Ingested
- 23 Sep 2026, 09:08:49 UTC
- Source record
- Official CVE record