CVE-2008-4810 Code injection in n/a

High 7.5 Published Updated

Remote attackers can execute arbitrary PHP code in Smarty templating library via crafted template inputs involving dollar signs or quoted strings.

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

CVE-2008-4810 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 before r2797 allows remote attackers to execute arbitrary PHP code via vectors related to templates and (1) a dollar-sign character, aka "php executed in templates;" and (2) a double quoted literal string, aka a "function injection security hole." NOTE: each vector affects slightly different SVN revisions.

Weakness: CWE-94

Which versions are affected by CVE-2008-4810?

It affects 1 product.

Products include Smarty Smarty.

How do I fix CVE-2008-4810?

Upgrade to a fixed version.

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

Is CVE-2008-4810 being exploited?

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

Sources

Also known as GHSA-c7vg-7rfq-795p.

Is CVE-2008-4810 in your software?

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

Check your SBOMs for free