CVE-2026-2242 Details
Description
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.
A heap-buffer-overflow vulnerability has been identified in Janet-lang's Janet programming language, specifically in versions up to 1.40.1. The issue arises in the janetc_if function within the file src/core/specials.c. This vulnerability leads to an out-of-bounds read, where the program accesses memory beyond the allocated buffer, creating the potential for memory corruption or crashes. The vulnerability can be exploited locally, and a public exploit is available.
Users are advised to update to the latest version of Janet, where this vulnerability has been fixed. The patch is available in the official GitHub repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/janet-lang/janet/ | [email protected] | Product |
| https://github.com/janet-lang/janet/commit/c43e06672cd9dacf2122c99f362120a17c34b391 | [email protected] | Patch |
| https://github.com/janet-lang/janet/issues/1700 | [email protected] | ExploitIssue Tracking |
| https://github.com/janet-lang/janet/issues/1702 | [email protected] | ExploitIssue Tracking |
| https://github.com/oneafter/0123/blob/main/ja2/repro | [email protected] | Exploit |
| https://vuldb.com/?ctiid.344981 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.344981 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.754495 | [email protected] | Third Party AdvisoryVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer | [email protected] |
| CWE-125 | Out-of-bounds Read | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| janet-lang janet | <= 1.40.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Feb 25, 2026 | Initial Analysis | [email protected] |
| Feb 9, 2026 | New CVE Received | [email protected] |