
Remote Code Execution (RCE) Vulnerability in Krayin CRM v2.1.5
Remote Code Execution (RCE) Vulnerability in Krayin CRM v2.1.5
CVE: CVE-2026-36340
Severity: Critical
Affected Product: Krayin CRM v2.1.5
Vulnerability Type: Remote Code Execution (RCE)
Authentication Required: Yes
A critical Remote Code Execution (RCE) vulnerability exists in Krayin CRM v2.1.5.
The vulnerability allows an authenticated user to upload arbitrary PHP files through the email composition feature. Uploaded attachments are stored inside a publicly accessible directory without proper validation or execution restrictions.
As a result, an attacker can upload a malicious PHP payload and execute it remotely by accessing the uploaded file URL. Successful exploitation may allow full compromise of the server.
The vulnerable functionality exists in the Email → Compose feature.
Affected route:
POST /admin/mail/create
When attaching files to an email, the backend does not properly perform the following checks:
Because of this, the application accepts .php files and stores them directly inside the following publicly accessible path:
/public/storage/emails/<mail_id>/<filename>.php
Since this directory is served by the web server, the uploaded PHP file can be executed simply by visiting its URL.
This proof of concept should only be used in an authorized testing environment.
.php file as an attachment./storage/emails/<id>/test.php
The following request shows the email attachment upload process.

Example affected endpoint:
POST /admin/mail/create
The request includes the uploaded PHP attachment.
The server stores the uploaded file and returns a publicly accessible file path.

Example uploaded file path:
/storage/emails/<id>/test.php
After the PHP file is uploaded, it can be accessed directly from the browser.
This results in remote execution of the uploaded PHP payload.

[Video PoC]
Successful exploitation may allow an attacker to:
To mitigate this vulnerability, the following measures are recommended:
.php, .phtml, .phar, and similar extensions.GitHub Security Advisory:
https://github.com/krayin/laravel-crm/security/advisories/GHSA-4x7x-c646-39jw
Video PoC:
https://drive.google.com/file/d/1yBdvbrXGf9fsFckmK9zTe2v8_vDtdicH/view?usp=drive_web
https://cyber.spool.co.jp/wp-content/uploads/2026/04/RCE-krayin.mp4
Krayin CRM v2.1.6 Release:
https://github.com/krayin/laravel-crm/releases/tag/v2.1.6
NVD Reference:
https://nvd.nist.gov/vuln/detail/CVE-2024-38529
CyberCrew is available to provide additional details, testing information, or further assistance as needed.