Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-3388: Uncontrolled Recursion in Squirrel

0
Medium
VulnerabilityCVE-2026-3388cvecve-2026-3388
Published: Sun Mar 01 2026 (03/01/2026, 09:32:11 UTC)
Source: CVE Database V5
Product: Squirrel

Description

A vulnerability was found in Squirrel up to 3.2. This affects the function SQCompiler::Factor/SQCompiler::UnaryOP of the file squirrel/sqcompiler.cpp. Performing a manipulation results in uncontrolled recursion. The attack needs to be approached locally. The exploit has been made public and could be used. The project was informed of the problem early through an issue report but has not responded yet.

AI-Powered Analysis

AILast updated: 03/01/2026, 10:10:25 UTC

Technical Analysis

CVE-2026-3388 identifies a vulnerability in the Squirrel scripting language, specifically affecting versions 3.0 through 3.2. The issue resides in the SQCompiler component, particularly within the functions SQCompiler::Factor and SQCompiler::UnaryOP in the sqcompiler.cpp source file. These functions are responsible for parsing and compiling expressions. Due to improper input validation or control flow, an attacker with local access can craft input that triggers uncontrolled recursion during compilation. This recursion can lead to stack overflow or resource exhaustion, causing a denial of service condition on the host system. The vulnerability requires local access with low privileges and does not require user interaction or authentication escalation. The CVSS 4.0 base score is 4.8 (medium), reflecting the limited attack vector (local), low complexity, and lack of impact on confidentiality or integrity. While a public exploit has been published, there are no reports of active exploitation in the wild. The Squirrel project was informed early via an issue report but has not yet responded or released a patch. This leaves users exposed until mitigations or updates are available. The vulnerability primarily affects environments where Squirrel is embedded or used for scripting, such as game engines, IoT devices, or custom applications.

Potential Impact

The primary impact of CVE-2026-3388 is a denial of service through uncontrolled recursion leading to stack exhaustion or application crash. This can disrupt services or applications embedding the vulnerable Squirrel interpreter, potentially causing downtime or degraded functionality. Since exploitation requires local access, remote attackers cannot directly leverage this vulnerability without first compromising a local account. There is no indication of confidentiality or integrity compromise, so data theft or manipulation is unlikely. However, denial of service in critical embedded systems or applications relying on Squirrel could have operational consequences. The lack of a patch increases exposure time, especially in environments where local user access is possible or where untrusted code execution is permitted. Organizations using Squirrel in production or embedded contexts should consider the risk of local denial of service and potential impact on system availability.

Mitigation Recommendations

To mitigate CVE-2026-3388, organizations should first restrict local access to trusted users only, minimizing the risk of local exploitation. Implement strict access controls and monitoring on systems running Squirrel to detect unusual process crashes or resource exhaustion. Where feasible, sandbox or isolate the Squirrel interpreter to limit the impact of a denial of service. Developers embedding Squirrel should review and sanitize inputs passed to the compiler functions to prevent malicious recursion triggers. Until an official patch is released, consider upgrading to a version beyond 3.2 if available or applying custom code fixes to limit recursion depth in SQCompiler functions. Additionally, maintain updated backups and incident response plans to quickly recover from potential denial of service events. Monitor official Squirrel project channels for patches or advisories and apply updates promptly once available.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
VulDB
Date Reserved
2026-02-28T14:53:41.698Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69a40d3b32ffcdb8a215b143

Added to database: 3/1/2026, 9:56:11 AM

Last enriched: 3/1/2026, 10:10:25 AM

Last updated: 3/2/2026, 7:00:16 AM

Views: 21

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses