CVE-2026-3388 Details
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.
A stack overflow vulnerability due to uncontrolled recursion has been identified in the Squirrel programming language compiler, specifically in versions up to 3.2. The issue arises in the 'SQCompiler::Factor' and 'SQCompiler::UnaryOP' functions within 'squirrel/sqcompiler.cpp'. This vulnerability allows for deep recursion when the parser processes scripts with heavily nested unary operators, such as multiple logical NOTs. The lack of a depth limit in the recursion handling leads to excessive stack usage, causing a crash. This vulnerability requires local exploitation and has a public proof-of-concept available.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/albertodemichelis/squirrel/issues/312 | [email protected] | ExploitIssue TrackingVendor Advisory |
| https://github.com/oneafter/0122/blob/main/i312/repro | [email protected] | Exploit |
| https://vuldb.com/?ctiid.348274 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.348274 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.761314 | [email protected] | Third Party AdvisoryVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-404 | Improper Resource Shutdown or Release | [email protected] |
| CWE-674 | Uncontrolled Recursion | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| squirrel-lang squirrel | <= 3.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Mar 5, 2026 | Initial Analysis | [email protected] |
| Mar 1, 2026 | New CVE Received | [email protected] |