CVE-2026-2241 janet-lang janet os.c os_strftime out-of-bounds

Medium 4.8 Published Updated

A local attacker can trigger an out-of-bounds read in the os_strftime function, potentially causing crashes or leaking memory.

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-2241?

CVE-2026-2241 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 found in janet-lang janet up to 1.40.1. This affects the function os_strftime of the file src/core/os.c. Performing a manipulation results in out-of-bounds read. The attack must be initiated from a local position. The exploit has been made public and could be used. The patch is named 0f285855f0e34f9183956be5f16e045f54626bff. To fix this issue, it is recommended to deploy a patch.

Weakness: CWE-125, CWE-119

Which versions are affected by CVE-2026-2241?

It affects 1 product.

Products include Janet-Lang Janet.

How do I fix CVE-2026-2241?

No fix has been published for CVE-2026-2241 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-2241 being exploited?

There is no known exploitation of CVE-2026-2241 in the wild and no public exploit code.

Sources

Also known as GHSA-p4g6-r7g4-6g8h.

Is CVE-2026-2241 in your software?

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

Check your SBOMs for free