Code Injection Vulnerability in smarty3

smarty3 Updated 02 Oct 2025

Summary

01/02/2018
N/A
Yes i
Unrated
Not published

DLA-1249-2: smarty3 - regression update. Affects smarty3 versions < 3.1.10-2+deb7u3. Fixed in 3.1.10-2+deb7u3. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Smarty3 is a popular PHP template engine used for separating application logic from presentation. It provides a simple and efficient way to generate dynamic web pages. However, a code injection vulnerability has been discovered in smarty3, which could allow an attacker to execute arbitrary code.

Vulnerability Detail

The vulnerability in smarty3 is a code injection issue that arises when processing specially-crafted filenames in comments. An attacker can exploit this vulnerability by providing a malicious filename, which, when processed by smarty3, can lead to the execution of arbitrary code. This can have severe consequences, including unauthorized access, data theft, and remote code execution.

How To Fix

Minimum fixed version

3.1.10-2+deb7u3

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 patch provided in the updated smarty3 package to ensure the security of your application.

Conclusion

The code injection vulnerability in smarty3 can have severe consequences, including unauthorized access and remote code execution. It is crucial to upgrade your smarty3 package to the patched version to mitigate this vulnerability. For further support and assistance in vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for smarty3 →

Share this vulnerability

FAQ

Smarty3 is a PHP template engine that separates application logic from presentation, making it easier to develop dynamic web pages.

The code injection vulnerability in smarty3 arises when processing specially-crafted filenames in comments, allowing an attacker to execute arbitrary code.

This vulnerability can lead to unauthorized access, data theft, and remote code execution, potentially compromising the security and integrity of the affected application.

To fix this vulnerability, you should upgrade your smarty3 package to version 3.1.10-2+deb7u3 or later. This version includes a patch that addresses the code injection issue.

No, there is no known workaround for this vulnerability. It is crucial to apply the provided patch to ensure the security of your application.

Related vulnerabilities

Recent vulnerabilities recorded for smarty3.

How To Fix

Minimum fixed version

3.1.10-2+deb7u3

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