A vulnerability has been found in janet-lang janet up to 1.40.1. The impacted element is the function janetcpopfuncdef 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.
[
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2026-2240-018d563a",
"target": {
"file": "src/core/io.c",
"function": "janet_dynprintf"
},
"digest": {
"length": 1116.0,
"function_hash": "214190959972194526235716830265561870328"
},
"signature_version": "v1",
"source": "https://github.com/janet-lang/janet/commit/4dd08a4cdef5b1c42d9a2c19fc24412e97ef51d5"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2026-2240-1949eac5",
"target": {
"file": "src/core/compile.c",
"function": "janetc_pop_funcdef"
},
"digest": {
"length": 3765.0,
"function_hash": "32326709762157823266090130667596064746"
},
"signature_version": "v1",
"source": "https://github.com/janet-lang/janet/commit/4dd08a4cdef5b1c42d9a2c19fc24412e97ef51d5"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2026-2240-2ea0244e",
"target": {
"file": "src/mainclient/shell.c",
"function": "savehistory"
},
"digest": {
"length": 343.0,
"function_hash": "129974172248156411833689488678535627705"
},
"signature_version": "v1",
"source": "https://github.com/janet-lang/janet/commit/4dd08a4cdef5b1c42d9a2c19fc24412e97ef51d5"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2026-2240-2fd86e35",
"target": {
"file": "src/core/io.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"101787241100834466017908988923848359954",
"242226077026452114764669332311655084445",
"24257182039059199003417950454958484776",
"185063801959956441004938115134755199383"
]
},
"signature_version": "v1",
"source": "https://github.com/janet-lang/janet/commit/4dd08a4cdef5b1c42d9a2c19fc24412e97ef51d5"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2026-2240-6ce8f497",
"target": {
"file": "src/core/compile.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"329320749035855979406612586541100938939",
"330133427121041722600053945692365024221",
"41715594008354400220783834437480755309",
"67983710413322016106816538753725412786",
"98048863920160825096524601563683997678"
]
},
"signature_version": "v1",
"source": "https://github.com/janet-lang/janet/commit/4dd08a4cdef5b1c42d9a2c19fc24412e97ef51d5"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2026-2240-a8ab9ed6",
"target": {
"file": "src/mainclient/shell.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"292535847021121797384379015677985504527",
"152945569975190055018400356135222682900",
"35338272386683302072103242016952696209",
"66644456928388379379016150498362920016"
]
},
"signature_version": "v1",
"source": "https://github.com/janet-lang/janet/commit/4dd08a4cdef5b1c42d9a2c19fc24412e97ef51d5"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-2240.json"