Code Injection Vulnerability in smarty3

smarty3 Updated 02 Oct 2025

Summary

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

DLA-1249-1: smarty3 - security update. Affects smarty3 versions < 3.1.10-2+deb7u2. Fixed in 3.1.10-2+deb7u2. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 allows an attacker to execute arbitrary code.

Vulnerability Detail

The vulnerability in smarty3 is caused by a code injection issue. By using a specially-crafted filename in comments, an attacker can inject malicious code into the application. This can lead to arbitrary code execution, potentially compromising the entire system. The vulnerability has been assigned the CVE identifier CVE-2017-1000480.

How To Fix

Minimum fixed version

3.1.10-2+deb7u2

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 crucial to apply the patch or upgrade to the fixed version as soon as possible to protect your system from potential attacks.

Conclusion

The code injection vulnerability in smarty3 can have severe consequences if left unpatched. It is crucial to upgrade to the fixed version or apply the provided patch to protect your system. For further assistance or information on vulnerability remediation, please contact the Devnack support team at DevNack.com.

See every vulnerability recorded for smarty3 →

Share this vulnerability

FAQ

Smarty3 is a PHP template engine used for separating application logic from presentation. It provides a convenient way to generate dynamic web pages.

A code injection vulnerability allows an attacker to insert and execute arbitrary code within an application. In the case of smarty3, this can be achieved by using a specially-crafted filename in comments.

If exploited, this vulnerability can lead to arbitrary code execution, allowing an attacker to take control of the affected system. This can result in unauthorized access, data theft, or further compromise of the entire infrastructure.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this one.

For more information about this vulnerability, you can refer to the Debian Security Advisory DLA-1249-1 (https://storage.googleapis.com/debian-osv/dla-osv/DLA-1249-1.json) or contact the Devnack support team at info@devnack.com.

Related vulnerabilities

Recent vulnerabilities recorded for smarty3.

How To Fix

Minimum fixed version

3.1.10-2+deb7u2

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