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

CVE-2009-5054: Smarty Does Not Consider Umask Values When Setting Permissions

May 2, 2022 (updated February 8, 2024)

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.

References

  • github.com/advisories/GHSA-6m9f-8vwq-97pm
  • nvd.nist.gov/vuln/detail/CVE-2009-5054
  • web.archive.org/web/20101116174040/http://smarty-php.googlecode.com/svn/trunk/distribution/change_log.txt

Code Behaviors & Features

Detect and mitigate CVE-2009-5054 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.0-beta4

Fixed versions

  • 3.0.0-beta4

Solution

Upgrade to version 3.0.0-beta4 or above. *Note*: 3.0.0-beta4 may be an unstable version. Use caution.

Impact 7.5 HIGH

AV:N/AC:L/Au:N/C:P/I:P/A:P

Learn more about CVSS

Weakness

  • CWE-264

Source file

packagist/smarty/smarty/CVE-2009-5054.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:31 +0000.