CVE-2008-4811 Code injection in n/a

High 7.5 Published Updated

Remote attackers can execute arbitrary PHP code in Smarty templating library via crafted template input containing backslashes before dollar signs.

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

What is CVE-2008-4811?

CVE-2008-4811 is a high-severity code injection vulnerability in n/a, published on 31 Oct 2008. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The _expand_quoted_text function in libs/Smarty_Compiler.class.php in Smarty 2.6.20 r2797 and earlier allows remote attackers to execute arbitrary PHP code via vectors related to templates and a \ (backslash) before a dollar-sign character.

Weakness: CWE-264

Which versions are affected by CVE-2008-4811?

It affects 1 product.

Products include Smarty Smarty.

How do I fix CVE-2008-4811?

Upgrade to a fixed version.

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

Is CVE-2008-4811 being exploited?

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

Sources

Also known as GHSA-w343-xc9v-r5ww.

Is CVE-2008-4811 in your software?

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

Check your SBOMs for free