CVE-2026-70374: HashBrown CMS: OS Command Injection in Media Upload Thumbnail Generation

Published Aug 5, 2026
·
Updated

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.

Affected Software

1 affected component
HashBrown CMS<=1.4.6

Event History

Aug 5, 2026
CVE Published
via MITRE·05:46 AM
Data Sourced
via MITRE·05:46 AM
DescriptionWeakness
Data Sourced
via NVD·07:16 AM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-70374?

CVE-2026-70374 has a risk severity score of 80.

2

How do I fix CVE-2026-70374?

To fix CVE-2026-70374, ensure that the thumbnail file path in the Media.generateThumbnail() function is properly escaped.

3

What type of vulnerability is CVE-2026-70374?

CVE-2026-70374 is an OS Command Injection vulnerability as categorized by CWE-78.

4

In which version of HashBrown CMS is CVE-2026-70374 present?

CVE-2026-70374 is present in HashBrown CMS version 1.4.6.

5

What functionality is affected by CVE-2026-70374?

CVE-2026-70374 affects the media upload thumbnail generation routine.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203