# NotrinosERP: Authenticated arbitrary file upload leads to remote code execution via HRM employee "Documents" (doc_file)

High severity, published 2026-07-10. Update notrinos/notrinos-erp to 1.1.0 or later: composer update notrinos/notrinos-erp.

Canonical URL: https://buzzphp.com/security/ghsa-qv4m-m73m-8hj7 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.8) |
| Published | 2026-07-10 |
| Updated | 2026-10-27 |
| CVE | [CVE-2026-76913](https://nvd.nist.gov/vuln/detail/CVE-2026-76913) |
| GHSA | [GHSA-qv4m-m73m-8hj7](https://github.com/advisories/GHSA-qv4m-m73m-8hj7) |
| Weakness | CWE-22, CWE-434 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| notrinos/notrinos-erp | <= 1.0.0 | 1.1.0 |

## What to do

Update notrinos/notrinos-erp to 1.1.0 or later: composer update notrinos/notrinos-erp.

Check which version you run with `composer show notrinos/notrinos-erp`, and every affected package with `composer audit`.

## About this advisory

Summary An authenticated user with the HR "Manage Employees" permission (SAEMPLOYEE) can upload a file with an arbitrary extension through the employee Documents tab. The handler writes the raw client-supplied filename — extension intact — into a web-served directory with no extension, MIME, or content validation, so a .php file is stored under the web root and executes as code, yielding remote code execution on the server.

Details The document-upload branch in hrm/manage/employees.php (function tabdocuments()) moves the uploaded file using the client filename verbatim:

There is no extension allow-list, getimagesize(), MIME check, or content inspection on this path.

## Links

- [GHSA-qv4m-m73m-8hj7 on GitHub](https://github.com/advisories/GHSA-qv4m-m73m-8hj7)
- [CVE-2026-76913 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-76913)
- [All Composer security advisories](https://buzzphp.com/security)
