PoC Monitor
← All CVEs
CVE-2025-66224published 29 Nov 2025 03:04 UTCData: JSON · API

OrangeHRM

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

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.

First public PoC 18 daysafter publication · 17 Dec 2025
Public PoCs11 on GitHub
CVSS9.0critical · scored by CNA · CWE-94
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

orangehrm orangehrm
  • >= 5.0, < 5.8

Fixed in 5.8

Mitigation

Upgrade orangehrm to 5.8 or later.

References

Timeline

Days relative to CVE publication
-3t=0+3+6+9+12+15+18CVE published29 Nov 2025 · t = 0First public PoC17 Dec 2025 · t+18d

First public PoC 18 days after publication; not in CISA KEV. First PoC: richard-natan/PoC-CVE-2025-66224 (created 17 Dec 2025, found by us: backfilled).

PoC repositories

Found on GitHub.

1 PoCs

PoCs 1
RepositoryCreatedStarsAssessment
richard-natan/PoC-CVE-2025-66224 17 Dec 2025 +18 d 3 PoC

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

PoC characteristics

What to hunt for in your logs · from 1 PoC repo

GET /web/index.php/dashboard/index

Key headers
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Ports
8080
PoC User-Agent
Mozilla/5.0 (X11; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0
Seen in
1 repo: richard-natan/PoC-CVE-2025-66224
Evidence
richard-natan/PoC-CVE-2025-66224/CVE-2025-66224.py:70

PUT /web/index.php/api/v2/admin/email-configuration

Key headers
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Body markers
"mailType":"sendmail" "sentAs":"exploit@email.com" "smtpHost" "smtpPort" "smtpUsername":"admin" "smtpPassword" "smtpAuthType":"login" "smtpSecurityType":"none" "testEmailAddress":"trigger@email.com" in application/json
Ports
8080
PoC User-Agent
Mozilla/5.0 (X11; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0
Seen in
1 repo: richard-natan/PoC-CVE-2025-66224
Evidence
richard-natan/PoC-CVE-2025-66224/CVE-2025-66224.py:283

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

GET /web/index.php/dashboard/index
(?i)^/web/index\.php/dashboard/index(?:[?#].*)?$
PUT /web/index.php/api/v2/admin/email-configuration
(?i)^/web/index\.php/api/v2/admin/email-configuration(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /web/index.php/dashboard/index
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2025-66224 orangehrm orangehrm exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/web/index.php/dashboard/index"; http.header; content:"Accept: text/html,application/xhtml+xml,application/xml|3b|q=0.9,*/*|3b|q=0.8"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2025-66224; classtype:web-application-attack; sid:9284964; rev:1;)
PUT /web/index.php/api/v2/admin/email-configuration
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2025-66224 orangehrm orangehrm exploit attempt"; flow:established,to_server; http.method; content:"PUT"; http.uri; content:"/web/index.php/api/v2/admin/email-configuration"; http.header; content:"Accept: text/html,application/xhtml+xml,application/xml|3b|q=0.9,*/*|3b|q=0.8"; nocase; http.request_body; content:"|22|mailType|22|:|22|sendmail|22|"; http.request_body; content:"|22|sentAs|22|:|22|exploit@email.com|22|"; http.request_body; content:"|22|smtpHost|22|"; http.request_body; content:"|22|smtpPort|22|"; http.request_body; content:"|22|smtpUsername|22|:|22|admin|22|"; http.request_body; content:"|22|smtpPassword|22|"; http.request_body; content:"|22|smtpAuthType|22|:|22|login|22|"; http.request_body; content:"|22|smtpSecurityType|22|:|22|none|22|"; http.request_body; content:"|22|testEmailAddress|22|:|22|trigger@email.com|22|"; reference:url,poc.griffinguard.io/cve/CVE-2025-66224; classtype:web-application-attack; sid:9729585; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /web/index.php/dashboard/index
title: orangehrm orangehrm exploit attempt (CVE-2025-66224)
id: gg-pocmon-cve-2025-66224-9284964
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-66224. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2025-66224
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/web/index.php/dashboard/index'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2025.66224
PUT /web/index.php/api/v2/admin/email-configuration
title: orangehrm orangehrm exploit attempt (CVE-2025-66224)
id: gg-pocmon-cve-2025-66224-9729585
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-66224. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2025-66224
logsource:
  category: webserver
detection:
  selection:
    cs-method: PUT
    cs-uri-stem|contains|all:
      - '/web/index.php/api/v2/admin/email-configuration'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2025.66224