{"id":"CVE-2021-41556","aliases":["DEBIAN-CVE-2021-41556","EUVD-2021-28574","GHSA-cm28-mc8h-9h49","MGASA-2023-0150","UBUNTU-CVE-2021-41556","openSUSE-SU-2023:0080-1","openSUSE-SU-2024:12611-1"],"status":"published","title":"sqclass.cpp in Squirrel through 2.2.5 and 3.x through 3.1 allows an out-of-bounds read (in the...","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.","severity":{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.02917,"percentile":0.87115,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-125"],"published":"2022-07-28T20:41:36Z","modified":"2026-10-28T17:00:05Z","fixes":[{"ecosystem":"Debian:13","package":"squirrel3","fixed_in":["3.1-8.2+deb13u1"],"sources":["osv"]},{"ecosystem":"Mageia:8","package":"squirrel","fixed_in":["3.2-1.mga8"],"sources":["osv"]},{"ecosystem":"Mageia:8","package":"supertux","fixed_in":["0.6.2-4.2.mga8"],"sources":["osv"]},{"ecosystem":"SUSE:Package Hub 15 SP4","package":"squirrel","fixed_in":["3.0.7-bp154.3.3.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.4","package":"squirrel","fixed_in":["3.0.7-bp154.3.3.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"squirrel","fixed_in":["3.2-1.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:13","package":"squirrel3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1-8.2+deb13u1"}]}],"versions":["3.1-8.2"]},{"source":"osv","ecosystem":"Mageia:8","package":"squirrel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2-1.mga8"}]}]},{"source":"osv","ecosystem":"Mageia:8","package":"supertux","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.2-4.2.mga8"}]}]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"squirrel3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1-4","3.1-5"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"squirrel3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1-8","3.1-8build1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"squirrel3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1-8build1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"squirrel3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1-8.2"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"squirrel3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1-8.3","3.1-8.4","3.1-8.5"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"squirrel3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1-8.2","3.1-8.3"]},{"source":"osv","ecosystem":"SUSE:Package Hub 15 SP4","package":"squirrel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.7-bp154.3.3.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Leap 15.4","package":"squirrel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.7-bp154.3.3.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"squirrel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2-1.1"}]}]}],"products":[{"vendor":"fedoraproject","product":"fedora"},{"vendor":"squirrel-lang","product":"squirrel"}],"references":[{"url":"https://github.com/albertodemichelis/squirrel/commit/23a0620658714b996d20da3d4dd1a0dcf9b0bd98","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"http://www.squirrel-lang.org/#download","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","report"]},{"url":"https://blog.sonarsource.com/squirrel-vm-sandbox-escape/","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BV7SJJ44AGAX4ILIVPREIXPJ2GOG3FKV/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M3FQILX7UUEERSDPMZP3MKGTMY2E7ESU/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://www.sonarsource.com/blog/squirrel-vm-sandbox-escape/","tags":["exploit","article"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41556"},{"url":"https://blog.sonarsource.com/squirrel-vm-sandbox-escape"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BV7SJJ44AGAX4ILIVPREIXPJ2GOG3FKV"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M3FQILX7UUEERSDPMZP3MKGTMY2E7ESU"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BV7SJJ44AGAX4ILIVPREIXPJ2GOG3FKV"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M3FQILX7UUEERSDPMZP3MKGTMY2E7ESU"},{"url":"https://www.sonarsource.com/blog/squirrel-vm-sandbox-escape"},{"url":"https://github.com/advisories/GHSA-cm28-mc8h-9h49"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-41556","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2023-0150.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=30742","tags":["report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/M3FQILX7UUEERSDPMZP3MKGTMY2E7ESU/","tags":["web"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/5NX6SWKNR7LNUXJROLGLSVD3ZEB4LUQY/","tags":["web","advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-41556","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-41556","tags":["report"]},{"url":"https://bugzilla.suse.com/1201974","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2021-41556","tags":["web"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2021-41556","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.","status":"published","published":"2022-07-28T20:41:36Z","modified":"2026-05-29T18:48:40.016Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"adp"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:32:59.105382Z"}],"euvd":[{"id":"EUVD-2021-28574","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.","status":"published","published":"2022-07-28T20:41:36Z","modified":"2026-05-29T18:48:40Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T18:21:00.384456Z"}],"ghsa":[{"id":"GHSA-cm28-mc8h-9h49","title":"sqclass.cpp in Squirrel through 2.2.5 and 3.x through 3.1 allows an out-of-bounds read (in the...","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.","status":"published","published":"2022-07-29T00:00:18Z","modified":"2026-05-29T21:32:20Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T15:08:24.903932Z"}],"nvd":[{"id":"CVE-2021-41556","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.","status":"published","published":"2022-07-28T21:15:08.057Z","modified":"2026-06-17T04:08:38.493Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:07:06.906968Z"}],"osv":[{"id":"CVE-2021-41556","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.","status":"published","published":"2022-07-28T21:15:08.057Z","modified":"2026-10-20T14:06:42.626352619Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:21.557945Z"},{"id":"DEBIAN-CVE-2021-41556","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.","status":"published","published":"2022-07-28T21:15:08.057Z","modified":"2026-10-28T17:00:05.167213405Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:35.521549Z"},{"id":"UBUNTU-CVE-2021-41556","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.","status":"published","published":"2022-07-28T21:15:00Z","modified":"2026-10-17T12:56:15.897721971Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:29.220315Z"},{"id":"MGASA-2023-0150","title":"Updated squirrel/supertux packages fix security vulnerability","description":"sqclass.cpp in Squirrel 3.1 allows an out-of-bounds read (in the core\ninterpreter) that can lead to Code Execution. If a victim executes an\nattacker-controlled squirrel script, it is possible for the attacker to\nbreak out of the squirrel script sandbox even if all dangerous\nfunctionality such as File System functions has been disabled. An\nattacker might abuse this bug to target (for example) Cloud services\nthat allow customization via SquirrelScripts, or distribute malware\nthrough video games that embed a Squirrel Engine. (CVE-2021-41556)\n\nsupertux has been rebuilt as it uses a bundled copy of squirrel.\n","status":"published","published":"2023-04-24T00:20:26Z","modified":"2026-04-16T04:43:29.764022086Z","updated_at":"2026-11-02T15:49:42.263076Z"},{"id":"openSUSE-SU-2023:0080-1","title":"Security update for squirrel","description":"This update for squirrel fixes the following issues:\n\n- CVE-2021-41556: fix out-of-bounds read issue (boo#1201974)\n","status":"published","published":"2023-03-23T17:01:16Z","modified":"2026-02-04T03:43:25.270394Z","updated_at":"2026-11-02T16:58:32.653274Z"},{"id":"openSUSE-SU-2024:12611-1","title":"squirrel-3.2-1.1 on GA media","description":"These are all security issues fixed in the squirrel-3.2-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:56:33.140931Z","updated_at":"2026-11-02T16:58:35.751245Z"}]}}
