Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local low-privilege access
-
DeliveryCraft malicious Cnut file with invalid object length
-
ExploitSupply file to Squirrel-embedded application parser
-
ExecutionTrigger heap-based buffer overflow in ReadObject (sqobject.cpp)
-
PersistCorrupt adjacent heap memory
-
ImpactAchieve partial confidentiality, integrity, or availability impact
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap 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 strictly requires local system access and at minimum low-privilege credentials, as confirmed by the CVSS:4.0 vector AV:L/PR:L. Remote exploitation is not possible under any configuration - the attack vector is inherently local. The attacker must be able to supply a malicious Cnut file to a running application that processes it through Squirrel's ReadObject function; applications that do not ingest external or user-controlled Cnut files are not exposed. No user interaction is required once the file reaches the parser. Exploitation is further bounded by the SSVC Automatable=No determination, meaning it cannot be scripted for mass targeting, and by the partial technical impact (VC:L/VI:L/VA:L), which means arbitrary code execution is not confirmed - the demonstrated impact is heap memory corruption with limited process-level effects. Non-default deployment: any Squirrel deployment that processes only internally generated, trusted Cnut files is not meaningfully exposed. |
| Impact | Multiple intelligence signals converge on a consistently low-risk assessment. The CVSS 4.0 score of 1.9 reflects a local attack vector (AV:L), low attack complexity (AC:L), low privilege requirement (PR:L), no user interaction (UI:N), and only partial impact across all three CIA pillars with no scope change - characteristics that substantially constrain real-world exploitability. EPSS corroborates this at 0.01% (2nd percentile), meaning fewer than 2% of known CVEs have a lower exploitation probability in current threat actor activity. The SSVC framework reinforces this: Exploitation=PoC (not active), Automatable=No, Technical Impact=Partial - meaning mass exploitation campaigns are not viable and impact is capped. The E:P modifier in the CVSS vector confirms the PoC is accounted for in scoring. No CISA KEV listing exists. The primary realistic risk is an insider or a compromised local account targeting applications that ingest externally sourced Cnut files. Despite the PoC's existence, this remains a low-priority finding for most organizations unless Squirrel is deployed in a context where untrusted Cnut files are routinely processed by privileged pipelines. |
| Exploit ScenarioDerived | A low-privilege local user on a system running an application that embeds the Squirrel scripting engine prepares a malformed Cnut file containing a crafted negative or oversized length field targeting the ReadObject function. The user supplies this file to the application - for example, by placing it in a directory monitored by a game modding loader or scripting pipeline - and upon parsing, the ReadObject function in sqobject.cpp writes beyond the bounds of a heap buffer, corrupting adjacent memory. A public proof-of-concept demonstrating this technique is available at https://github.com/biniamf/pocs/tree/main/squirrel-sqobject-readobject-neg-len-oob. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
Heap-based buffer overflow in Squirrel versions 3.0 through 3.2 allows a locally authenticated low-privilege attacker to corrupt heap memory by supplying a malicious Cnut file to the ReadObject function in sqobject.cpp. The impact is limited to partial confidentiality, integrity, and availability effects with no scope change, as confirmed by the CVSS 4.0 score of 1.9. A public proof-of-concept exploit exists on GitHub, but this vulnerability has not been confirmed actively exploited by CISA KEV, and EPSS places exploitation probability at just 0.01% (2nd percentile), indicating very low real-world exploitation activity.
RemediationAI
No vendor-released patch has been identified at time of analysis. The project was notified via GitHub issue (https://github.com/albertodemichelis/squirrel/issues/327) but has not responded. Organizations should actively monitor the upstream repository at https://github.com/albertodemichelis/squirrel for a fix release. As compensating controls, restrict local user permissions to prevent untrusted users from supplying arbitrary Cnut files to Squirrel-based applications - this directly addresses the required attack vector. Where feasible, disable or sandbox Cnut file ingestion from external or user-controlled sources; note this may break legitimate scripting workflows and should be tested in staging. Run applications embedding Squirrel in least-privilege OS contexts (e.g., dedicated service accounts, containers with restricted capabilities) to limit heap corruption impact. Input validation at the application layer on Cnut file headers and length fields can reduce exposure without requiring Squirrel engine changes.
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, embedded scripting language implemented in C++ and commonly integrated into games and applications. The vulnerable component is the ReadObject function within squirrel/sqobject.cpp, part of the Cnut File Handler subsystem responsible for deserializing compiled Squirrel bytecode files (.cnut). CWE-122 (Heap-based Buffer Overflow) identifies the root cause as improper bounds checking during object deserialization - a negative or crafted length value can cause the function to write beyond the boundaries of a heap-allocated buffer, corrupting adjacent memory. The CPE identifier cpe:2.3:a:n/a:squirrel:*:*:*:*:*:*:*:* indicates Squirrel is not formally registered under a recognized vendor in the NVD CPE dictionary, which may limit automated detection coverage in vulnerability management tooling.
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
2DescriptionCVE.org
A security flaw has been discovered in Squirrel up to 3.2. Impacted is the function ReadObject of the file squirrel/sqobject.cpp of the component Cnut File Handler. Performing a manipulation results in heap-based buffer overflow. The attack is only possible with local access. The exploit has been released to the public and may be used for attacks. 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 heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
sqclass.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
Stack-based buffer overflow in Squirrel up to version 3.2 within the validate_format function of sqstdlib/sqstdstring.cp
EUVD-2026-31813
GHSA-w3m6-w27h-v4g9
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB