CVE-2021-41556
CRITICALSquirrel < 2.2.5 and 3.x < 3.1 - Out-of-bounds Read leading to Code Execution
Title source: llmDescription
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 can lead to Code Execution. If a victim executes an attacker-controlled squirrel script, it is possible for the attacker to break out of the squirrel script sandbox even if all dangerous functionality such as File System functions has been disabled. An attacker might abuse this bug to target (for example) Cloud services that allow customization via SquirrelScripts, or distribute malware through video games that embed a Squirrel Engine.
References (6)
Core 6
Core References
Patch, Third Party Advisory x_refsource_misc
https://github.com/albertodemichelis/squirrel/commit/23a0620658714b996d20da3d4dd1a0dcf9b0bd98
Third Party Advisory x_refsource_misc
http://www.squirrel-lang.org/#download
Exploit, Third Party Advisory x_refsource_misc
https://blog.sonarsource.com/squirrel-vm-sandbox-escape/
Mailing List, Third Party Advisory vendor-advisory
x_refsource_fedora
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BV7SJJ44AGAX4ILIVPREIXPJ2GOG3FKV/
Mailing List, Third Party Advisory vendor-advisory
x_refsource_fedora
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M3FQILX7UUEERSDPMZP3MKGTMY2E7ESU/
Various Sources
https://www.sonarsource.com/blog/squirrel-vm-sandbox-escape/
Scores
CVSS v3
10.0
EPSS
0.0213
EPSS Percentile
79.7%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
yes
Technical Impact
total
Details
CWE
CWE-125
Status
published
Products (3)
fedoraproject/fedora
35
fedoraproject/fedora
36
squirrel-lang/squirrel
< 2.2.5
Published
Jul 28, 2022
Tracked Since
Feb 18, 2026