CVE-2025-64714
Full vulnerability record from the local CVENow database.
Description
PrivateBin is an online pastebin where the server has zero knowledge of pasted data. Starting in version 1.7.7 and prior to version 2.0.3, an unauthenticated Local File Inclusion exists in the template-switching feature. If `templateselection` is enabled in the configuration, the server trusts the `template` cookie and includes the referenced PHP file. An attacker can read sensitive data or, if they manage to drop a PHP file elsewhere, gain remote code execution. The constructed path of the template file is checked for existence, then included. For PrivateBin project files this does not leak any secrets due to data files being created with PHP code that prevents execution, but if a configuration file without that line got created or the visitor figures out the relative path to a PHP script that directly performs an action without appropriate privilege checking, those might execute or leak information. The issue has been patched in version 2.0.3. As a workaround, set `templateselection = false` (which is the default) in `cfg/conf.php` or remove it entirely
View original CVE JSON
{
"id": "CVE-2025-64714",
"sourceIdentifier": "[email protected]",
"published": "2025-11-13T16:15:56.790",
"lastModified": "2026-10-19T13:10:00.110",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "PrivateBin is an online pastebin where the server has zero knowledge of pasted data. Starting in version 1.7.7 and prior to version 2.0.3, an unauthenticated Local File Inclusion exists in the template-switching feature. If `templateselection` is enabled in the configuration, the server trusts the `template` cookie and includes the referenced PHP file. An attacker can read sensitive data or, if they manage to drop a PHP file elsewhere, gain remote code execution. The constructed path of the template file is checked for existence, then included. For PrivateBin project files this does not leak any secrets due to data files being created with PHP code that prevents execution, but if a configuration file without that line got created or the visitor figures out the relative path to a PHP script that directly performs an action without appropriate privilege checking, those might execute or leak information. The issue has been patched in version 2.0.3. As a workaround, set `templateselection = false` (which is the default) in `cfg/conf.php` or remove it entirely"
},
{
"lang": "es",
"value": "PrivateBin es un pastebin en línea donde el servidor no tiene conocimiento alguno de los datos pegados. A partir de la versión 1.7.7 y antes de la versión 2.0.3, existe una inclusión local de ficheros no autenticada en la característica de cambio de plantilla. Si 'templateselection' está habilitada en la configuración, el servidor confía en la 'cookie' 'template' e incluye el fichero PHP referenciado. Un atacante puede leer datos sensibles o, si logra soltar un fichero PHP en otro lugar, obtener ejecución remota de código. La ruta construida del fichero de plantilla se verifica su existencia, luego se incluye. Para los ficheros del proyecto PrivateBin, esto no filtra ningún secreto debido a que los ficheros de datos se crean con código PHP que impide la ejecución, pero si se creara un fichero de configuración sin esa línea o el visitante descubre la ruta relativa a un script PHP que realiza directamente una acción sin una comprobación de privilegios adecuada, esos podrían ejecutarse o filtrar información. El problema se ha corregido en la versión 2.0.3. Como solución alternativa, establezca 'templateselection = false' (que es el valor predeterminado) en 'cfg/conf.php' o elimínelo por completo."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "PrivateBin",
"product": "PrivateBin",
"versions": [
{
"version": ">= 1.7.7, < 2.0.3",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N",
"baseScore": 5.8,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "CHANGED",
"confidentialityImpact": "LOW",
"integrityImpact": "NONE",
"availabilityImpact": "NONE"
},
"exploitabilityScore": 3.9,
"impactScore": 1.4
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2025-11-13T15:33:16.903299Z",
"id": "CVE-2025-64714",
"options": [
{
"exploitation": "none"
},
{
"automatable": "yes"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-23"
},
{
"lang": "en",
"value": "CWE-73"
},
{
"lang": "en",
"value": "CWE-98"
}
]
}
],
"references": [
{
"url": "https://github.com/PrivateBin/PrivateBin/commit/4434dbf73ac53217fda0f90d8cf9b6110f8acc4f",
"source": "[email protected]"
},
{
"url": "https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-g2j9-g8r5-rg82",
"source": "[email protected]"
}
]
}