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

Machine-generated threat intelligence

AILast updated: 03/09/2026, 01:26:07 UTC

Technical Analysis

CVE-2026-3388 identifies a vulnerability in the Squirrel scripting language, specifically in versions 3.0 through 3.2. The issue resides in the SQCompiler component, particularly within the Factor and UnaryOP functions in the sqcompiler.cpp source file. These functions are responsible for parsing and compiling expressions. Due to improper handling of certain inputs, an attacker with local access can craft input that triggers uncontrolled recursion, leading to a stack overflow or application crash. This uncontrolled recursion occurs because the compiler fails to correctly limit recursive calls when processing manipulated expressions, causing the call stack to grow indefinitely. The vulnerability requires local access with low privileges but does not require user interaction or elevated privileges. The CVSS 4.0 base score is 4.8 (medium severity), reflecting the limited attack vector (local) and moderate impact. The vulnerability does not affect confidentiality, integrity, or availability beyond potential denial of service via crash. No patches have been released yet, and the Squirrel project has not responded to the issue report. The exploit code is publicly available, increasing the risk of local exploitation in environments where Squirrel is embedded and accessible to untrusted users.

Potential Impact

The primary impact of CVE-2026-3388 is denial of service through application crashes caused by stack overflow from uncontrolled recursion. This can disrupt services or applications embedding Squirrel, potentially causing downtime or instability. Since the vulnerability requires local access, remote exploitation is not feasible unless combined with other vulnerabilities that provide local code execution. The impact on confidentiality and integrity is minimal, as the vulnerability does not allow code execution or data manipulation directly. However, in environments where Squirrel is used for scripting critical functions, repeated crashes could lead to operational disruptions. Organizations embedding Squirrel in software products or using it internally should be aware that untrusted local users could exploit this flaw to cause service interruptions. The lack of an official patch increases the risk until mitigations are applied.

Mitigation Recommendations

To mitigate CVE-2026-3388, organizations should first restrict local access to systems running Squirrel to trusted users only, minimizing the risk of local exploitation. Implement strict access controls and monitoring to detect unusual crashes or recursion-related failures in applications embedding Squirrel. If feasible, disable or sandbox scripting features that utilize the vulnerable compiler functions to limit exposure. Developers should review and audit any input passed to the SQCompiler::Factor and UnaryOP functions to ensure it cannot be manipulated to cause recursion loops. Until an official patch is released, consider applying custom code fixes or workarounds such as input validation or recursion depth limits within the Squirrel embedding environment. Additionally, maintain up-to-date backups and prepare incident response plans for potential denial of service scenarios. Monitor the Squirrel project and vulnerability databases for any forthcoming patches or updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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/9/2026, 1:26:07 AM

Last updated: 4/16/2026, 5:20:27 AM

Views: 109

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