CVE-2026-70374
Received Received - Intake

OS Command Injection in HashBrown CMS

Vulnerability report for CVE-2026-70374, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-05

Last updated on: 2026-08-05

Assigner: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c

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 + ...). The MIME-type filter in getMIMEType() (src/Common/utilities.js) truncates the extracted extension at the first '?' character, while Path.extname() does not, allowing a filename such as 'x.jpg?$(command)' to pass the image-type check while still injecting a shell command substitution into the exec() call. An authenticated user holding the media resource scope can achieve arbitrary OS command execution in the context of the Node.js process via POST /api/{project}/{environment}/media/new.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-05
Last Modified
2026-08-05
Generated
2026-08-05
AI Q&A
2026-08-05
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
hashbrowncms hashbrown_cms 1.4.6
hashbrown_cms hashbrown_cms 1.4.6

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

HashBrown CMS through 1.4.6 has an OS Command Injection vulnerability (CWE-78) in the media upload thumbnail generation. The system improperly handles filenames containing shell command substitutions, allowing an attacker to execute arbitrary commands on the server.

Detection Guidance

Check for suspicious media uploads with filenames containing command substitutions like 'x.jpg?$(command)' or similar patterns. Review logs for unexpected 'convert' command executions in the Node.js process context. Inspect media generation routines in src/Server/Entity/Resource/Media.js for unescaped file paths passed to shell commands.

Impact Analysis

An authenticated user with media resource scope can execute OS commands on the server hosting HashBrown CMS. This could lead to full system compromise, data theft, or unauthorized access to sensitive information.

Compliance Impact

This vulnerability could lead to unauthorized data access or exfiltration, violating GDPR's data protection requirements and HIPAA's security rules for protected health information. Organizations using affected versions may face compliance violations.

Mitigation Strategies

Upgrade to a patched version of HashBrown CMS if available. Temporarily disable media thumbnail generation until patched. Restrict media upload permissions to trusted users only. Monitor for unauthorized command executions in the Node.js process context.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-70374. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart