Read the docs
TI-2009-04808 Aliases CVE-2009-5054GHSA-6m9f-8vwq-97pm

Smarty before 3.0.0 beta 4 does not consider the umask value when setting the permissions…

Priority LOW 36CWE-264Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
— Not recorded in CVSS 2.0
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
Partial · Partial · Partial
Fix status
Fixed

Attack profile from CVSS 2.0 · NVD. Fix status from CNA and GitHub. Impact type from CWE-264.

Summary

Smarty before 3.0.0 beta 4 does not consider the umask value when setting the permissions of files, which might allow attackers to bypass intended access restrictions via standard filesystem operations.

Why it matters now

EPSS 0.01589 75th percentileScored 2026-11-07
Fix Fixed smarty/smarty (Packagist): 3.0.0-beta4

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
—smarty/smarty (Packagist)before 3.0.0-beta43.0.0-beta4Patch availableGHSA-6m9f-8vwq-97pm
  • — Vendor— Affected all versions Fixed in — No fix listed CNA
  • smarty/smarty (Packagist) Vendor— Affected before 3.0.0-beta4 Fixed in 3.0.0-beta4 Patch available GHSA-6m9f-8vwq-97pm

CPE configurations NVD · 61

CPEVersionsRoleVendor
cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*up to 2.6.26Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.0:*:*:*:*:*:*:*1.0Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.0a:*:*:*:*:*:*:*1.0aVulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.0b:*:*:*:*:*:*:*1.0bVulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.1.0:*:*:*:*:*:*:*1.1.0Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.2.0:*:*:*:*:*:*:*1.2.0Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.2.1:*:*:*:*:*:*:*1.2.1Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.2.2:*:*:*:*:*:*:*1.2.2Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.3.0:*:*:*:*:*:*:*1.3.0Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.3.1:*:*:*:*:*:*:*1.3.1Vulnerablesmarty-php
  • cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:* Versions up to 2.6.26 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.0:*:*:*:*:*:*:* Versions 1.0 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.0a:*:*:*:*:*:*:* Versions 1.0a Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.0b:*:*:*:*:*:*:* Versions 1.0b Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.1.0:*:*:*:*:*:*:* Versions 1.1.0 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.2.0:*:*:*:*:*:*:* Versions 1.2.0 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.2.1:*:*:*:*:*:*:* Versions 1.2.1 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.2.2:*:*:*:*:*:*:* Versions 1.2.2 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.3.0:*:*:*:*:*:*:* Versions 1.3.0 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.3.1:*:*:*:*:*:*:* Versions 1.3.1 Vulnerable ·smarty-php
