CVE-2022-50898
Unknown Unknown - Not Provided
Authenticated File Upload Vulnerability in NanoCMS 0.4 Enables RCE

Publication date: 2026-01-13

Last updated on: 2026-01-13

Assigner: VulnCheck

Description
NanoCMS 0.4 contains an authenticated file upload vulnerability that allows remote code execution through unvalidated page content creation. Authenticated attackers can upload PHP files with arbitrary code to the server's pages directory by exploiting the page creation mechanism without proper input sanitization.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-01-13
Last Modified
2026-01-13
Generated
2026-05-27
AI Q&A
2026-01-14
EPSS Evaluated
2026-05-25
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
kalyan02 nanocms 0.4
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

CVE-2022-50898 is an authenticated file upload vulnerability in NanoCMS version 0.4. It allows an attacker who has valid credentials to upload arbitrary PHP files containing malicious code to the server's pages directory. This happens because the page creation mechanism does not properly sanitize input, enabling remote code execution by executing the uploaded PHP files on the server. [2, 4]


How can this vulnerability impact me? :

This vulnerability can lead to remote code execution on the server hosting NanoCMS. An attacker with valid credentials can upload and execute arbitrary PHP code, potentially gaining full control over the server, accessing sensitive data, modifying or deleting content, or using the server to launch further attacks. [2, 4]


How can this vulnerability be detected on my network or system? Can you suggest some commands?

This vulnerability can be detected by checking for unauthorized or suspicious PHP files in the pages directory of the NanoCMS installation, especially files uploaded via the admin panel. Additionally, monitoring HTTP POST requests to the admin panel (./data/nanoadmin.php) that create pages with PHP content can help identify exploitation attempts. Using the provided Python 3 exploit script (Resource 4) as a reference, one can simulate login and page creation requests to test if the system is vulnerable. Commands to detect suspicious files could include: `find /path/to/nanocms/pages -name '*.php' -exec ls -l {} \;` to list PHP files in the pages directory. Network monitoring tools can be used to inspect POST requests to the admin panel URL for unusual page creation activity. [4]


What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include restricting access to the NanoCMS admin panel to trusted users only, changing default credentials (default username "admin" and password "demo") to strong, unique passwords, and disabling or restricting the page creation functionality if possible. Additionally, applying input validation and sanitization on page content uploads to prevent PHP code execution is critical, though this requires code changes. If patching is not immediately possible, monitoring and logging admin panel access and uploaded files for suspicious activity is recommended. Removing or restricting write permissions to the pages directory can also help prevent unauthorized file uploads. [2, 4, 1]


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart