CVE-2021-41556
sqclass.cpp in Squirrel through 2.2.5 and 3.x through 3.1 allows an ou ...
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Ubuntu (medium).
Description
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| debian 10 | squirrel3 | no fix listed |
| debian 11 | squirrel3 | no fix listed |
| debian 13 | squirrel3 | 3.1-8.2+deb13u1 |
| debian 14 | squirrel3 | 3.1-8.5 |
| echo | squirrel3 | 3.1-8.2+deb13u1 |
| rapidfort debian 12 | squirrel3 | 0:3.1-8.2+deb13u1, 0:3.1-8.5 |
| rapidfort debian 13 | squirrel3 | 0:3.1-8.2+deb13u1, 0:3.1-8.5 |
| ubuntu 18.04-ESM | squirrel3 | no fix listed |
References
- http://www.squirrel-lang.org/#download
- https://blog.sonarsource.com/squirrel-vm-sandbox-escape/
- https://github.com/albertodemichelis/squirrel/commit/23a0620658714b996d20da3d4dd1a0dcf9b0bd98
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BV7SJJ44AGAX4ILIVPREIXPJ2GOG3FKV/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M3FQILX7UUEERSDPMZP3MKGTMY2E7ESU/
- https://www.cve.org/CVERecord?id=CVE-2021-41556
- https://www.sonarsource.com/blog/squirrel-vm-sandbox-escape/