CVE-2026-70374
Full vulnerability record from the local CVENow database.
Description
HashBrown CMS through 1.4.6 contains an OS Command Injection vulnerability (CWE-78) in the media upload thumbnail generation routine. Media.generateThumbnail in src/Server/Entity/Resource/Media.js builds a temporary file path as 'thumbnail' + Path.extname(filename) and passes it, unescaped, into a shell command executed via AppService.exec ('convert ' + tempFile + ...).
Severity
HIGH
CVSS score
8.8
(v3.1)
Vulnerability status
Deferred
Source identifier
309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
Published
2026-08-05 07:16:39.567000
Last modified
2026-10-24 16:10:00.153000
View original CVE JSON
{
"id": "CVE-2026-70374",
"sourceIdentifier": "309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c",
"published": "2026-08-05T07:16:39.567",
"lastModified": "2026-10-24T16:10:00.153",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "HashBrown CMS through 1.4.6 contains an OS Command Injection vulnerability (CWE-78) in the media upload thumbnail generation routine. Media.generateThumbnail in src/Server/Entity/Resource/Media.js builds a temporary file path as 'thumbnail' + Path.extname(filename) and passes it, unescaped, into a shell command executed via AppService.exec ('convert ' + tempFile + ...)."
},
{
"lang": "es",
"value": "HashBrown CMS hasta la versión 1.4.6 contiene una vulnerabilidad de inyección de comandos del sistema operativo (CWE-78) en la rutina de generación de miniaturas de carga de medios. Media.generateThumbnail() en src/Server/Entity/Resource/Media.js construye una ruta de archivo temporal como ’thumbnail’ + Path.extname(filename) y la pasa, sin escapar, a un comando de shell ejecutado a través de AppService.exec() (’convert ’ + tempFile + ...). El filtro de tipo MIME en getMIMEType() (src/Common/utilities.js) trunca la extensión extraída en el primer carácter ’?’, mientras que Path.extname() no lo hace, permitiendo que un nombre de archivo como ’x.jpg?$(command)’ pase la verificación de tipo de imagen mientras sigue inyectando una sustitución de comando de shell en la llamada a exec(). Un usuario autenticado que posee el ámbito de recurso de medios puede lograr la ejecución arbitraria de comandos del sistema operativo en el contexto del proceso de Node.js a través de POST /api/{project}/{environment}/media/new."
}
],
"affected": [
{
"source": "309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c",
"affectedData": [
{
"vendor": "HashBrownCMS",
"product": "hashbrown-cms",
"defaultStatus": "unknown",
"programFiles": [
"src/Server/Entity/Resource/Media.js",
"src/Common/utilities.js"
],
"repo": "https://github.com/HashBrownCMS/hashbrown-cms",
"versions": [
{
"version": "0",
"lessThanOrEqual": "1.4.6",
"versionType": "semver",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 2.8,
"impactScore": 5.9
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-08-05T15:05:00.591389Z",
"id": "CVE-2026-70374",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-78"
}
]
}
],
"references": [
{
"url": "https://cve.turansec.uz/advisories/TRN-11FC0D88",
"source": "309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c"
},
{
"url": "https://github.com/HashBrownCMS/hashbrown-cms",
"source": "309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c"
}
]
}