VYPR
Unrated severityNVD Advisory· Published Nov 29, 2025· Updated Dec 1, 2025

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

CVE-2025-66224

Description

OrangeHRM 5.0-5.7 has an input-neutralization flaw in mail configuration allowing arbitrary file write via sendmail parameter injection, leading to code execution.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

OrangeHRM 5.0-5.7 has an input-neutralization flaw in mail configuration allowing arbitrary file write via sendmail parameter injection, leading to code execution.

Vulnerability

OrangeHRM versions 5.0 through 5.7 contain an input-neutralization flaw in the mail configuration and delivery workflow. User-controlled values are passed unsanitized into the system's sendmail command, allowing injection of sendmail parameters. This enables the application to write files on the server during email processing. The issue is described in the advisory [1].

Exploitation

An attacker with administrative access to the mail configuration settings can inject sendmail parameters such as -O or -X to write arbitrary content to a file. The attacker must be able to trigger email sending (e.g., by creating a user or event that sends a notification). The unsanitized input flows directly into the OS-level command string, allowing the attacker to control the file path and content.

Impact

Successful exploitation allows the attacker to write arbitrary files to the server. If the file is written to a web-accessible directory, the attacker can achieve remote code execution by writing a PHP file (or other executable content) and accessing it via the web server. This results in full compromise of the application and server.

Mitigation

The issue has been patched in OrangeHRM version 5.8 [1]. Users should upgrade to version 5.8 or later. No workarounds are mentioned in the available references. The vulnerability is not listed on CISA's KEV as of the publication date.

AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2
  • Orangehrm/Orangehrmllm-fuzzy2 versions
    >=5.0 <=5.7+ 1 more
    • (no CPE)range: >=5.0 <=5.7
    • (no CPE)range: >= 5.0, < 5.8

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

1

News mentions

0

No linked articles in our index yet.