CVE-2008-1066 Code injection in n/a

High 7.5 Published Updated

Attackers can execute arbitrary PHP code via crafted templates in the Smarty library due to improper handling of null characters.

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

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

Official description

The modifier.regex_replace.php plugin in Smarty before 2.6.19, as used by Serendipity (S9Y) and other products, allows attackers to call arbitrary PHP functions via templates, related to a '\0' character in a search string.

Weakness: CWE-20

Which versions are affected by CVE-2008-1066?

It affects 1 product.

Products include Smarty Smarty.

How do I fix CVE-2008-1066?

Upgrade to a fixed version.

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

Is CVE-2008-1066 being exploited?

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

Sources

Also known as DSA-1520-1, GHSA-v4j9-rxfp-35qc.

Is CVE-2008-1066 in your software?

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

Check your SBOMs for free