Show 51 more CPE
CPEVersionsRoleVendor
cpe:2.3:a:smarty:smarty:1.3.2:*:*:*:*:*:*:*1.3.2Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.4.0:*:*:*:*:*:*:*1.4.0Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.4.0:b1:*:*:*:*:*:*1.4.0 b1Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.4.0:b2:*:*:*:*:*:*1.4.0 b2Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.4.1:*:*:*:*:*:*:*1.4.1Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.4.2:*:*:*:*:*:*:*1.4.2Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.4.3:*:*:*:*:*:*:*1.4.3Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.4.4:*:*:*:*:*:*:*1.4.4Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.4.5:*:*:*:*:*:*:*1.4.5Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.4.6:*:*:*:*:*:*:*1.4.6Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.5.0:*:*:*:*:*:*:*1.5.0Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.5.1:*:*:*:*:*:*:*1.5.1Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:1.5.2:*:*:*:*:*:*:*1.5.2Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.0.0:*:*:*:*:*:*:*2.0.0Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.0.1:*:*:*:*:*:*:*2.0.1Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.1.0:*:*:*:*:*:*:*2.1.0Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.1.1:*:*:*:*:*:*:*2.1.1Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.2.0:*:*:*:*:*:*:*2.2.0Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.3.0:*:*:*:*:*:*:*2.3.0Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.3.1:*:*:*:*:*:*:*2.3.1Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.4.0:*:*:*:*:*:*:*2.4.0Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.4.1:*:*:*:*:*:*:*2.4.1Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.4.2:*:*:*:*:*:*:*2.4.2Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.5.0:*:*:*:*:*:*:*2.5.0Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.5.0:rc1:*:*:*:*:*:*2.5.0 rc1Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.5.0:rc2:*:*:*:*:*:*2.5.0 rc2Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.0:*:*:*:*:*:*:*2.6.0Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.0:rc1:*:*:*:*:*:*2.6.0 rc1Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.0:rc2:*:*:*:*:*:*2.6.0 rc2Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.0:rc3:*:*:*:*:*:*2.6.0 rc3Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.1:*:*:*:*:*:*:*2.6.1Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.2:*:*:*:*:*:*:*2.6.2Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.3:*:*:*:*:*:*:*2.6.3Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.4:*:*:*:*:*:*:*2.6.4Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.5:*:*:*:*:*:*:*2.6.5Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.6:*:*:*:*:*:*:*2.6.6Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.7:*:*:*:*:*:*:*2.6.7Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.9:*:*:*:*:*:*:*2.6.9Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.10:*:*:*:*:*:*:*2.6.10Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.11:*:*:*:*:*:*:*2.6.11Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.12:*:*:*:*:*:*:*2.6.12Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.13:*:*:*:*:*:*:*2.6.13Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.14:*:*:*:*:*:*:*2.6.14Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.15:*:*:*:*:*:*:*2.6.15Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.16:*:*:*:*:*:*:*2.6.16Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.17:*:*:*:*:*:*:*2.6.17Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.18:*:*:*:*:*:*:*2.6.18Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.20:*:*:*:*:*:*:*2.6.20Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.22:*:*:*:*:*:*:*2.6.22Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.24:*:*:*:*:*:*:*2.6.24Vulnerablesmarty-php
cpe:2.3:a:smarty:smarty:2.6.25:*:*:*:*:*:*:*2.6.25Vulnerablesmarty-php
  • cpe:2.3:a:smarty:smarty:1.3.2:*:*:*:*:*:*:* Versions 1.3.2 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.4.0:*:*:*:*:*:*:* Versions 1.4.0 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.4.0:b1:*:*:*:*:*:* Versions 1.4.0 b1 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.4.0:b2:*:*:*:*:*:* Versions 1.4.0 b2 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.4.1:*:*:*:*:*:*:* Versions 1.4.1 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.4.2:*:*:*:*:*:*:* Versions 1.4.2 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.4.3:*:*:*:*:*:*:* Versions 1.4.3 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.4.4:*:*:*:*:*:*:* Versions 1.4.4 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.4.5:*:*:*:*:*:*:* Versions 1.4.5 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.4.6:*:*:*:*:*:*:* Versions 1.4.6 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.5.0:*:*:*:*:*:*:* Versions 1.5.0 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.5.1:*:*:*:*:*:*:* Versions 1.5.1 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:1.5.2:*:*:*:*:*:*:* Versions 1.5.2 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.0.0:*:*:*:*:*:*:* Versions 2.0.0 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.0.1:*:*:*:*:*:*:* Versions 2.0.1 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.1.0:*:*:*:*:*:*:* Versions 2.1.0 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.1.1:*:*:*:*:*:*:* Versions 2.1.1 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.2.0:*:*:*:*:*:*:* Versions 2.2.0 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.3.0:*:*:*:*:*:*:* Versions 2.3.0 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.3.1:*:*:*:*:*:*:* Versions 2.3.1 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.4.0:*:*:*:*:*:*:* Versions 2.4.0 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.4.1:*:*:*:*:*:*:* Versions 2.4.1 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.4.2:*:*:*:*:*:*:* Versions 2.4.2 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.5.0:*:*:*:*:*:*:* Versions 2.5.0 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.5.0:rc1:*:*:*:*:*:* Versions 2.5.0 rc1 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.5.0:rc2:*:*:*:*:*:* Versions 2.5.0 rc2 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.0:*:*:*:*:*:*:* Versions 2.6.0 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.0:rc1:*:*:*:*:*:* Versions 2.6.0 rc1 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.0:rc2:*:*:*:*:*:* Versions 2.6.0 rc2 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.0:rc3:*:*:*:*:*:* Versions 2.6.0 rc3 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.1:*:*:*:*:*:*:* Versions 2.6.1 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.2:*:*:*:*:*:*:* Versions 2.6.2 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.3:*:*:*:*:*:*:* Versions 2.6.3 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.4:*:*:*:*:*:*:* Versions 2.6.4 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.5:*:*:*:*:*:*:* Versions 2.6.5 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.6:*:*:*:*:*:*:* Versions 2.6.6 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.7:*:*:*:*:*:*:* Versions 2.6.7 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.9:*:*:*:*:*:*:* Versions 2.6.9 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.10:*:*:*:*:*:*:* Versions 2.6.10 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.11:*:*:*:*:*:*:* Versions 2.6.11 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.12:*:*:*:*:*:*:* Versions 2.6.12 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.13:*:*:*:*:*:*:* Versions 2.6.13 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.14:*:*:*:*:*:*:* Versions 2.6.14 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.15:*:*:*:*:*:*:* Versions 2.6.15 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.16:*:*:*:*:*:*:* Versions 2.6.16 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.17:*:*:*:*:*:*:* Versions 2.6.17 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.18:*:*:*:*:*:*:* Versions 2.6.18 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.20:*:*:*:*:*:*:* Versions 2.6.20 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.22:*:*:*:*:*:*:* Versions 2.6.22 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.24:*:*:*:*:*:*:* Versions 2.6.24 Vulnerable ·smarty-php
  • cpe:2.3:a:smarty:smarty:2.6.25:*:*:*:*:*:*:* Versions 2.6.25 Vulnerable ·smarty-php

Remediation

  • Fix · GHSA-6m9f-8vwq-97pm smarty/smarty (Packagist) Fixed in 3.0.0-beta4 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2009-5054
  2. 2026-10-03 Alias added: GHSA-6m9f-8vwq-97pm

References

  • TI-2021-08070 Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring. CVSS 3.1CRITICAL 9.8
  • TI-2009-01585 The smarty_function_math function in libs/plugins/function.math.php in Smarty 2.6.22… CVSS 2.0HIGH 10.0
  • TI-2006-06846 PHP remote file inclusion vulnerability in libs/Smarty.class.php in Smarty 2.6.9 allows… CVSS 3.1CRITICAL 9.8
  • TI-2022-11764 PHP Code Injection by malicious block or filename in Smarty CVSS 3.1HIGH 8.8
  • TI-2017-14689 Smarty 3 before 3.1.32 is vulnerable to a PHP code injection when calling fetch() or… CVSS 3.0CRITICAL 9.8
  • TI-2010-04450 Smarty before 3.0.0 beta 7 does not properly handle the <?php and ?> tags, which has… CVSS 2.0HIGH 10.0
See all 30 →

Sources