Vulnerability in smarty3 - security update

smarty3 Updated 02 Oct 2025

Summary

03/05/2016
N/A
Yes i
Unrated
Not published

DLA-452-1: smarty3 - security update. Affects smarty3 versions < 3.1.10-2+deb7u1. Fixed in 3.1.10-2+deb7u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Smarty3 is a popular template engine for PHP. It is widely used to separate the presentation layer from the business logic in web applications. It provides a simple and efficient way to generate dynamic web pages by allowing developers to define templates with placeholders that are filled with data at runtime. However, a security vulnerability has been discovered in smarty3 that allows remote attackers to bypass secure mode restrictions and execute arbitrary PHP code.

Vulnerability Detail

The vulnerability in smarty3 allows an attacker to inject malicious PHP code into a template, which is then executed by the server. This can lead to various security issues, including remote code execution, data leakage, and unauthorized access to sensitive information. The vulnerability is triggered when the attacker includes the "{literal}<{/literal}script language=php>" code in a template. This code is not properly sanitized by smarty3, allowing it to be executed as PHP code on the server.

How To Fix

Minimum fixed version

3.1.10-2+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade smarty3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the security update as soon as possible to mitigate the risk of exploitation.

Conclusion

In conclusion, the vulnerability in smarty3 allows remote attackers to execute arbitrary PHP code on the server. To mitigate this risk, it is crucial to upgrade your smarty3 packages to the latest version, 3.1.10-2+deb7u1. Failure to apply the security update may result in remote code execution, data leakage, and unauthorized access to sensitive information. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for smarty3 →

Share this vulnerability

FAQ

Smarty3 is a template engine for PHP that allows developers to separate the presentation layer from the business logic in web applications.

This vulnerability allows remote attackers to execute arbitrary PHP code on the server, potentially leading to remote code execution, data leakage, and unauthorized access to sensitive information.

To fix this vulnerability, you should upgrade your smarty3 packages to the latest version, 3.1.10-2+deb7u1. Follow the instructions provided by your package manager to perform the update.

No, there is no known workaround for this vulnerability. It is crucial to apply the security update to protect your system.

You can find more information about this vulnerability in the Debian Security Advisory DLA-452-1.

Related vulnerabilities

Recent vulnerabilities recorded for smarty3.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

3.1.10-2+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade smarty3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback