CVE-2026-62996
CVE-2026-62996 · Smarty Security stream restriction bypass through stream: resource
Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. From 5.0.0 until 5.8.4, Smarty's stream: resource-name handling does not adequately restrict which PHP stream wrappers and filter chains can be referenced from a template, allowing a php://filter-wrapped resource name to be used to read the contents of arbitrary local files accessible to the PHP process. An attacker able to author or influence a template's resource reference could exploit this to disclose sensitive file contents outside the intended template/config scope. This issue is fixed in version 5.8.4.
CVSS 6.9 · Moyenne · EPSS 0,5% · Correctif disponible
- Publication
- Mise à jour
Produits et versions concernés
smarty
- Versions du logiciel
- >= 5.0.0, < 5.8.4: Concernée
Aucun correctif publié
smarty/smarty Packagist
- Versions du logiciel
- v5.0.0
- v5.0.1
- v5.0.2
- v5.1.0
- v5.2.0
- v5.3.0
- v5.3.1
- v5.4.0
- v5.4.1
- v5.4.2
- v5.4.3
- v5.4.4
- v5.4.5
- v5.5.0
- v5.5.1
- v5.5.2
- v5.6.0
- v5.7.0
- v5.8.0
- v5.8.1
- v5.8.2
- v5.8.3
- Plages de versions concernées
- ECOSYSTEM: ≥ 5.0.0, < 5.8.4
Mettez à jour vers 5.8.4
smarty3 Ubuntu:Pro:16.04:LTS
- Versions du logiciel
- 3.1.21-1
- 3.1.21-1ubuntu1
- 3.1.21-1ubuntu1+esm1
- 3.1.21-1ubuntu1+esm2
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
smarty3 Ubuntu:Pro:18.04:LTS
- Versions du logiciel
- 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
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
smarty3 Ubuntu:Pro:20.04:LTS
- Versions du logiciel
- 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
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
smarty3 Ubuntu:22.04:LTS
- Versions du logiciel
- 3.1.39-2
- 3.1.39-2ubuntu1
- 3.1.39-2ubuntu1.22.04.1
- 3.1.39-2ubuntu1.22.04.2
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
smarty3 Ubuntu:24.04:LTS
- Versions du logiciel
- 3.1.48-1
- 3.1.48-1ubuntu0.24.04.1
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
smarty4 Ubuntu:24.04:LTS
- Versions du logiciel
- 4.3.1-1
- 4.3.1-1ubuntu0.24.04.1
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
smarty3 Ubuntu:26.10
- Versions du logiciel
- 3.1.48-2build1
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
smarty4 Ubuntu:26.10
- Versions du logiciel
- 4.5.5-1
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
smarty3 Ubuntu:26.04:LTS
- Versions du logiciel
- 3.1.48-2
- 3.1.48-2build1
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
smarty4 Ubuntu:26.04:LTS
- Versions du logiciel
- 4.5.5-1
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
Sources originales
- https://github.com/smarty-php/smarty/security/advisories/GHSA-rjhh-76wf-8xmw
- https://github.com/smarty-php/smarty/pull/1195
- https://github.com/smarty-php/smarty/commit/3c9f77a2e06ce319ae0092496af32cc8f3adc52e
- https://github.com/smarty-php/smarty/releases/tag/v5.8.4
- https://nvd.nist.gov/vuln/detail/CVE-2026-62996