UBUNTU-CVE-2026-62996 (CVE-2026-62996)
Vulnerability from osv_ubuntu – Published: 2026-08-07 16:17 – Updated: 2026-08-13 00:10 – Source websiteSmarty 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.
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "smarty3",
"binary_version": "3.1.21-1ubuntu1+esm2"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "smarty3",
"purl": "pkg:deb/ubuntu/smarty3@3.1.21-1ubuntu1+esm2?arch=source\u0026distro=esm-apps/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"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.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "smarty3",
"purl": "pkg:deb/ubuntu/smarty3@3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1?arch=source\u0026distro=esm-apps/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"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.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1+esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:20.04:LTS",
"name": "smarty3",
"purl": "pkg:deb/ubuntu/smarty3@3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1+esm1?arch=source\u0026distro=esm-apps/focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"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.39-2ubuntu1.22.04.2"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "smarty3",
"purl": "pkg:deb/ubuntu/smarty3@3.1.39-2ubuntu1.22.04.2?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"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.48-1ubuntu0.24.04.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "smarty3",
"purl": "pkg:deb/ubuntu/smarty3@3.1.48-1ubuntu0.24.04.1?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.1.48-1",
"3.1.48-1ubuntu0.24.04.1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "smarty4",
"binary_version": "4.3.1-1ubuntu0.24.04.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "smarty4",
"purl": "pkg:deb/ubuntu/smarty4@4.3.1-1ubuntu0.24.04.1?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.3.1-1",
"4.3.1-1ubuntu0.24.04.1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "smarty3",
"binary_version": "3.1.48-2build1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "smarty3",
"purl": "pkg:deb/ubuntu/smarty3@3.1.48-2build1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.1.48-2",
"3.1.48-2build1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "smarty4",
"binary_version": "4.5.5-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "smarty4",
"purl": "pkg:deb/ubuntu/smarty4@4.5.5-1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.5.5-1"
]
}
],
"aliases": [],
"details": "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\u0027s 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\u0027s 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.",
"id": "UBUNTU-CVE-2026-62996",
"modified": "2026-08-13T00:10:36Z",
"published": "2026-08-07T16:17:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2026-62996"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-62996"
},
{
"type": "REPORT",
"url": "https://github.com/smarty-php/smarty/commit/3c9f77a2e06ce319ae0092496af32cc8f3adc52e"
},
{
"type": "REPORT",
"url": "https://github.com/smarty-php/smarty/pull/1195"
},
{
"type": "REPORT",
"url": "https://github.com/smarty-php/smarty/releases/tag/v5.8.4"
},
{
"type": "REPORT",
"url": "https://github.com/smarty-php/smarty/security/advisories/GHSA-rjhh-76wf-8xmw"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"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": "CVSS_V4"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-62996"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.