CVE-2026-2242 janet-lang janet specials.c janetc_if out-of-bounds

Medium 4.8 Published Updated

A local attacker can trigger an out-of-bounds read in the Janet interpreter's conditional logic, potentially exposing memory or causing a crash.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-2242?

CVE-2026-2242 is a medium-severity memory corruption vulnerability in janet-lang janet, published on 9 Feb 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-125, CWE-119

Which versions are affected by CVE-2026-2242?

It affects 1 product.

Products include Janet-Lang Janet.

How do I fix CVE-2026-2242?

No fix has been published for CVE-2026-2242 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-2242 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-2242 exists.

Sources

Also known as GHSA-j4rx-v32x-q49g.

Is CVE-2026-2242 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free