CVE-2025-66224

HIGH

OrangeHRM 5.0-5.7 - OS Command Injection via Sendmail Command Construction

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2025-66224. PoCs published by richard-natan.

AI-analyzed exploit summary This PoC exploits CVE-2025-66224 in OrangeHRM by modifying the 'sendmail_path' configuration in the MySQL database to achieve remote code execution (RCE). It requires valid session cookies and direct database access to alter the configuration.

Description

OrangeHRM is a comprehensive human resource management (HRM) system. From version 5.0 to 5.7, the application contains an input-neutralization flaw in its mail configuration and delivery workflow that allows user-controlled values to flow directly into the system’s sendmail command. Because these values are not sanitized or constrained before being incorporated into the command execution path, certain sendmail behaviors can be unintentionally invoked during email processing. This makes it possible for the application to write files on the server as part of the mail-handling routine, and in deployments where those files end up in web-accessible locations, the behavior can be leveraged to achieve execution of attacker-controlled content. The issue stems entirely from constructing OS-level command strings using unsanitized input within the mail-sending logic. This issue has been patched in version 5.8.

Exploits (1)

nomisec WORKING POC 3 stars
by richard-natan · poc
https://github.com/richard-natan/PoC-CVE-2025-66224

This PoC exploits CVE-2025-66224 in OrangeHRM by modifying the 'sendmail_path' configuration in the MySQL database to achieve remote code execution (RCE). It requires valid session cookies and direct database access to alter the configuration.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: OrangeHRM (version not specified)
Auth required
Prerequisites: Valid session cookie for OrangeHRM · MySQL database credentials · Direct access to the MySQL database
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (1)

Core 1
Core References

Scores

CVSS v3 8.8
EPSS 0.0048
EPSS Percentile 37.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-94
Status published
Products (1)
orangehrm/orangehrm 5.0 - 5.8
Published Nov 29, 2025
Tracked Since Feb 18, 2026