
CVE catalog
CVE-2026-62992
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 res
- Severity
- Medium · CVSS 6.9
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.53% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | smarty3 | sid | 3.1.48-2 | vulnerable |
| Debian | smarty3 | forky | 3.1.48-2 | vulnerable |
| Debian | smarty3 | trixie | 3.1.48-2 | vulnerable |
| Debian | smarty3 | bookworm | 3.1.47-2+deb12u1 | vulnerable |
| Debian | smarty3 | bookworm-security | 3.1.47-2+deb12u1 | vulnerable |
| Debian | smarty4 | sid | 4.5.5-1 | vulnerable |
| Debian | smarty4 | forky | 4.5.5-1 | vulnerable |
| Debian | smarty4 | trixie | 4.5.5-1 | vulnerable |
| Debian | smarty4 | bookworm | 4.3.0-1+deb12u2 | vulnerable |
| Debian | smarty4 | bookworm-security | 4.3.0-1+deb12u2 | vulnerable |
| Composer | smarty/smarty | Not reported | 5.8.2 | fixed |
| Composer | smarty/smarty | Not reported | 4.5.7 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | smarty3 | source | sid | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | smarty3 | source | forky | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | smarty3 | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | smarty3 | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | smarty4 | source | sid | (unfixed) | not yet assigned | Not reported | [1145020] |
| Debian | smarty4 | source | forky | (unfixed) | not yet assigned | Not reported | [1145020] |
| Debian | smarty4 | source | trixie | (unfixed) | not yet assigned | Not reported | [1145020] |
| Debian | smarty4 | source | bookworm | (unfixed) | not yet assigned | Not reported | [1145020] |
| Composer | smarty/smarty | composer | Not reported | 5.8.2 | Not reported | Not reported | Not reported |
| Composer | smarty/smarty | composer | Not reported | 4.5.7 | Not reported | Not reported | Not reported |
Notes
[trixie] smarty3: Minor issue [bookworm] smarty3: Minor issue [trixie] smarty4: Minor issue [bookworm] smarty4: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [smarty3]Affected
Details (4)
3.1.47-2+deb12u1· all · bookwormAffected
nvd · smarty3 · debian · bookworm; nvd · smarty3 · debian · 12
3.1.47-2+deb12u1· all · bookwormAffected
nvd · smarty3 · debian · bookworm; nvd · smarty3 · debian · 12
3.1.47-2+deb12u1· all · bookworm-securityAffected
nvd · smarty3 · debian · bookworm; nvd · smarty3 · debian · 12
3.1.47-2+deb12u1· all · bookworm-securityAffected
nvd · smarty3 · debian · bookworm; nvd · smarty3 · debian · 12
- [smarty4]Affected
Details (4)
4.3.0-1+deb12u2· all · bookwormAffected
nvd · smarty4 · debian · bookworm; nvd · smarty4 · debian · 12
4.3.0-1+deb12u2· all · bookwormAffected
nvd · smarty4 · debian · bookworm; nvd · smarty4 · debian · 12
4.3.0-1+deb12u2· all · bookworm-securityAffected
nvd · smarty4 · debian · bookworm; nvd · smarty4 · debian · 12
4.3.0-1+deb12u2· all · bookworm-securityAffected
nvd · smarty4 · debian · bookworm; nvd · smarty4 · debian · 12
[Debian 13 (Trixie)]
Observed:
References
- [https://github.com/advisories/GHSA-f6wf-28g6-769x]
- [https://github.com/smarty-php/smarty/commit/99c048ce7a590c519b79fbd38ad0143a08183a1f]
- [https://github.com/smarty-php/smarty/commit/a1ccdb0518021a559b4066c37b76a42c86bbce90]
- [https://github.com/smarty-php/smarty/releases/tag/v4.5.7]
- [https://github.com/smarty-php/smarty/releases/tag/v5.8.2]
- [https://github.com/smarty-php/smarty/security/advisories/GHSA-f6wf-28g6-769x]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-62992]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-62992]
- [https://security-tracker.debian.org/tracker/CVE-2026-62992]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-62992.json]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]