CVE-2026-2242

3.3 LOW

📋 TL;DR

This vulnerability in janet-lang allows local attackers to perform out-of-bounds read operations via the janetc_if function. It affects janet versions up to 1.40.1. The exploit requires local access to the system.

💻 Affected Systems

Products:
  • janet-lang janet
Versions: up to 1.40.1
Operating Systems: All platforms running janet
Default Config Vulnerable: ⚠️ Yes
Notes: All installations of affected versions are vulnerable

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Information disclosure leading to potential privilege escalation or system compromise through memory manipulation

🟠

Likely Case

Local information disclosure or application crash

🟢

If Mitigated

Minimal impact with proper access controls and isolation

🌐 Internet-Facing: LOW - requires local access to exploit
🏢 Internal Only: MEDIUM - local users could exploit this vulnerability

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploit requires local access and has been publicly disclosed

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.40.2 or later

Vendor Advisory: https://github.com/janet-lang/janet/commit/c43e06672cd9dacf2122c99f362120a17c34b391

Restart Required: Yes

Instructions:

1. Update janet to version 1.40.2 or later
2. Restart any services using janet
3. Recompile any janet-based applications

🔧 Temporary Workarounds

Restrict local access

all

Limit local user access to systems running vulnerable janet versions

🧯 If You Can't Patch

  • Implement strict access controls to limit local user privileges
  • Isolate janet applications in containers or VMs with minimal permissions

🔍 How to Verify

Check if Vulnerable:

Check janet version with 'janet -v' or examine installed packages

Check Version:

janet -v

Verify Fix Applied:

Verify version is 1.40.2 or later and check for commit c43e06672cd9dacf2122c99f362120a17c34b391

📡 Detection & Monitoring

Log Indicators:

  • Application crashes
  • Memory access violations
  • Unusual process behavior

Network Indicators:

  • None - local exploit only

SIEM Query:

Process monitoring for janet crashes or memory access violations

🔗 References

📤 Share & Export