Skip to main content

CVE-2026-33221

LOW
Insufficient Verification of Data Authenticity (CWE-345)
2026-03-18 https://github.com/nhost/nhost GHSA-g9f6-9775-hffm
2.1
CVSS 4.0 · GitHub Advisory
View

Vulnerability 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

go github.com/nhost/nhost fix: 0.0.0-20260318074820-c4bd53f042d7

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

GitHub Advisory PRIMARY 2.1 LOW
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

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
CVSS changed
Jun 03, 2026 - 14:22 NVD
2.1 (LOW)
Patch released
Mar 18, 2026 - 20:30 nvd
Patch available
CVE Published
Mar 18, 2026 - 20:21 nvd
LOW

DescriptionGitHub 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:

go
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

Why It Matters

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.

Business Impact: Low
Compensating Controls

Apply vendor patch during routine maintenance. Standard security controls provide adequate interim protection.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Low

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

Affected Products (CPE)GitHub Advisory

pkg:go/github.com_nhost_nhost

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy