CVE-2025-66224
JSON

9.0critical

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

Severity
9.0critical CVSS:4.0 by GitHub_M
Exploit likelihood
0.60% (higher than 50% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
orangehrm orangehrm>= 5.0, < 5.8, from 5.0 before 5.8CVE List, NVD

All scores

GitHub_M9.0critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

OrangeHRM es un sistema integral de gestión de recursos humanos (HRM). Desde la versión 5.0 hasta la 5.7, la aplicación contiene una falla de neutralización de entrada en su configuración de correo y flujo de trabajo de entrega que permite que valores controlados por el usuario fluyan directamente al comando sendmail del sistema. Debido a que estos valores no son saneados ni restringidos antes de ser incorporados en la ruta de ejecución del comando, ciertos comportamientos de sendmail pueden ser invocados involuntariamente durante el procesamiento de correo electrónico. Esto hace posible que la aplicación escriba archivos en el servidor como parte de la rutina de manejo de correo, y en implementaciones donde esos archivos terminan en ubicaciones accesibles por la web, el comportamiento puede ser aprovechado para lograr la ejecución de contenido controlado por el atacante. El problema se deriva completamente de la construcción de cadenas de comandos a nivel de sistema operativo utilizando entrada no saneada dentro de la lógica de envío de correo. Este problema ha sido parcheado en la versión 5.8.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-66224 changed 2025-12-01CVE Terms of Use
NVDCVE-2025-66224 changed 2026-10-18Public domain