Cloudanix VulnDB

CVE-2024-29409

Medium · 5.5

nest allows a remote attacker to execute arbitrary code via the Content-Type header

CVSS

5.5

EPSS

0.3%

Published

Mar 14, 2025

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A flaw in how some web applications handle uploaded files could let outsiders run their own programs on the server if left unaddressed.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Remote Code Execution
Component
Web Framework
Class
RCE
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The vulnerability permits arbitrary code execution through a file upload feature by manipulating the Content-Type header in nestjs applications.

Why it matters to the business

Attackers could gain control of affected servers, leading to data exposure or service disruption; low exploit likelihood and no known campaigns reduce immediate urgency despite widespread use of the framework.

How an attack unfolds

An attacker identifies a nestjs endpoint accepting file uploads, crafts a request with a malicious payload disguised via the Content-Type header, and triggers remote code execution on the server.

How to fix it

Upgrade affected nestjs deployments to a patched release; for chromium on Debian 12 apply version 131.0.6778.204-1~deb12u1 or later where applicable.

How to confirm the fix worked

Review application dependencies for nestjs version 11.0.11, test upload endpoints with varied Content-Type headers to confirm rejection of malicious inputs, and verify chromium packages match the listed fixed versions on Debian 12 systems.

Typical attack path

  1. Scan for publicly reachable nestjs applications running version 11.0.11 or earlier
  2. Locate file upload endpoints that process Content-Type headers
  3. Upload a crafted file with a manipulated Content-Type value containing executable code
  4. Trigger execution of the uploaded payload to achieve remote code execution

How to detect it

Examine web server and application logs for unusual file uploads accompanied by non-standard Content-Type values; review process execution logs for unexpected binaries spawned after upload events.

What your security team should do

  • Prioritize inventory of all nestjs instances and schedule upgrades within standard change windows
  • Implement input validation and Content-Type whitelisting on upload handlers as a temporary control
  • Monitor EPSS and exploit maturity indicators for any rise in activity over the next 30 days

The record

File Upload vulnerability in nestjs nest v.11.0.11 allows a remote attacker to execute arbitrary code via the Content-Type header.

Affected packages

Ecosystem Package Introduced Fixed
npm @nestjs/common 0 10.4.16
npm @nestjs/common 11.0.0-next.1 11.0.16

Related vulnerabilities