CVE-2026-2240

Source
https://cve.org/CVERecord?id=CVE-2026-2240
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-2240.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-2240
Published
2026-02-09T16:16:03.223Z
Modified
2026-03-02T08:04:38.925338Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/janet-lang/janet

Affected ranges

Type
GIT
Repo
https://github.com/janet-lang/janet
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*
0.1.0
0.2.0
0.3.0
1.*
1.19.1-rc1
v0.*
v0.4.0
v0.4.1
v0.5.0
v0.6.0
v1.*
v1.0.0
v1.1.0
v1.10.0
v1.10.1
v1.11.0
v1.11.1
v1.11.2
v1.11.3
v1.12.0
v1.12.1
v1.12.2
v1.13.0
v1.13.1
v1.14.1
v1.14.2
v1.15.0
v1.15.1
v1.15.2
v1.15.3
v1.15.4
v1.15.5
v1.16.0
v1.16.1
v1.17.0
v1.17.1
v1.17.2
v1.18.0
v1.18.1
v1.19.0
v1.19.1
v1.19.2
v1.2.0
v1.20.0
v1.21.0
v1.21.1
v1.21.2
v1.22.0
v1.23.0
v1.24.0
v1.24.1
v1.25.0
v1.25.1
v1.26.0
v1.27.0
v1.28.0
v1.29.0
v1.29.1
v1.3.0
v1.3.1
v1.30.0
v1.31.0
v1.32.0
v1.32.1
v1.33.0
v1.34.0
v1.35.0
v1.35.1
v1.35.2
v1.36.0
v1.37.0
v1.37.1
v1.38.0
v1.39.0
v1.39.1
v1.4.0
v1.40.0
v1.40.1
v1.5.0
v1.5.1
v1.6.0
v1.7.0
v1.8.0
v1.8.1
v1.9.0
v1.9.1

Database specific

vanir_signatures
[
    {
        "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"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-2240.json"