CVE-2026-33221
LOWVulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V14 - Configuration Dependency management, component inventory
|
| Impact | The CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:N vector reflects low immediate severity with network attack vector, high complexity, no privileges required, but requiring user interaction and limiting impact to integrity within the scope of the storage system alone. However, this scoring underestimates real-world risk: the vulnerability enables integrity violations that propagate to downstream consumers of file metadata (content delivery networks, web browsers, document processing engines, data analytics pipelines) which may perform incorrect actions based on false MIME type assertions. The attack is highly automatable—any client with upload permissions can craft requests with arbitrary Content-Type headers—and does not require complex exploitation. The patch is available and actively maintained by the Nhost project (commit c4bd53f042d7f568e567e18e2665af81660fce85), suggesting the vendor has assessed this as a legitimate security defect rather than a design choice. This should be prioritized as a medium-to-high priority remediation task despite the low CVSS, particularly for organizations where file type guarantees feed into security decisions or compliance controls. |
| Exploit ScenarioDerived | An attacker with legitimate file upload access authenticates to the Nhost storage service and uploads a malicious executable file (e.g., a .exe or .sh binary) while setting the Content-Type header to image/png. The storage service accepts the spoofed metadata without content inspection and stores the incorrect MIME type in the database. When a downstream web application or CDN retrieves this file's metadata, it treats the executable as an image, potentially serving it with image MIME types that bypass browser download protections, or allowing it to be processed by image libraries that may have unrelated vulnerabilities. The attack requires upload permissions but no special complexity, and the integrity impact ripples through the entire stack of systems consuming the storage service's file metadata. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 18, 2026
The Nhost storage service's file upload handler trusts the client-provided Content-Type header without performing server-side MIME type detection, allowing attackers to upload files with spoofed MIME types that bypass bucket-level MIME restrictions. This affects the Go module github.com/nhost/nhost and could cause downstream systems (browsers, CDNs, applications) to mishandle files based on false type metadata. While the CVSS vector indicates low immediate severity due to requiring user interaction and lacking direct confidentiality or availability impact, the metadata corruption poses integrity risks for systems relying on accurate file type information.
RemediationAI
Upgrade the Nhost platform to a version incorporating patch commit c4bd53f042d7f568e567e18e2665af81660fce85 or later by following the vendor's update guidance at https://github.com/nhost/nhost/security/advisories/GHSA-g9f6-9775-hffm. The upstream fix ensures that getMultipartFile always invokes mimetype.DetectReader on file content, completely ignoring client-provided Content-Type headers. For deployments unable to upgrade immediately, implement compensating controls by deploying a reverse proxy (nginx, Envoy) that strips or re-validates the Content-Type header before it reaches the storage service, and configure the storage service's bucket policies to enforce strict MIME type whitelisting at the policy layer rather than relying on metadata alone. Additionally, audit stored file metadata for discrepancies between claimed and actual content types using file signature inspection tools.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in go
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability exists in the getMultipartFile function within services/storage/controller/upload_files.go (lines 48-70) of the Nhost backend-as-a-service platform written in Go. The affected component (pkg:go/github.com_nhost_nhost) implements a file storage service that fails to perform content-based MIME type detection when a non-empty Content-Type header is provided by the client. The root cause is classified under CWE-345 (Insufficient Verification of Data Authenticity) and CWE-434 (Unrestricted Upload of File with Dangerous Type). The code logic explicitly skips the mimetype.DetectReader function—which performs content-based detection—whenever the client supplies a Content-Type header value other than application/octet-stream, placing full trust in unvalidated client input rather than inspecting file content entropy and file signatures.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
3DescriptionGitHub Advisory
Summary
The storage service's file upload handler trusts the client-provided Content-Type header without performing server-side MIME type detection. This allows an attacker to upload files with an arbitrary MIME type, bypassing any MIME-type-based restrictions configured on storage buckets.
Affected Component
- Service:
services/storage - File:
services/storage/controller/upload_files.go - Function:
getMultipartFile(lines 48-70)
Root Cause
In getMultipartFile, if the client provides a non-empty Content-Type header that isn't application/octet-stream, the function returns it as-is without performing content-based detection:
contentType := file.header.Header.Get("Content-Type")
if contentType != "" && contentType != "application/octet-stream" {
return fileContent, contentType, nil // skip detection entirely
}
// mimetype.DetectReader only reached if client sends no Content-Type
// or sends application/octet-stream
mt, err := mimetype.DetectReader(fileContent)Impact
Incorrect MIME type in file metadata. The MIME type stored in file metadata reflects what the client claims rather than what the file actually contains. Any system consuming this metadata (browsers, CDNs, applications) may handle the file incorrectly based on the spoofed type.
Suggested Fix
Always detect MIME type from file content using mimetype.DetectReader, ignoring the client-provided Content-Type header entirely.
References
- CWE-345: Insufficient Verification of Data Authenticity
- CWE-434: Unrestricted Upload of File with Dangerous Type
Executive ViewAI
CVE-2026-33221 is a low-severity vulnerability. The limited severity suggests constrained impact, typically requiring specific conditions or local access for exploitation. A patch is available and can be applied during standard maintenance windows.
Apply vendor patch during routine maintenance. Standard security controls provide adequate interim protection.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.
GHSA-g9f6-9775-hffm
NVD
CVE.org
EPSS
VulDB
Exploit-DB