CVE-2021-23803 Access Control Bypass

Critical 9.8 Published Updated

Attackers can bypass function restrictions in the Latte template engine by injecting control characters, potentially leading to unauthorized code execution.

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

CVE-2021-23803 is a critical vulnerability in latte/latte, published on 17 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

This affects the package latte/latte before 2.10.6. There is a way to bypass allowFunctions that will affect the security of the application. When the template is set to allow/disallow the use of certain functions, adding control characters (x00-x08) after the function will bypass these restrictions.

Weakness: CWE-863

Which versions are affected by CVE-2021-23803?

2 open source packages ship an affected version, including latte/latte. It affects 1 product.

PackageAffectedFixed in
latte/latte PackagistAll versions2.10.6
latte/latte PackagistAll versions2.10.6

Products include Nette Latte.

How do I fix CVE-2021-23803?

Upgrade latte/latte to 2.10.6 or later.

Is CVE-2021-23803 being exploited?

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

Sources

Also known as GHSA-6pj2-5fqq-xvjc, SNYK-PHP-LATTELATTE-1932226, UBUNTU-CVE-2021-23803.

Is CVE-2021-23803 in your software?

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

Check your SBOMs for free