{"id":"CVE-2026-2242","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.","modified":"2026-10-28T11:09:43.728276486Z","published":"2026-02-09T17:02:09.705Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/2xxx/CVE-2026-2242.json","cna_assigner":"VulDB","cwe_ids":["CWE-119","CWE-125"]},"references":[{"type":"WEB","url":"https://github.com/janet-lang/janet/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/2xxx/CVE-2026-2242.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-2242"},{"type":"ADVISORY","url":"https://vuldb.com/?id.344981"},{"type":"ADVISORY","url":"https://vuldb.com/?submit.754495"},{"type":"REPORT","url":"https://github.com/janet-lang/janet/issues/1700"},{"type":"REPORT","url":"https://github.com/janet-lang/janet/issues/1702"},{"type":"REPORT","url":"https://vuldb.com/?ctiid.344981"},{"type":"FIX","url":"https://github.com/janet-lang/janet/commit/c43e06672cd9dacf2122c99f362120a17c34b391"},{"type":"EVIDENCE","url":"https://github.com/oneafter/0123/blob/main/ja2/repro"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/janet-lang/janet","events":[{"introduced":"7e0c692d4e69383c26088f70a50bf793ed0d735b"},{"fixed":"c43e06672cd9dacf2122c99f362120a17c34b391"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion","range":[{"introduced":"1.40.0"},{"last_affected":"1.40.0"}]},{"range":[{"introduced":"1.40.1"},{"last_affected":"1.40.1"}],"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"c43e06672cd9dacf2122c99f362120a17c34b391"}]}]}}],"versions":["1.40.0","1.40.1","v1.40.1","v1.40.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-2242.json","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/janet-lang/janet/commit/c43e06672cd9dacf2122c99f362120a17c34b391","target":{"function":"janetc_if","file":"src/core/specials.c"},"deprecated":false,"digest":{"length":2286,"function_hash":"16514016381390146507687179303033039226"},"id":"CVE-2026-2242-96cdc6fc","signature_type":"Function"},{"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"},"deprecated":false}],"vanir_signatures_modified":"2026-10-28T11:09:43Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}