Every CVE Search/ Get API key

CVE-2009-5054

Smarty Does Not Consider Umask Values When Setting Permissions

7.5 HighFix available

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.

Exploit likelihood

1.59%Up 0.7 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2009-5054
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-264
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2009-5054
Updated
2026-11-02
EUVDEUVD-2022-2823 No score

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.

Record
EUVD-2022-2823
Updated
2026-11-03
GitHub AdvisoriesGHSA-6m9f-8vwq-97pm No score

Smarty Does Not Consider Umask Values When Setting Permissions

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.

Record
GHSA-6m9f-8vwq-97pm
Weakness
CWE-281
Updated
2026-11-02
OSV No score

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.

Record
CVE-2009-5054
Updated
2026-11-02
OSVDEBIAN-CVE-2009-5054 No score

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.

Record
DEBIAN-CVE-2009-5054
Updated
2026-11-02
OSVGHSA-6m9f-8vwq-97pm No score

Smarty Does Not Consider Umask Values When Setting Permissions

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.

Record
GHSA-6m9f-8vwq-97pm
Weakness
CWE-281
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
smarty/smarty
Packagist
before 3.0.0-beta4
3.0.0-beta4
smarty3
Debian:12
before 3.0~rc1-1
3.0~rc1-1
smarty3
Debian:13
before 3.0~rc1-1
3.0~rc1-1
smarty3
Debian:14
before 3.0~rc1-1
3.0~rc1-1
smarty/smarty
Packagist
before 3.0.0-beta4, plus listed versions
v2.6.24v2.6.25v2.6.26v2.6.27v2.6.28
Show 4 moreShow less
v2.6.29v2.6.30v2.6.31v2.6.33
3.0.0-beta4

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2009-5054 is a high vulnerability (CVSS 7.5) in Smarty, published February 3, 2011. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.59%, the 75th percentile. Fixed in smarty/smarty 3.0.0-beta4.

References

MoveEnter Open