CVE-2021-41556
Last modified
CVE-2021-41556 is a critical-severity vulnerability rated 10/10 on the CVSS scale. 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. EPSS estimates a 2.13% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Squirrel-Lang | Squirrel | <= 2.2.5 |
| Squirrel-Lang | Squirrel | >= 3.0, <= 3.1 |
| Fedoraproject | Fedora | 35 |
| Fedoraproject | Fedora | 36 |
References
- http://www.squirrel-lang.org/#downloadThird Party Advisory
- https://blog.sonarsource.com/squirrel-vm-sandbox-escape/Exploit, Third Party Advisory
- https://github.com/albertodemichelis/squirrel/commit/23a0620658714b996d20da3d4dd1a0dcf9b0bd98Patch, Third Party Advisory
- http://www.squirrel-lang.org/#downloadThird Party Advisory
- https://blog.sonarsource.com/squirrel-vm-sandbox-escape/Exploit, Third Party Advisory
- https://github.com/albertodemichelis/squirrel/commit/23a0620658714b996d20da3d4dd1a0dcf9b0bd98Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-41556?
How severe is CVE-2021-41556?
How do I fix CVE-2021-41556?
Are you affected by CVE-2021-41556?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
