{"id":"CVE-2026-77526","summary":"FacturaScripts: Path traversal in UploadedFile::move() via getClientOriginalName() — arbitrary file write outside MyFiles/ leading to   RCE","details":"FacturaScripts is an open source accounting and invoicing software. From version 2025 to before version 2026.3, 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. Because the shipped htaccess-sample (the documented production Apache configuration) excludes Dinamic/Assets/ and node_modules/ from the index.php rewrite, files written into those directories are served directly by Apache. Combined with .htaccess not being in BLOCKED_EXTENSIONS, the primitive escalates from arbitrary file write to remote code execution. This issue has been patched in version 2026.3.","aliases":["GHSA-hgjx-r89m-m7v4"],"modified":"2026-12-04T19:45:32.830701496Z","published":"2026-12-04T17:18:33.608Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-22","CWE-434"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77526.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77526.json"},{"type":"WEB","url":"https://github.com/NeoRazorX/facturascripts/releases/tag/v2026.3"},{"type":"ADVISORY","url":"https://github.com/NeoRazorX/facturascripts/security/advisories/GHSA-hgjx-r89m-m7v4"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77526"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/neorazorx/facturascripts","events":[{"introduced":"52acf8f8f8a247660f689fd275d6d33d0cece537"},{"fixed":"a4078cdd3cdb81e8b855ebce1cdb80e777161641"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"2025"},{"fixed":"2026.3"}]},{"original_tag":"v2026.3","range":[{"fixed":"a4078cdd3cdb81e8b855ebce1cdb80e777161641"}],"source":"REFERENCES_TAG"}]}}],"versions":["v2026.2","v2026.1","v2026","v2025.81","v2025.8","v2025.71","v2025.7","v2025.43","v2025.41","v2025.4","v2025.3","v2025.2","v2025.11","v2025"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-77526.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"}]}