CVE-2026-62996
Full vulnerability record from the local CVENow database.
Description
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.
Severity
MEDIUM
CVSS score
6.9
(v4.0)
Vulnerability status
Deferred
Source identifier
Published
2026-08-07 16:17:26
Last modified
2026-10-24 16:10:00.153000
View original CVE JSON
{
"id": "CVE-2026-62996",
"sourceIdentifier": "[email protected]",
"published": "2026-08-07T16:17:26.000",
"lastModified": "2026-10-24T16:10:00.153",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "Smarty es un motor de plantillas para PHP, facilitando la separación de la presentación (HTML/CSS) de la lógica de la aplicación. Desde la versión 5.0.0 hasta la 5.8.4, el manejo de ’stream: resource-name’ de Smarty no restringe adecuadamente qué envoltorios de flujo de PHP y cadenas de filtros pueden ser referenciados desde una plantilla, permitiendo que un nombre de recurso envuelto en ’php://filter’ sea utilizado para leer el contenido de archivos locales arbitrarios accesibles al proceso PHP. Un atacante capaz de crear o influenciar la referencia de un recurso de plantilla podría explotar esto para divulgar contenido de archivos sensibles fuera del alcance previsto de la plantilla/configuración. Este problema está corregido en la versión 5.8.4."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "smarty-php",
"product": "smarty",
"versions": [
{
"version": ">= 5.0.0, < 5.8.4",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV40": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "4.0",
"vectorString": "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",
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"privilegesRequired": "HIGH",
"userInteraction": "NONE",
"vulnConfidentialityImpact": "HIGH",
"vulnIntegrityImpact": "NONE",
"vulnAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"subAvailabilityImpact": "NONE",
"exploitMaturity": "NOT_DEFINED",
"confidentialityRequirement": "NOT_DEFINED",
"integrityRequirement": "NOT_DEFINED",
"availabilityRequirement": "NOT_DEFINED",
"modifiedAttackVector": "NOT_DEFINED",
"modifiedAttackComplexity": "NOT_DEFINED",
"modifiedAttackRequirements": "NOT_DEFINED",
"modifiedPrivilegesRequired": "NOT_DEFINED",
"modifiedUserInteraction": "NOT_DEFINED",
"modifiedVulnConfidentialityImpact": "NOT_DEFINED",
"modifiedVulnIntegrityImpact": "NOT_DEFINED",
"modifiedVulnAvailabilityImpact": "NOT_DEFINED",
"modifiedSubConfidentialityImpact": "NOT_DEFINED",
"modifiedSubIntegrityImpact": "NOT_DEFINED",
"modifiedSubAvailabilityImpact": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"valueDensity": "NOT_DEFINED",
"vulnerabilityResponseEffort": "NOT_DEFINED",
"providerUrgency": "NOT_DEFINED"
}
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-08-07T17:06:32.844811Z",
"id": "CVE-2026-62996",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-22"
}
]
}
],
"references": [
{
"url": "https://github.com/smarty-php/smarty/commit/3c9f77a2e06ce319ae0092496af32cc8f3adc52e",
"source": "[email protected]"
},
{
"url": "https://github.com/smarty-php/smarty/pull/1195",
"source": "[email protected]"
},
{
"url": "https://github.com/smarty-php/smarty/releases/tag/v5.8.4",
"source": "[email protected]"
},
{
"url": "https://github.com/smarty-php/smarty/security/advisories/GHSA-rjhh-76wf-8xmw",
"source": "[email protected]"
},
{
"url": "https://github.com/smarty-php/smarty/security/advisories/GHSA-rjhh-76wf-8xmw",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
}
]
}