# CVE-2025-66224: OrangeHRM is Vulnerable to Code Execution Through Arbitrary File Write from Sendmail Parameter Injection

- Severity: Critical 9.0 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 50% of CVEs (2026-12-01)
- Published: 2025-11-29T03:04:42.301Z
- Modified: 2026-10-18T18:10:00.100Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- orangehrm orangehrm: >= 5.0, < 5.8; from 5.0 before 5.8

## Every score

- GitHub_M: CVSS:4.0 9.0 Critical `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/orangehrm/orangehrm/security/advisories/GHSA-2w7w-h5wv-xr55> (vendor-advisory)

## Sources

- CVE List: [CVE-2025-66224](https://www.cve.org/CVERecord?id=CVE-2025-66224), CVE Terms of Use, modified 2025-12-01
- NVD: [CVE-2025-66224](https://nvd.nist.gov/vuln/detail/CVE-2025-66224), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-66224 · Whole record: https://cve.day/CVE-2025-66224.json · Rebuilt by cve.day 2026-11-25T22:59:08.094Z
