CVE-2026-9541 Details
Description
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.
A heap-based buffer overflow vulnerability has been identified in Squirrel versions through 3.2. The issue arises in the ReadObject function within the Cnut File Handler component, specifically in the file squirrel/sqobject.cpp. The vulnerability allows for local exploitation by manipulating string lengths in crafted bytecode, leading to memory corruption. The issue has been publicly disclosed and could be used for attacks.
The vulnerability can be addressed by modifying the ReadObject function to reject negative string lengths before processing them. This can be done by adding a check for negative values and raising an error if an invalid length is detected.
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 May 26, 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/327 | CISA-ADP | ExploitIssue TrackingMitigationPatch |
| https://github.com/albertodemichelis/squirrel/issues/327 | [email protected] | ExploitIssue TrackingMitigationPatch |
| https://github.com/biniamf/pocs/tree/main/squirrel-sqobject-readobject-neg-len-oob | [email protected] | Exploit |
| https://vuldb.com/submit/814826 | [email protected] | ExploitThird Party AdvisoryVDB Entry |
| https://vuldb.com/vuln/365602 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/vuln/365602/cti | [email protected] | Permissions RequiredVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer | [email protected] |
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| squirrel-lang squirrel | <= 3.2 |
CPE
Remediation
| |
Change History
6 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 27, 2026 | Initial Analysis | [email protected] |
| May 26, 2026 | CVE Modified | CISA-ADP |
| May 26, 2026 | New CVE Received | [email protected] |