Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with any upload-capable role
-
DeliveryPOST multipart filename with ../ segments
-
ExploitWrite .htaccess into Dinamic/Assets/
-
ExecutionUpload PHP payload as .png
-
PersistRequest payload URL, Apache runs PHP
-
ImpactRemote code execution as web-server user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated session or API token with upload rights to one of six entry points (POST /api/3/uploadfiles, POST /api/3/attachedfiles, any file-widget form, the library widget, the DocFiles trait, or AdminPlugins zip upload) - a privilege granted to many non-administrative roles. The arbitrary-write-to-direct-serve step depends on the shipped htaccess-sample production Apache configuration, which excludes Dinamic/Assets/ and node_modules/ from the index.php rewrite; the RCE escalation additionally needs Apache honoring an uploaded .htaccess (AllowOverride) and the web-server user having write access to those directories, since htaccess is absent from BLOCKED_EXTENSIONS. Limiting factors: authentication is mandatory (PR:L, not unauthenticated), the direct-serve behavior requires the documented default Apache deployment, and plain file write outside MyFiles/ is possible even without the full RCE chain. Affected versions 2025 through 2026.2; fixed in 2026.3. |
| Impact | This is a genuine high-priority issue, not a CVSS-inflated one, and the signals are consistent. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H = 9.9) describes remote, low-complexity exploitation by an authenticated low-privilege user with scope change and full confidentiality/integrity/availability impact, matching the described authenticated path-traversal-to-RCE chain. The vuln.today Decision label is act_now, reinforcing urgency. No EPSS score, no CISA KEV entry, and no SSVC automatable/technical-impact breakdown were provided, so quantitative exploitation probability cannot be stated; absence of KEV means active exploitation is NOT confirmed. The GHSA advisory itself publishes detailed PoC steps (a static file-write reproduction plus a live HTTP request and an RCE chain), so capable attackers have a clear roadmap even though the advisory status reads 'Reported privately... Awaiting acknowledgement.' The main realistic limiter is the PR:L authentication requirement plus dependence on the shipped production Apache configuration - but because upload privileges are granted to a wide range of non-admin roles and that Apache config is the documented default, the practical barrier is low. Net: treat as act_now. |
| Exploit ScenarioDerived | An authenticated user with permission to attach a file or call the upload API submits a multipart request whose filename contains ../ segments, writing a chosen file outside MyFiles/ into Dinamic/Assets/, which the documented Apache config serves directly. The attacker first drops a .htaccess remapping a benign extension to the PHP handler, then uploads a .png containing PHP, and requests it to gain code execution as the web-server user. A full PoC (static reproduction and live HTTP request) is published in the GHSA advisory, though it is not labeled as confirmed weaponized exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 04, 2026
Authenticated path traversal in FacturaScripts 2025 through 2026.2 lets any user or API token holding upload rights write attacker-controlled files outside the intended MyFiles/ directory, and under the documented Apache deployment this write primitive escalates to remote code execution. UploadedFile::move() concatenates the destination path with the raw client-supplied filename without normalization, and because the shipped htaccess-sample serves Dinamic/Assets/ and node_modules/ directly while .htaccess is absent from BLOCKED_EXTENSIONS, an uploader can plant an Apache override plus a PHP payload. Vendor-released patch: 2026.3; the advisory carries a public PoC reference that reproduces the write primitive (not verified as working exploit code), and the issue is prioritized act_now. Exploitation requires authentication (CVSS PR:L), so this is not an unauthenticated attack surface, but upload privileges are granted to many non-administrative roles.
RemediationAI
Upgrade to FacturaScripts 2026.3, the vendor-released patch for this issue (release notes explicitly list the file-upload path traversal fix); note that 2026.3 raises the minimum PHP requirement to 8.1, so validate the runtime before deploying. Release and advisory: https://github.com/NeoRazorX/facturascripts/releases/tag/v2026.3 and https://github.com/NeoRazorX/facturascripts/security/advisories/GHSA-hgjx-r89m-m7v4. The advisory's code-level fix applies basename() to $destinyName inside UploadedFile::move() (and the same change in moveTo()) so all six call sites are covered automatically; the advisory's additional hardening is to add htaccess, htm, html, shtml and phtm to BLOCKED_EXTENSIONS (or replace the blocklist with a per-call-site allowlist - trade-off: stricter lists can reject legitimate document uploads), to verify with realpath() that the concatenated destination still resolves inside the intended base directory and abort otherwise, and to drop a Deny from all .htaccess into MyFiles/ so written files can only be retrieved through the application download endpoint that enforces MyFilesToken (trade-off: direct URL access to stored files stops working). If upgrading immediately is not possible, restrict exposure by limiting the upload entry points to trusted roles and, for the escalation step specifically, ensuring Apache does not honor uploaded .htaccess in Dinamic/Assets/ (AllowOverride None) - this blocks the .htaccess remap the assessed RCE chain relies on but does not prevent the underlying out-of-MyFiles write.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a classic CWE-22 path traversal in PHP upload handling, and the advisory additionally classifies it as CWE-434 (unrestricted upload of dangerous file type). FacturaScripts\Core\UploadedFile::move($destiny, $destinyName) appends DIRECTORY_SEPARATOR if needed and then performs a raw $destiny . $destinyName concatenation passed to move_uploaded_file() (or rename() in test mode); getClientOriginalName() simply returns $this->name with no basename(), normalization, or separator filtering, and isValid() only enforces a PHP-extension blocklist (phar, php, php3-php8, pht, phtml, phps), the upload error code, and is_uploaded_file(). Six sinks feed the raw client filename into move(): ApiUploadFiles (POST /api/3/uploadfiles), ApiAttachedFiles (POST /api/3/attachedfiles), WidgetFile used by every file-widget form, WidgetLibrary, DocFilesTrait, and AdminPlugins zip upload. A filename containing ../ segments therefore escapes MyFiles/ into any directory writable by the web-server user. The escalation depends on deployment specifics: the shipped htaccess-sample excludes Dinamic/Assets/ and node_modules/ from the index.php rewrite, so Apache serves files there directly, and since htaccess is not a blocked extension a first upload can place an AddType override and a second can place a PHP payload under an allowed extension. Per the assessment, the RCE step additionally requires Apache to honor uploaded .htaccess (AllowOverride) and web-server write access to those directories; plain out-of-MyFiles writes are possible independently of the full chain. Affected CPE: cpe:2.3:a:neorazorx:facturascripts:*:*:*:*:*:*:*:*, matching the composer package range >= 2025, <= 2026.2.
Know when Facturascripts gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Remote authenticated low-priv upload (PR:L, AV:N, AC:L, no UI); writing files served/executed by Apache escapes the app's security authority, so S:C with full C/I/A via RCE.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Articles & Coverage 2
Technical POC Analysis
CWE-22 in FacturaScripts\Core\UploadedFile::move($destiny, $destinyName).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-77526 is a critical vulnerability in FacturaScripts (versions 2025 to 2026.2) that allows authenticated users with upload rights to write arbitrary files, potentially leading to remote code execution. Since upload rights are commonly assigned to non-administrative roles, this broadens the insider threat surface and could enable data compromise or system takeover. Leadership should prioritize immediate remediation due to the high severity and the availability of a public proof-of-concept reference.
Apply vendor patch: 2026.3
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Facturascripts
View allAccount Takeover in GitHub repository neorazorx/facturascripts prior to 2022.07. Rated critical severity (CVSS 9.8), thi
FacturaScripts is open-source enterprise resource planning and accounting software. [CVSS 8.8 HIGH]
Authenticated users can execute arbitrary SQL commands against FacturaScripts REST API endpoints through unsanitized sor
FacturaScripts versions 2025.71 and earlier contain a stored XSS vulnerability in the Observations field that executes a
Cross-site Scripting (XSS) - Reflected in GitHub repository neorazorx/facturascripts prior to 2022.06. Rated medium seve
Cross-site Scripting (XSS) - Generic in GitHub repository neorazorx/facturascripts prior to 2022.09. Rated medium severi
Reflected Xss using url based payload in GitHub repository neorazorx/facturascripts prior to 2022.07. Rated medium sever
Cross-site scripting - Reflected in Create Subaccount in GitHub repository neorazorx/facturascripts prior to 2022.07. Ra
Reflected cross-site scripting in FacturaScripts prior to version 2025.8 allows authenticated attackers to inject malici
Cross-site Scripting (XSS) - Stored in GitHub repository neorazorx/facturascripts prior to 2022.06. Rated medium severit
Cross-site Scripting (XSS) - Reflected in GitHub repository neorazorx/facturascripts prior to 2022.1. Rated medium sever
Stored XSS via upload plugin functionality in zip format in GitHub repository neorazorx/facturascripts prior to 2022.06.
EUVD-2026-144500
GHSA-hgjx-r89m-m7v4
NVD
CVE.org
Vulnrichment
VulDB
Exploit-DB