CVE-2024-29409 Details
Description
File Upload vulnerability in nestjs nest v.10.3.2 allows a remote attacker to execute arbitrary code via the Content-Type header.
A file upload vulnerability has been identified in NestJS version 10.3.2, specifically within the file upload functionality of the '@nestjs/common' package. This vulnerability allows remote attackers to execute arbitrary code by manipulating the 'Content-Type' header in a multipart form-data request. The issue arises from inadequate validation of the 'Content-Type' header compared to the actual file content, enabling attackers to upload files with misleading MIME types that could be executed on the server.
Users are advised to update to the latest version of NestJS, as version 10.x.x and above includes improved validation and handling of file uploads. Additionally, enhance MIME type validation by checking the actual file content against its expected type, restrict uploads to a whitelist of necessary file types, and implement file size and signature checks using appropriate libraries.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 17, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/aydinnyunus/801342361584d1491c67a820a714f53f | [email protected] | ExploitMitigationThird Party Advisory |
| https://github.com/nestjs/nest/issues/13311#issuecomment-1993839495 | [email protected] | ExploitIssue Tracking |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| nestjs nest | 10.3.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 3, 2025 | Initial Analysis | [email protected] |
| Mar 17, 2025 | CVE Modified | CISA-ADP |
| Mar 14, 2025 | New CVE Received | [email protected] |