CVE-2021-41556Squirrel-lang Squirrel
Critical 10.0 No auth needed
Follow: this CVE · Squirrel-lang · Squirrel-lang Squirrel We alert you by email or Slack (account required).
- Priority
- 75
- CVSS 3.1
- 10.0
- EPSS
- 2.9% probability of exploitation in 30 days · percentile 88
- Auth required
- No
- Published
- Jul 28, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-125
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Squirrel.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| squirrel-lang | squirrel | ≤ 2.2.5 |
| squirrel-lang | squirrel | ≥ 3.0 ≤ 3.1 |
| fedoraproject | fedora | 35 |
| fedoraproject | fedora | 36 |
Official sources
References
Links published by the sources. Open them with care.
- www.squirrel-lang.org Third Party Advisory
- blog.sonarsource.com Exploit Third Party Advisory
- github.com Patch Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- www.sonarsource.com