CVE-2026-8258 Details
Description
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.
A stack-based buffer overflow vulnerability has been identified in Squirrel versions through 3.2. The issue arises in the validate_format function within the sqstdlib/sqstdstring.cpp library. The vulnerability is caused by an off-by-one error in the length validation of format specifiers, allowing a specifier of exactly 20 characters to overflow a 20-byte stack buffer. This flaw can be exploited locally by executing manipulated Squirrel scripts that access the string library.
Users are advised to update to a version of Squirrel that has addressed this vulnerability. The off-by-one error in the length check should be corrected to properly validate format specifiers.
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.
Volerion
Assessed May 11, 2026CISA-ADP
Assessed May 11, 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/325 | CISA-ADP | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/albertodemichelis/squirrel/issues/325 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/biniamf/pocs/tree/main/squirrel-validate_format-memcpy-oob | [email protected] | Exploit |
| https://vuldb.com/submit/809873 | [email protected] | Permission Required |
| https://vuldb.com/vuln/362555 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/362555/cti | [email protected] | AdvisoryPermission Required |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer | [email protected] |
| CWE-121 | Stack-based Buffer Overflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Squirrel | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 11, 2026 | CVE Modified | CISA-ADP |
| May 11, 2026 | New CVE Received | [email protected] |
Volerion