CVE-2021-46036: Arbitrary File Upload Leading to RCE in MCMS

net.mingsoft:ms-mcms Updated 02 Oct 2025

Summary

19/02/2022
No i
Critical
9.8

CVE-2021-46036: File upload leading to RCE in MCMS. Affects net.mingsoft:ms-mcms versions < 5.2.4. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

MCMS (Mingsoft Content Management System) is a Maven package that provides content management functionality for web applications. It allows users to upload and manage various types of files. However, a vulnerability in the component /ms/file/uploadTemplate.do of MCMS v5.2.4 allows attackers to upload arbitrary files, leading to remote code execution (RCE) on the server.

Vulnerability Detail

The vulnerability arises due to insufficient validation of user-uploaded files. Attackers can exploit this by uploading malicious files with executable code, which can then be executed on the server. This can result in unauthorized access, data breaches, and potential compromise of the entire system. The vulnerability has a CVSS score of 9.8, indicating its critical severity.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, administrators can disable the file upload functionality in MCMS or implement additional server-side validation to ensure that only safe file types are allowed. Here is an example of server-side validation code in Java:

// Check file extension
String fileName = uploadedFile.getOriginalFilename();
String fileExtension = fileName.substring(fileName.lastIndexOf('.') + 1);
if (!allowedExtensions.contains(fileExtension)) {
    throw new SecurityException("Invalid file type");
}

// Check file content
byte[] fileContent = uploadedFile.getBytes();
if (!isSafeFileContent(fileContent)) {
    throw new SecurityException("Unsafe file content");
}

Conclusion

The arbitrary file upload vulnerability in MCMS v5.2.4 can lead to remote code execution on the server. It is crucial to upgrade to a patched version of MCMS that includes proper file upload validation to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for net.mingsoft:ms-mcms →

Share this vulnerability

FAQ

MCMS (Mingsoft Content Management System) is a Maven package that provides content management functionality for web applications. It allows users to create, edit, and manage various types of content, including files.

This vulnerability allows attackers to upload and execute arbitrary code on the server. This can lead to unauthorized access, data breaches, and potential compromise of the entire system.

To fix this vulnerability, it is recommended to upgrade to a patched version of MCMS that includes proper file upload validation. The latest version of MCMS should address this issue and prevent the execution of arbitrary code.

As a temporary workaround, administrators can disable the file upload functionality in MCMS or implement additional server-side validation to ensure that only safe file types are allowed.

The CVSS score of this vulnerability is 9.8, indicating its critical severity.

Related vulnerabilities

Recent vulnerabilities recorded for net.mingsoft:ms-mcms.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback