CVE-2021-26119 Sandbox escape through template_object in smarty

High 7.5 Published Updated

Attackers can execute arbitrary code by escaping the sandbox via template object access in Smarty template engine.

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-26119?

CVE-2021-26119 is a high-severity code injection vulnerability in Debian Debian Linux, published on 22 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Smarty before 3.1.39 allows a Sandbox Escape because $smarty.template_object can be accessed in sandbox mode.

Which versions are affected by CVE-2021-26119?

2 open source packages ship an affected version, including smarty/smarty. It affects 2 products.

PackageAffectedFixed in
smarty/smarty PackagistAll versions3.1.39
smarty/smarty PackagistAll versions3.1.39

Products include Debian Debian Linux, Smarty Smarty.

How do I fix CVE-2021-26119?

Upgrade smarty/smarty to 3.1.39 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-26119 being exploited?

There is no known exploitation of CVE-2021-26119 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-26119, GHSA-w5hr-jm4j-9jvq, UBUNTU-CVE-2021-26119.

Is CVE-2021-26119 in your software?

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

Check your SBOMs for free