Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local system access
-
DeliveryExecute Squirrel code or script
-
ExploitInvoke validate_format function with oversized input
-
ExecutionTrigger stack buffer overflow
-
PersistCorrupt return address or execute payload
-
ImpactAchieve code execution or denial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires: (1) Local system access (AV:L per CVSS), (2) ability to execute Squirrel code or pass input to an application using Squirrel (low privilege PR:L), (3) specific invocation of the validate_format function in sqstdlib/sqstdstring.cpp with attacker-controlled input, and (4) no bounds checking or input validation in the vulnerable code path. The vulnerability is NOT exploitable if validate_format is never called, the Squirrel interpreter runs with read-only or sandboxed constraints, or if input to the function is pre-validated and length-limited by the host application. No special configuration or non-default setup is required beyond normal Squirrel library usage. |
| Impact | CVSS 5.3 (Medium severity) with local attack vector (AV:L), low complexity (AC:L), and low privilege requirement (PR:L) indicates feasibility for legitimate local users or developers executing Squirrel scripts. EPSS data not provided, limiting exploitation probability assessment beyond CVSS signals. Public exploit code availability (POC=YES) and evidence E:P (Proof of Concept) in the CVSS vector confirm practical exploitability but NOT active widespread exploitation (KEV status absent). The project's documented lack of response raises concern about patch availability and deployment timelines. Real-world risk depends heavily on deployment context: embedded scripting environments, game engines, or automation tools running untrusted scripts face elevated risk; air-gapped or sandboxed deployments face lower risk. The requirement for local access and authenticated execution significantly reduces attack surface compared to remote vulnerabilities, but does not eliminate risk in multi-tenant or shared systems where local code execution is possible. |
| Exploit ScenarioDerived | A developer running an untrusted or attacker-controlled Squirrel script on a local system calls the validate_format function with a specially crafted format string or input buffer designed to exceed stack allocation. The function performs unsafe memcpy without bounds validation, writing beyond the buffer and corrupting adjacent stack memory including the return pointer. The attacker then returns to injected code or gadget chain to achieve arbitrary code execution with the privileges of the Squirrel interpreter process. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 11, 2026
Stack-based buffer overflow in Squirrel up to version 3.2 within the validate_format function of sqstdlib/sqstdstring.cpp allows local authenticated attackers to corrupt stack memory, potentially achieving code execution or denial of service. Public exploit code is available, and the vulnerability has been reported to the project with no vendor response documented at time of analysis.
RemediationAI
Primary remediation: upgrade Squirrel to a version later than 3.2 once released with the fix (vendor advisory not yet available). Immediate workaround if upgrade is not feasible: disable or restrict use of the validate_format function in string library operations, or implement input validation and length checks before passing untrusted data to format operations. If Squirrel is embedded in an application, restrict script execution context to non-privileged accounts and use OS-level sandboxing (e.g., containers, seccomp filters) to limit impact of potential code execution. Monitor the official Squirrel GitHub repository (https://github.com/albertodemichelis/squirrel) and issue #325 for patch announcements. Note that workarounds may break legitimate string formatting functionality and should be evaluated for compatibility.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Squirrel is a lightweight scripting language. The vulnerability exists in the standard library string validation function validate_format, which performs unsafe memory operations (likely memcpy-based) without proper bounds checking. CWE-121 (Stack-based Buffer Overflow) indicates the flaw occurs when the function writes data beyond allocated stack buffer boundaries, potentially overwriting return addresses, stack canaries, or local variables. The affected code path is in sqstdlib/sqstdstring.cpp, part of Squirrel's standard library implementation that handles string format operations.
Know when Squirrel gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A flaw has been found in Squirrel up to 3.2. Impacted is the function validate_format in the library sqstdlib/sqstdstring.cpp. Executing a manipulation can lead to stack-based buffer overflow. The attack can only be executed locally. The exploit has been published and may be used. The project was informed of the problem early through an issue report but has not responded yet.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
Related Vulnerabilities in Squirrel Buffer Overflow Vulnerabilities
View all 2sqclass.cpp in Squirrel through 2.2.5 and 3.x through 3.1 allows an out-of-bounds read (in the core interpreter) that ca
Heap-based buffer overflow in sqbaselib.cpp in SQUIRREL 3.2 due to lack of a certain sq_reservestack call. Rated critica
A security flaw has been discovered in Squirrel up to 3.2. This affects the function SQObjectPtr::operator in the librar
A vulnerability was determined in Squirrel up to 3.2. Affected by this vulnerability is the function SQFuncState::PopTar
A vulnerability was determined in Squirrel up to 3.2. This vulnerability affects the function sqstd_rex_newnode in the l
A vulnerability was found in Squirrel up to 3.2. This affects the function SQCompiler::Factor/SQCompiler::UnaryOP of the
Heap-based buffer overflow in Squirrel versions 3.0 through 3.2 allows a locally authenticated low-privilege attacker to
EUVD-2026-29014
GHSA-fff5-x34w-4v72
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB