{"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-08-12T15:31:38.724622Z","published":"2026-02-09T17:02:09.705Z","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":[{"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":"0"},{"fixed":"c43e06672cd9dacf2122c99f362120a17c34b391"}],"database_specific":{"cpe":"cpe:2.3:a:janet-lang:janet:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"1.40.1"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["1.40.0","1.40.1","v1.38.0","v1.40.1","v1.40.0","v1.39.1","v1.39.0","v1.37.1","v1.37.0","v1.36.0","v1.35.2","v1.35.1","v1.35.0","v1.34.0","v1.33.0","v1.32.1","v1.32.0","v1.31.0","v1.30.0","v1.29.1","v1.29.0","v1.28.0","v1.27.0","v1.26.0","v1.25.1","v1.25.0","v1.24.1","v1.24.0","v1.23.0","v1.22.0","v1.21.2","v1.21.1","v1.21.0","v1.20.0","v1.19.2","v1.19.1","1.19.1-rc1","v1.19.0","v1.18.1","v1.18.0","v1.17.2","v1.17.1","v1.17.0","v1.16.1","v1.16.0","v1.15.5","v1.15.4","v1.15.3","v1.15.2","v1.15.1","v1.15.0","v1.14.2","v1.14.1","v1.13.1","v1.13.0","v1.9.1","v1.9.0","v1.8.1","v1.8.0","v1.7.0","v1.6.0","v1.5.1","v1.5.0","v1.4.0","v1.2.0","v1.1.0","v1.0.0","v0.6.0","v0.5.0","v0.4.1","v0.4.0","0.3.0","0.2.0","0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-2242.json","vanir_signatures_modified":"2026-08-12T15:31:38Z","vanir_signatures":[{"source":"https://github.com/janet-lang/janet/commit/c43e06672cd9dacf2122c99f362120a17c34b391","target":{"file":"src/core/specials.c","function":"janetc_if"},"deprecated":false,"digest":{"function_hash":"16514016381390146507687179303033039226","length":2286},"id":"CVE-2026-2242-96cdc6fc","signature_type":"Function","signature_version":"v1"},{"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,"digest":{"line_hashes":["134961270482347083615491625704226475582","337414601554390145901963875142329261540","257063007698266830715566662527555059207","251430999923571613545547465521654561525","174659958993681944712580303641614256449"],"threshold":0.9}}]}}],"schema_version":"1.9.0","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"}]}