CVE-2026-70374: CWE-78 OS Command Injection in HashBrownCMS hashbrown-cms
HashBrown CMS versions up to and including 1.4.6 contain an OS Command Injection vulnerability in the media upload thumbnail generation routine. The vulnerability arises because the filename extension is not properly sanitized before being passed to a shell command, allowing an authenticated user with media resource scope to execute arbitrary OS commands via a specially crafted filename. This occurs in the Media.generateThumbnail() function when it calls a shell command with an unescaped temporary file path. No official patch or remediation guidance is currently available.
AI Analysis
Technical Summary
HashBrown CMS through version 1.4.6 has an OS Command Injection vulnerability (CWE-78) in the media upload thumbnail generation routine. The function Media.generateThumbnail() constructs a temporary file path using the filename extension and passes it unescaped into a shell command executed via AppService.exec(). The MIME-type filter truncates extensions at the first '?' character, but Path.extname() does not, enabling an attacker to craft filenames like 'x.jpg?$(command)' that pass MIME checks but inject shell commands. An authenticated user with media resource scope can exploit this via the POST /api/{project}/{environment}/media/new endpoint to execute arbitrary OS commands in the Node.js process context.
Potential Impact
An authenticated user with media resource scope can achieve arbitrary OS command execution on the server hosting HashBrown CMS. This could lead to full system compromise depending on the privileges of the Node.js process. The vulnerability allows execution of arbitrary commands through crafted filenames during thumbnail generation, potentially enabling data theft, service disruption, or further attacks.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict media resource scope access to trusted users only and consider disabling or restricting the media upload functionality if possible. Monitor for updates from the HashBrown CMS vendor regarding an official fix.
CVE-2026-70374: CWE-78 OS Command Injection in HashBrownCMS hashbrown-cms
Description
HashBrown CMS versions up to and including 1.4.6 contain an OS Command Injection vulnerability in the media upload thumbnail generation routine. The vulnerability arises because the filename extension is not properly sanitized before being passed to a shell command, allowing an authenticated user with media resource scope to execute arbitrary OS commands via a specially crafted filename. This occurs in the Media.generateThumbnail() function when it calls a shell command with an unescaped temporary file path. No official patch or remediation guidance is currently available.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
HashBrown CMS through version 1.4.6 has an OS Command Injection vulnerability (CWE-78) in the media upload thumbnail generation routine. The function Media.generateThumbnail() constructs a temporary file path using the filename extension and passes it unescaped into a shell command executed via AppService.exec(). The MIME-type filter truncates extensions at the first '?' character, but Path.extname() does not, enabling an attacker to craft filenames like 'x.jpg?$(command)' that pass MIME checks but inject shell commands. An authenticated user with media resource scope can exploit this via the POST /api/{project}/{environment}/media/new endpoint to execute arbitrary OS commands in the Node.js process context.
Potential Impact
An authenticated user with media resource scope can achieve arbitrary OS command execution on the server hosting HashBrown CMS. This could lead to full system compromise depending on the privileges of the Node.js process. The vulnerability allows execution of arbitrary commands through crafted filenames during thumbnail generation, potentially enabling data theft, service disruption, or further attacks.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict media resource scope access to trusted users only and consider disabling or restricting the media upload functionality if possible. Monitor for updates from the HashBrown CMS vendor regarding an official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-04T07:13:07.993Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a72d7b3bf8831d5395e849b
Added to database: 08/05/2026, 06:26:59 UTC
Last enriched: 08/05/2026, 06:45:48 UTC
Last updated: 08/05/2026, 06:45:48 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.