Read the docs
TI-2025-40726 Aliases CVE-2025-66224

OrangeHRM is Vulnerable to Code Execution Through Arbitrary File Write from Sendmail Parameter Injection

Priority MEDIUM 42CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-94.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00602 49th percentileScored 2026-11-07
Fix Fixed orangehrm (orangehrm): 5.8

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
orangehrmorangehrm5.0 to before 5.85.8Patch availableCNA
  • orangehrm Vendororangehrm Affected 5.0 to before 5.8 Fixed in 5.8 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:orangehrm:orangehrm:*:*:*:*:*:*:*:*5.0 to before 5.8Vulnerableorangehrm
  • cpe:2.3:a:orangehrm:orangehrm:*:*:*:*:*:*:*:* Versions 5.0 to before 5.8 Vulnerable ·orangehrm

Remediation

  • Fix · CNA orangehrm (orangehrm) Fixed in 5.8

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-66224

References

  • TI-2024-24213 OrangeHRM 3.3.3 allows admin/viewProjects sortOrder SQL injection. CVSS 3.1HIGH 8.1
  • TI-2025-40763 OrangeHRM is Vulnerable to Persistent Session Access Due to Missing Invalidation After User Disable and Password Change CVSS 4.0HIGH 8.7
  • TI-2019-09618 In OrangeHRM 4.3.1 and before, there is an input validation error within… CVSS 3.0HIGH 8.8
  • TI-2007-01160 Multiple unspecified vulnerabilities in the Login page in OrangeHRM before 20070212 have… CVSS 2.0HIGH 9.3
  • TI-2020-17674 SQL injection in the Buzz module of OrangeHRM through 4.6 allows remote authenticated… CVSS 3.1HIGH 8.1
  • TI-2025-40727 OrangeHRM is Vulnerable to Account Takeover Through Unvalidated Username in Password Reset Workflow CVSS 4.0HIGH 8.7
See all 30 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences