CVE-2026-45693: 
PHP vulnerability analysis and mitigation

Overview

CVE-2026-45693 is an unauthenticated path traversal vulnerability in FacturaScripts, an open-source ERP/accounting application, affecting all versions up to and including v2026.2. The flaw allows any unauthenticated remote attacker to read arbitrary files within the FacturaScripts installation directory by embedding ../ sequences in URLs that begin with an allow-listed folder prefix. It was published on July 14, 2026, by the NeoRazorX project maintainers and credited to researcher 5kr1pt. The CVE carries a CVSS v3.1 base score of 7.5 (High) (GitHub Advisory).

Technical details

The root cause is CWE-22 (Path Traversal): both Core/Controller/Files.php and Core/Controller/Myfiles.php perform authorization checks against the raw URL string using strpos()/substr() prefix matching rather than against the canonicalized filesystem path. In Files.php, isFolderSafe() checks only that the URL begins with an allow-listed prefix (e.g., /Plugins), so a request like GET /Plugins/../MyFiles/Private/invoice.pdf passes the check while the OS resolves the .. segment to the actual private path. In Myfiles.php, a URL beginning with /MyFiles/Public/ causes the controller to skip the per-file myft token check entirely; appending /../Private/ then redirects the file read to a protected location. The extension allow-list (pdf, xlsx, docx, csv, sql, zip, xml, json, xsig, etc.) is the only remaining gate, and it is easily satisfied by the file types the application stores. Multiple URL encoding variants (%2e%2e, .%2e, ///../) also bypass the prefix check (GitHub Advisory, NeoRazorX Advisory).

Impact

Successful exploitation allows any unauthenticated attacker to read any file within the FacturaScripts installation directory whose extension is on the allow-list, with no integrity or availability impact. In a typical ERP deployment this directly exposes the most sensitive business documents the application is designed to protect: customer and supplier invoices under MyFiles/Private/, document attachments uploaded via WidgetFile/DocFilesTrait, database backups exported as .sql files, and cached or temporary business data under MyFiles/Cache/ and MyFiles/Tmp/. The scope of the leak is bounded to the application directory tree (Apache's URI normalization blocks traversal outside it), and .php files are not on the extension allow-list, so remote code execution is not directly achievable (GitHub Advisory).

Exploitability

A detailed proof-of-concept is publicly included in the GitHub Security Advisory itself, demonstrating exploitation via simple HTTP GET requests with no authentication or special tooling required. The vulnerability requires no privileges, no user interaction, and has low attack complexity, making it trivially weaponizable by any attacker who can reach the application over the network. As of the advisory publication date (July 14, 2026), no patched version has been released. There is no current CISA KEV listing or EPSS score publicly available for this CVE, and no threat actor attribution or in-the-wild exploitation has been reported (GitHub Advisory, NeoRazorX Advisory).

Exploitation steps

  1. Reconnaissance: Identify internet-facing FacturaScripts instances (versions ≤ 2026.2) using search engines (Shodan, Censys) or by fingerprinting the application's login page and static assets.
  2. Enumerate target files: Determine likely private file paths based on FacturaScripts' known directory structure — e.g., MyFiles/Private/ for invoices, MyFiles/ for attachments, and database backup filenames typically following predictable naming conventions.
  3. Craft traversal request via /Plugins/* (no-precondition path): Send a GET request embedding a ../ traversal sequence after the allow-listed prefix:
    GET /Plugins/../MyFiles/Private/invoice-2026-001-ACME.pdf HTTP/1.1
    Host: <target>
    The isFolderSafe() check passes because the URL starts with /Plugins; the OS resolves .. and serves the private file.
  4. Alternative: exploit via /MyFiles/Public/*: If the MyFiles/Public/ directory exists (common in any installation with published assets), bypass the myft token check:
    GET /MyFiles/Public/../Private/invoice-2026-001-ACME.pdf HTTP/1.1
    Host: <target>
  5. Try URL-encoded variants if needed: If a WAF or proxy normalizes ../, substitute encoded equivalents such as %2e%2e/, .%2e/, or %2E%2E/ in the traversal segment.
  6. Exfiltrate data: Collect returned file contents (invoices, database backups as .sql, attachments) for further analysis or use in follow-on attacks (GitHub Advisory, NeoRazorX Advisory).

Indicators of compromise

  • Network: HTTP GET requests to paths matching patterns like /Plugins/../, /Core/Assets/../, /Dinamic/Assets/../, or /MyFiles/Public/../ in web server access logs; requests returning HTTP 200 for files under MyFiles/Private/, MyFiles/Cache/, or MyFiles/Tmp/.
  • Logs: Apache/web server access logs showing URL-encoded traversal sequences (%2e%2e, .%2e, %2E%2E) in request paths; repeated 200 responses for .pdf, .sql, .zip, .json, or .csv files from non-public directories; absence of a myft query parameter in requests to MyFiles/Private/ paths that return 200.
  • File System: No direct file system artifacts are created by read-only exploitation; however, unexpected access timestamps on files under MyFiles/Private/, MyFiles/Cache/, or MyFiles/Tmp/ may indicate unauthorized reads.
  • Process: No unusual process behavior expected, as exploitation is purely HTTP-based and read-only (GitHub Advisory).

Mitigation and workarounds

As of the advisory publication date (July 14, 2026), no patched version of FacturaScripts has been released — the advisory lists "None" for patched versions, and all versions ≤ 2026.2 are confirmed affected. The recommended fix is to resolve requested paths to their canonical form using PHP's realpath() and verify the canonical path falls within an allow-listed directory before serving the file or skipping token checks, as detailed in the advisory's suggested fix section. As an interim workaround, administrators should restrict network access to FacturaScripts instances to trusted IP ranges, configure the web server (e.g., Apache) to block requests containing ../ or URL-encoded equivalents in the path, and monitor access logs for traversal patterns. Operators should monitor the NeoRazorX/facturascripts repository for a patched release (GitHub Advisory, NeoRazorX Advisory).

Community reactions

The vulnerability was reported by researcher 5kr1pt and published directly by the NeoRazorX project maintainers via GitHub's Security Advisory mechanism on July 14, 2026. No significant public commentary, media coverage, or social media discussion has been identified beyond the advisory itself at this time.

Additional resources


Source: This report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-45262CRITICAL9.9
  • PHP logoPHP
  • facturascripts/facturascripts
NoYesDec 04, 2026
CVE-2026-47677CRITICAL9.3
  • PHP logoPHP
  • facturascripts/facturascripts
NoYesDec 04, 2026
CVE-2026-45263HIGH8
  • PHP logoPHP
  • facturascripts/facturascripts
NoYesDec 04, 2026
CVE-2026-45693HIGH7.5
  • PHP logoPHP
  • facturascripts/facturascripts
NoNoDec 04, 2026
GHSA-j3w3-jvjp-wgcfMEDIUM4.8
  • PHP logoPHP
  • laminas/laminas-diactoros
NoNoDec 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management