Webkul Krayin CRM Arbitrary File Upload Vulnerability in TinyMCE Controller Allowing Remote Code Execution

Vulnerability

A vulnerability exists in Webkul Krayin CRM version 2.2.x, allowing authenticated users to upload arbitrary files through the TinyMCE upload endpoint. The application fails to properly validate file types, enabling the upload of malicious PHP files that can be executed on the server, leading to remote code execution.

Impact

Exploitation of this vulnerability allows for remote code execution on the server, with the executed code running in the context of the web server process. This could result in a full server compromise, including access to all files on the server, modification or deletion of files, and potential lateral movement within the internal network.

Reproduction

To reproduce this vulnerability, authenticate to Krayin CRM with a valid user account. Then, upload a PHP file containing arbitrary PHP code to the '/admin/tinymce/upload' endpoint. After the file is uploaded, note the file path provided in the JSON response. Finally, send a GET request to the uploaded file's URL, which will trigger the execution of the PHP code on the server.

Remediation

Users are advised to implement file type validation to restrict uploads to safe MIME types and extensions, store uploaded files outside the web root, rename files to random UUIDs with safe extensions, disable PHP execution in upload directories if files must remain web-accessible, and review authentication requirements for the TinyMCE upload endpoint.

Added: Apr 14, 2026, 5:11 PM
Updated: Apr 14, 2026, 5:11 PM

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
10.0
exploitability
6.2
remediation
0.0
relevance
5.9
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.