CVE-2026-3388

Squirrel sqcompiler.cpp UnaryOP recursion

Published Mar 1, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A flaw in the Squirrel compiler causes recursive calls in SQCompiler::Factor and SQCompiler::UnaryOP during parsing of certain unary operators, leading to unbounded recursion and eventual stack exhaustion. The description states that the uncontrolled recursion can be triggered by executing a crafted Squirrel script, which results in a denial of service. The bug is associated with CWE-404 (Missing Exception Handling) and CWE-674 (Recursive Calls).

Affected Systems

All builds of the Squirrel language compiler up to and including version 3.2 are affected. The vulnerability exists in the sqcompiler.cpp source used by every platform that compiles Squirrel code, and it is not limited to a specific operating system or deployment scenario.

Risk and Exploitability

The CVSS score of 4.8 indicates a moderate severity. The EPSS score is below 1%, showing a very low current exploitation probability, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, the attack vector is local; the exploit requires the attacker to run a malicious Squirrel script on the target machine. No remote code execution or credential compromise is possible through this flaw.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a Squirrel release that fixes the recursion bug if one is available.
  • If a patch is not yet released, block execution of untrusted or unknown Squirrel scripts for users who do not require local compilation, or run such scripts inside a sandboxed environment with a limited stack size.
  • Identify the SQCompiler source and add an explicit recursion depth check or limit before each recursive call as an interim workaround.

Generated by OpenCVE AI on April 17, 2026 at 13:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Squirrel-lang
Squirrel-lang squirrel
CPEs cpe:2.3:a:squirrel-lang:squirrel:*:*:*:*:*:*:*:*
Vendors & Products Squirrel-lang
Squirrel-lang squirrel
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Albertodemichelis
Albertodemichelis squirrel
Vendors & Products Albertodemichelis
Albertodemichelis squirrel
Type Values Removed Values Added
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.
Title Squirrel sqcompiler.cpp UnaryOP recursion
Weaknesses CWE-404
CWE-674
References
Metrics cvssV2_0

{'score': 1.7, 'vector': 'AV:L/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 3.3, 'vector': 'CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-404

    Improper Resource Shutdown or Release

  • CWE-674

    Uncontrolled Recursion

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Mar 2, 2026, 3:12 PM
Reserved
Feb 28, 2026, 2:53 PM
Status
Analyzed
Published
Mar 1, 2026, 10:16 AM
Modified
Jun 17, 2026, 10:43 AM