{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-66224 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2025-66224 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-66224 is a critical command injection vulnerability in orangehrm, published on 29 Nov 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-66224 and fix it if it is affected.\n\nWhat it is: CVE-2025-66224 is a critical command injection vulnerability in orangehrm, published on 29 Nov 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-66224 in the wild and no public exploit code.\n\nAffected product: orangehrm. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-66224/ (Markdown: https://insights.sbomify.com/CVE-2025-66224/index.md)","id":"CVE-2025-66224","markdown":"https://insights.sbomify.com/CVE-2025-66224/index.md","name":"CVE-2025-66224","record":{"aliases":["GHSA-2w7w-h5wv-xr55"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"OrangeHRM HRM system","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary code by injecting commands into the sendmail parameter, leading to file writes and potential remote code execution.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"orangehrm","vendor":"orangehrm"}],"cvss":{"score":9,"severity":"critical","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2025-12-17","github_poc":1,"max_poc_stars":3,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-12-17T04:40:34Z","kind":"github_poc","ref":"https://github.com/richard-natan/PoC-CVE-2025-66224","stars":3,"title":null}],"tier":"poc_unverified"},"has_fix":false,"headline":"OrangeHRM is Vulnerable to Code Execution Through Arbitrary File Write from Sendmail Parameter Injection","id":"CVE-2025-66224","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2025"},"n_packages":0,"n_references":1,"next":{"headline":"OrangeHRM is Vulnerable to Account Takeover Through Unvalidated Username in Password Reset Workflow","id":"CVE-2025-66225"},"packages":[],"prev":{"headline":"OpenObserve's Invite Token Lifecycle Misconfiguration","id":"CVE-2025-66223"},"products":["orangehrm"],"published":"2025-11-29","related":[{"cvss_score":9.3,"headline":"Other in n/a","id":"CVE-2007-1193","kev_date_added":null,"published":"2007-03-02"},{"cvss_score":8.8,"headline":"Command injection in n/a","id":"CVE-2019-12839","kev_date_added":null,"published":"2019-06-15"},{"cvss_score":8.7,"headline":"OrangeHRM is Vulnerable to Account Takeover Through Unvalidated Username in Password Reset Workflow","id":"CVE-2025-66225","kev_date_added":null,"published":"2025-11-29"},{"cvss_score":8.7,"headline":"OrangeHRM is Vulnerable to Persistent Session Access Due to Missing Invalidation After User Disable and Password Change","id":"CVE-2025-66289","kev_date_added":null,"published":"2025-11-29"},{"cvss_score":8.1,"headline":"SQL injection in n/a","id":"CVE-2024-36428","kev_date_added":null,"published":"2024-05-27"},{"cvss_score":8.1,"headline":"SQL injection in n/a","id":"CVE-2020-29437","kev_date_added":null,"published":"2021-01-05"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-12-01","vendors":["orangehrm"]},"summary":"Attackers can execute arbitrary code by injecting commands into the sendmail parameter, leading to file writes and potential remote code execution.","url":"https://insights.sbomify.com/CVE-2025-66224/"}