BuzzPHP
LightDarkSystem

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

Critical severity. Published 14 July 2026. Update facturascripts/facturascripts to 2026.3 or later: composer update facturascripts/facturascripts.

Which versions are affected?

PackageAffected versionsFixed in
facturascripts/facturascripts (opens in a new tab)>= 2025, <= 2026.22026.3

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show facturascripts/facturascripts
composer audit

Advisory details

SeverityCriticalCVSS 9.9
Published
Updated
CVECVE-2026-77526 (opens in a new tab)
GHSAGHSA-hgjx-r89m-m7v4 (opens in a new tab)
WeaknessCWE-22, CWE-434

What the advisory says

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.

Source: GHSA-hgjx-r89m-m7v4 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories