# FacturaScripts: Path traversal in UploadedFile::move() via getClientOriginalName() — arbitrary file write outside MyFiles/ leading to RCE

Critical severity, published 2026-07-14. Update facturascripts/facturascripts to 2026.3 or later: composer update facturascripts/facturascripts.

Canonical URL: https://buzzphp.com/security/ghsa-hgjx-r89m-m7v4 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | critical (CVSS 9.9) |
| Published | 2026-07-14 |
| Updated | 2026-11-02 |
| CVE | [CVE-2026-77526](https://nvd.nist.gov/vuln/detail/CVE-2026-77526) |
| GHSA | [GHSA-hgjx-r89m-m7v4](https://github.com/advisories/GHSA-hgjx-r89m-m7v4) |
| Weakness | CWE-22, CWE-434 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| facturascripts/facturascripts | >= 2025, <= 2026.2 | 2026.3 |

## What to do

Update facturascripts/facturascripts to 2026.3 or later: composer update facturascripts/facturascripts.

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

## About this advisory

Summary

FacturaScripts\Core\UploadedFile::move($destiny, $destinyName) concatenates $destiny and $destinyName without normalizing the resulting path. Every caller in the codebase passes UploadedFile::getClientOriginalName() — the unsanitized client-supplied filename — as $destinyName, so an authenticated user submitting a filename containing ../ segments can write the uploaded content to any directory writable by the web-server user, escaping the intended MyFiles/ location.



## Links

- [GHSA-hgjx-r89m-m7v4 on GitHub](https://github.com/advisories/GHSA-hgjx-r89m-m7v4)
- [CVE-2026-77526 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-77526)
- [All Composer security advisories](https://buzzphp.com/security)
