Skip to main content

FacturaScripts EUVDEUVD-2026-144500

| CVE-2026-77526 CRITICAL
Path Traversal (CWE-22)
2026-12-04 GitHub_M GHSA-hgjx-r89m-m7v4
9.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with any upload-capable role
  2. Delivery
    POST multipart filename with ../ segments
  3. Exploit
    Write .htaccess into Dinamic/Assets/
  4. Execution
    Upload PHP payload as .png
  5. Persist
    Request payload URL, Apache runs PHP
  6. Impact
    Remote 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

facturascripts 2025, < 2026.3

Affected Packages

composer facturascripts/facturascripts fix: 2026.3
euvd facturascripts fix: 2026.3

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

Vendor (GitHub_M) PRIMARY 9.9 CRITICAL
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 9.9 CRITICAL

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Dec 04, 2026 - 19:02 EUVD
CVE Published
Dec 04, 2026 - 17:18 cve.org
CRITICAL 9.9

DescriptionCVE.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.

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch: 2026.3

Threat Intelligence Overview

Prevalence
Low
niche open-source SMB accounting/invoicing app, limited enterprise footprint
Social Media
4
Sightings
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +50
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2022-1715 CRITICAL POC
9.8 May 13

Account Takeover in GitHub repository neorazorx/facturascripts prior to 2022.07. Rated critical severity (CVSS 9.8), thi

CVE-2026-25514 HIGH POC
8.8 Feb 04

FacturaScripts is open-source enterprise resource planning and accounting software. [CVSS 8.8 HIGH]

CVE-2026-25513 HIGH POC
8.8 Feb 04

Authenticated users can execute arbitrary SQL commands against FacturaScripts REST API endpoints through unsanitized sor

CVE-2026-23997 HIGH POC
8.0 Feb 02

FacturaScripts versions 2025.71 and earlier contain a stored XSS vulnerability in the Observations field that executes a

CVE-2022-2066 MEDIUM POC
6.1 Jun 13

Cross-site Scripting (XSS) - Reflected in GitHub repository neorazorx/facturascripts prior to 2022.06. Rated medium seve

CVE-2022-1988 MEDIUM POC
6.1 Jun 03

Cross-site Scripting (XSS) - Generic in GitHub repository neorazorx/facturascripts prior to 2022.09. Rated medium severi

CVE-2022-1682 MEDIUM POC
6.1 May 12

Reflected Xss using url based payload in GitHub repository neorazorx/facturascripts prior to 2022.07. Rated medium sever

CVE-2022-1571 MEDIUM POC
6.1 May 04

Cross-site scripting - Reflected in Create Subaccount in GitHub repository neorazorx/facturascripts prior to 2022.07. Ra

CVE-2026-23476 MEDIUM POC
5.4 Feb 02

Reflected cross-site scripting in FacturaScripts prior to version 2025.8 allows authenticated attackers to inject malici

CVE-2022-2065 MEDIUM POC
5.4 Jun 13

Cross-site Scripting (XSS) - Stored in GitHub repository neorazorx/facturascripts prior to 2022.06. Rated medium severit

CVE-2022-2016 MEDIUM POC
5.4 Jun 09

Cross-site Scripting (XSS) - Reflected in GitHub repository neorazorx/facturascripts prior to 2022.1. Rated medium sever

CVE-2022-1514 MEDIUM POC
5.4 Apr 28

Stored XSS via upload plugin functionality in zip format in GitHub repository neorazorx/facturascripts prior to 2022.06.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy