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.
Published: 2026-03-01
Score: 4.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service via uncontrolled recursion
Action: Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

History

Thu, 05 Mar 2026 02:00:00 +0000

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

Mon, 02 Mar 2026 16:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 02 Mar 2026 12:15:00 +0000

Type Values Removed Values Added
First Time appeared Albertodemichelis
Albertodemichelis squirrel
Vendors & Products Albertodemichelis
Albertodemichelis squirrel

Sun, 01 Mar 2026 10:00:00 +0000

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


Subscriptions

Albertodemichelis Squirrel
Squirrel-lang Squirrel
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-03-02T15:12:02.853Z

Reserved: 2026-02-28T14:53:41.698Z

Link: CVE-2026-3388

cve-icon Vulnrichment

Updated: 2026-03-02T15:11:37.350Z

cve-icon NVD

Status : Analyzed

Published: 2026-03-01T10:16:01.133

Modified: 2026-03-05T01:47:06.350

Link: CVE-2026-3388

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-17T14:00:15Z

Weaknesses