CVE-2021-41556
Squirrel-lang Squirrel vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Squirrel, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Squirrel-lang Squirrel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/albertodemichelis/squirrel/commit/23a0620658714b996d20da3d4dd1a0dcf9b0bd98 · Patch
- www.squirrel-lang.org/#download · Third Party Advisory
- blog.sonarsource.com/squirrel-vm-sandbox-escape/ · Exploit
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M
- www.sonarsource.com/blog/squirrel-vm-sandbox-escape/
- nvd.nist.gov/vuln/detail/CVE-2021-41556
- cve.org/CVERecord?id=CVE-2021-41556
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.