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

CVE-2021-26120: Code Injection

February 22, 2021 (updated October 14, 2022)

Smarty allows code injection via an unexpected function name after a {function name= substring.

References

  • nvd.nist.gov/vuln/detail/CVE-2021-26120

Code Behaviors & Features

Detect and mitigate CVE-2021-26120 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.1.39

Fixed versions

  • 3.1.39

Solution

Upgrade to version 3.1.39 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-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/smarty/smarty/CVE-2021-26120.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:53 +0000.