0.0
NA
CVE-2026-70374
HashBrown CMS: OS Command Injection in Media Upload Thumbnail Generation
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.

INFO

Published Date :

Aug. 5, 2026, 7:16 a.m.

Last Modified :

Aug. 5, 2026, 7:16 a.m.

Remotely Exploit :

No

Source :

309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
Affected Products

The following products are affected by CVE-2026-70374 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

Solution
Update HashBrown CMS to patch OS command injection in media upload.
  • Update HashBrown CMS to the latest version.
  • Review media upload and thumbnail generation code.
  • Sanitize all user-supplied input for shell commands.
  • Validate file types rigorously before processing.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-70374.

URL Resource
https://cve.turansec.uz/advisories/TRN-11FC0D88
https://github.com/HashBrownCMS/hashbrown-cms
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-70374 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-70374 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-70374 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c

    Aug. 05, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://github.com/HashBrownCMS/hashbrown-cms', 'vendor': 'HashBrownCMS', 'product': 'hashbrown-cms', 'versions': [{'status': 'affected', 'version': '0', 'versionType': 'semver', 'lessThanOrEqual': '1.4.6'}], 'programFiles': ['src/Server/Entity/Resource/Media.js', 'src/Common/utilities.js'], 'defaultStatus': 'unknown'}]
    Added 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.
    Added CWE CWE-78
    Added Reference https://cve.turansec.uz/advisories/TRN-11FC0D88
    Added Reference https://github.com/HashBrownCMS/hashbrown-cms
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.