CVE-2026-2242

Source
https://cve.org/CVERecord?id=CVE-2026-2242
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-2242.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-2242
Published
2026-02-09T17:02:09Z
Modified
2026-10-21T09:44:51Z
Severity
  • 1.9 (Low) CVSS_V4 - 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 CVSS Calculator
Summary
janet-lang janet specials.c janetc_if out-of-bounds
Details

A vulnerability was determined in janet-lang janet up to 1.40.1. This impacts the function janetc_if of the file src/core/specials.c. Executing a manipulation can lead to out-of-bounds read. The attack needs to be launched locally. The exploit has been publicly disclosed and may be utilized. This patch is called c43e06672cd9dacf2122c99f362120a17c34b391. It is advisable to implement a patch to correct this issue.

Database specific
{
    "cna_assigner":  "VulDB",
    "cwe_ids":  [
        "CWE-119",
        "CWE-125"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/2xxx/CVE-2026-2242.json"
}
References

Affected packages

Git / github.com/janet-lang/janet

Affected ranges

Type
GIT
Repo
https://github.com/janet-lang/janet
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "1.40.0"
                },
                {
                    "last_affected":  "1.40.0"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandaloneSingleVersion"
        },
        {
            "range":  [
                {
                    "introduced":  "1.40.1"
                },
                {
                    "last_affected":  "1.40.1"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandaloneSingleVersion"
        },
        {
            "range":  [
                {
                    "fixed":  "c43e06672cd9dacf2122c99f362120a17c34b391"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

1.*
1.40.0
1.40.1
v1.*
v1.40.0
v1.40.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-2242.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "16514016381390146507687179303033039226",
            "length":  2286
        },
        "id":  "CVE-2026-2242-96cdc6fc",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/janet-lang/janet/commit/c43e06672cd9dacf2122c99f362120a17c34b391",
        "target":  {
            "file":  "src/core/specials.c",
            "function":  "janetc_if"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "134961270482347083615491625704226475582",
                "337414601554390145901963875142329261540",
                "257063007698266830715566662527555059207",
                "251430999923571613545547465521654561525",
                "174659958993681944712580303641614256449"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-2242-d06092f9",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/janet-lang/janet/commit/c43e06672cd9dacf2122c99f362120a17c34b391",
        "target":  {
            "file":  "src/core/specials.c"
        }
    }
]
vanir_signatures_modified
"2026-10-21T09:44:51Z"