CVE-2021-41556 Memory corruption in n/a

Critical 10.0 Published Updated

An out-of-bounds read in the Squirrel interpreter allows attackers to execute arbitrary code and escape the sandbox by providing a malicious script.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-41556?

CVE-2021-41556 is a critical memory corruption vulnerability in Fedoraproject Fedora, published on 28 Jul 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-125

Which versions are affected by CVE-2021-41556?

It affects 2 products.

Linux distribution packages (3)
squirrel SUSE:Package Hub 15 SP4All versions3.0.7-bp154.3.3.1
squirrel openSUSE:Leap 15.4All versions3.0.7-bp154.3.3.1
squirrel openSUSE:TumbleweedAll versions3.2-1.1

Products include Fedoraproject Fedora, Squirrel-Lang Squirrel.

How do I fix CVE-2021-41556?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-41556 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-41556 exists.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-41556, GHSA-cm28-mc8h-9h49, MGASA-2023-0150, UBUNTU-CVE-2021-41556, openSUSE-SU-2023:0080-1, openSUSE-SU-2024:12611-1.

Is CVE-2021-41556 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free