Skip to main content

Squirrel CVE-2026-8258

| EUVDEUVD-2026-29014 LOW
Stack-based Buffer Overflow (CWE-121)
2026-05-11 VulDB GHSA-fff5-x34w-4v72
1.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local system access
  2. Delivery
    Execute Squirrel code or script
  3. Exploit
    Invoke validate_format function with oversized input
  4. Execution
    Trigger stack buffer overflow
  5. Persist
    Corrupt return address or execute payload
  6. Impact
    Achieve 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Squirrel 3.2
Squirrel 3.1
Squirrel 3.0

Affected Packages

euvd squirrel no fix

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

Vendor (VulDB) PRIMARY 1.9 LOW
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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
May 11, 2026 - 02:22 NVD
MEDIUM LOW
CVSS changed
May 11, 2026 - 02:22 NVD
5.3 (MEDIUM) 1.9 (LOW)
CVE Published
May 11, 2026 - 00:45 nvd
MEDIUM 5.3

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

EPSS Score
0.0%
Top 98% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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 2

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy