Out-of-bounds Read in Squirrel-Lang Squirrel
CVE-2021-41556
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 10.0 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.029, 87.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Squirrel-Lang Squirrel
- Fedoraproject Fedora — versions 35, 36
Weakness classification (CWE)
References
- github.com/albertodemichelis/squirrel/commit/23a0620658714b996d20da3d4dd1a0dcf9… (Patch, Third Party Advisory)
- www.squirrel-lang.org/ (Third Party Advisory)
- blog.sonarsource.com/squirrel-vm-sandbox-escape/ (Exploit, Third Party Advisory)
- FEDORA-2022-e81c0db364 (vendor-advisory)
- FEDORA-2022-e139f256f6 (vendor-advisory)
- www.sonarsource.com/blog/squirrel-vm-sandbox-escape/