{"id":"UBUNTU-CVE-2026-62992","details":"Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to 5.8.2 (and 4.5.7 on the 4.x line), Security::_checkDir() does not fully resolve symbolic links before validating that a requested path lies within a configured secure directory. An attacker able to place or reference a symlink within a directory Smarty treats as trusted (e.g., a template or config directory) could use it to point outside the intended secure directory, bypassing the containment check and reading arbitrary files accessible to the PHP process. This issue is fixed in versions 5.8.2 and 4.5.7.","modified":"2026-08-13T00:10:36Z","published":"2026-08-07T16:17:00Z","upstream":["CVE-2026-62992"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-62992"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-62992"},{"type":"REPORT","url":"https://github.com/smarty-php/smarty/commit/99c048ce7a590c519b79fbd38ad0143a08183a1f"},{"type":"REPORT","url":"https://github.com/smarty-php/smarty/commit/a1ccdb0518021a559b4066c37b76a42c86bbce90"},{"type":"REPORT","url":"https://github.com/smarty-php/smarty/releases/tag/v4.5.7"},{"type":"REPORT","url":"https://github.com/smarty-php/smarty/releases/tag/v5.8.2"},{"type":"REPORT","url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-f6wf-28g6-769x"}],"affected":[{"package":{"name":"smarty3","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/smarty3?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.21-1","3.1.21-1ubuntu1","3.1.21-1ubuntu1+esm1","3.1.21-1ubuntu1+esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"smarty3","binary_version":"3.1.21-1ubuntu1+esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-62992.json"}},{"package":{"name":"smarty3","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/smarty3?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.31+20161214.1.c7d42e4+selfpack1-2","3.1.31+20161214.1.c7d42e4+selfpack1-3","3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1","3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"smarty3","binary_version":"3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-62992.json"}},{"package":{"name":"smarty3","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/smarty3?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.33+20180830.1.3a78a21f+selfpack1-1","3.1.34+20190228.1.c9f0de05+selfpack1-1","3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1~esm1","3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1","3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"smarty3","binary_version":"3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-62992.json"}},{"package":{"name":"smarty3","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/smarty3?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.39-2","3.1.39-2ubuntu1","3.1.39-2ubuntu1.22.04.1","3.1.39-2ubuntu1.22.04.2"],"ecosystem_specific":{"binaries":[{"binary_name":"smarty3","binary_version":"3.1.39-2ubuntu1.22.04.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-62992.json"}},{"package":{"name":"smarty3","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/smarty3?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.48-1","3.1.48-1ubuntu0.24.04.1"],"ecosystem_specific":{"binaries":[{"binary_name":"smarty3","binary_version":"3.1.48-1ubuntu0.24.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-62992.json"}},{"package":{"name":"smarty4","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/smarty4?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.1-1","4.3.1-1ubuntu0.24.04.1"],"ecosystem_specific":{"binaries":[{"binary_name":"smarty4","binary_version":"4.3.1-1ubuntu0.24.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-62992.json"}},{"package":{"name":"smarty3","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/smarty3?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.48-2","3.1.48-2build1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.1.48-2build1","binary_name":"smarty3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-62992.json"}},{"package":{"name":"smarty4","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/smarty4?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.5.5-1"],"ecosystem_specific":{"binaries":[{"binary_name":"smarty4","binary_version":"4.5.5-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-62992.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}