CVE-2026-45263: 
PHP vulnerability analysis and mitigation

Overview

CVE-2026-45263 is a CSV formula injection vulnerability in FacturaScripts, an open-source ERP/accounting application, that allows authenticated low-privilege users to plant spreadsheet formula payloads that execute on an administrator's workstation when a CSV export is opened. The vulnerability affects all versions of facturascripts/facturascripts up to and including version 2026.1. It was published on July 14, 2026, with a live PoC verified on April 30, 2026. The CVSS v3.1 base score is 8.0 (High) (GitHub Advisory, FacturaScripts Advisory).

Technical details

The root cause is classified as CWE-1236 (Improper Neutralization of Formula Elements in a CSV File). The vulnerable function Core/Lib/Export/CSVExport.php::writeData() wraps string cells in the configured delimiter (") and concatenates them without inspecting the first character for formula trigger prefixes (=, +, -, @, \t, \r). FacturaScripts' only input sanitizer, Tools::noHtml() (Core/Tools.php:45), strips HTML metacharacters (< > " ') but leaves formula-injection characters untouched, so payloads stored verbatim in the database are emitted verbatim into the CSV. The same vulnerable writeData() method is reused across all export surfaces — addListModelPage(), addModelPage(), addBusinessDocPage(), and addTablePage() — meaning any exportable model (customers, suppliers, products, contacts) is a viable injection point (GitHub Advisory).

Impact

Successful exploitation results in arbitrary code execution on the administrator's workstation when the exported CSV is opened in Microsoft Excel or LibreOffice Calc, which interpret formula-prefixed cells as executable expressions by default. DDE payloads such as =cmd|'/c calc'!A1 spawn arbitrary OS processes with the admin user's privileges, enabling full host takeover, credential theft, and lateral movement beyond the FacturaScripts environment. Additionally, =HYPERLINK and =WEBSERVICE formula variants can silently exfiltrate sensitive ERP data (customer names, fiscal IDs, financial balances) to an attacker-controlled server. The attack is particularly effective due to trust laundering — the CSV originates from the organization's own ERP system, giving the admin no reason to treat it as untrusted (GitHub Advisory, FacturaScripts Advisory).

Exploitability

A live PoC was verified on April 30, 2026, and is publicly documented in the GitHub Security Advisory, including full curl-based exploit scripts. Exploitation requires only a low-privilege authenticated account with Insert/Update access to any exportable model (a common permission for accounting and sales staff), making the preconditions trivial in most deployments. No CISA KEV listing or active in-the-wild exploitation campaigns have been reported at this time, and no EPSS score is currently available. The CVE status remains "Reserved" as of the advisory publication date (GitHub Advisory).

Exploitation steps

  1. Obtain low-privilege access: Acquire or create a FacturaScripts account with Insert/Update access to any exportable model such as ListCliente (EditCliente role). This is a standard permission for accounting or sales staff.
  2. Authenticate and retrieve CSRF token: Log in as the low-privilege user and extract the multireqtoken CSRF token from the login response or the EditCliente form page.
    TOKEN=$(curl -s -c /tmp/fs-low-cookie 'http://TARGET/login' \
      | grep -oP 'name="multireqtoken" value="\K[^"]+' | head -1)
  3. Plant the formula payload: Submit a POST request to create or update a customer record with a DDE formula as the nombre (name) field:
    curl -s -b /tmp/fs-low-cookie -X POST http://TARGET/EditCliente \
      --data-urlencode "multireqtoken=$TOKEN" \
      --data-urlencode "action=insert" \
      --data-urlencode 'nombre==SUM(1+1)*cmd|/c calc!A1' \
      --data-urlencode "cifnif=11111111H"
  4. Wait for admin export: The payload persists in the database. When any administrator performs the routine CSV export of the customer list via ?action=export&option=CSV, the malicious formula is included verbatim in the downloaded file.
  5. Payload execution: When the admin opens the downloaded export.csv in Microsoft Excel or LibreOffice Calc, the spreadsheet application interprets the =-prefixed cell as a formula. DDE invocations trigger a dialog (or execute silently on trusted documents) that runs cmd /c calc — or any attacker-specified command — with the admin's OS privileges (GitHub Advisory, FacturaScripts Advisory).

Indicators of compromise

  • Network: Outbound HTTP/HTTPS requests from the admin workstation to unexpected external hosts shortly after opening a FacturaScripts CSV export (potential =WEBSERVICE or =HYPERLINK data exfiltration); DNS lookups for attacker-controlled domains originating from the spreadsheet process (excel.exe, soffice.exe).
  • Process: Unexpected child processes spawned by excel.exe or soffice.exe, such as cmd.exe, powershell.exe, calc.exe, or other binaries not normally launched by spreadsheet applications; DDE server process invocations visible in process trees.
  • Logs: FacturaScripts web server access logs showing POST requests to /EditCliente (or similar model endpoints) with URL-encoded formula characters (%3D, %2B, %40) in the nombre or other text fields; subsequent GET requests to ?action=export&option=CSV from an admin session.
  • File System: Downloaded CSV files in the admin's browser download directory containing cells starting with =, +, -, or @ in the nombre column; presence of unexpected scripts or executables dropped by the spreadsheet process in %TEMP% or user profile directories (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.1 are affected. The recommended fix is to neutralize formula-trigger characters (=, +, -, @, \t, \r) at write time in CSVExport::writeData() by prepending a single quote (') to any string cell beginning with these characters, following OWASP CSV injection prevention guidance. The same fix should be applied to writeHeader() and XLSExport::getCursorRawData(). As an interim workaround, administrators should open CSV exports using the spreadsheet's "Import Text" / "From Text/CSV" wizard (which does not auto-execute formulas) rather than double-clicking the file, and restrict Insert/Update permissions on exportable models to trusted users only (GitHub Advisory, FacturaScripts Advisory).

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