Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. smarty/smarty
  4. ›
  5. CVE-2011-1028

CVE-2011-1028: Improper Input Validation

April 22, 2022 (updated January 12, 2024)

The $smarty.template variable in Smarty3 allows attackers to possibly execute arbitrary PHP code via the sysplugins/smarty_internal_compile_private_special_variable.php file.

References

  • github.com/advisories/GHSA-6frx-2r5w-c524
  • github.com/smarty-php/smarty/commit/0154f17de2b2dd16ff9c016923015ac19af9c0cb
  • nvd.nist.gov/vuln/detail/CVE-2011-1028
  • seclists.org/oss-sec/2011/q1/313
  • security-tracker.debian.org/tracker/CVE-2011-1028
  • web.archive.org/web/20110609032516/http://smarty-php.googlecode.com/svn/trunk/distribution/change_log.txt
  • www.smarty.net/forums/viewtopic.php?t=18815

Code Behaviors & Features

Detect and mitigate CVE-2011-1028 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.0.7

Fixed versions

  • 3.0.7

Solution

Upgrade to version 3.0.7 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

packagist/smarty/smarty/CVE-2011-1028.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:59 +0000.