CVE-2026-115943

Spreadsheet::XLSX versions before 0.19 for Perl allow code execution via string eval of number format conditions in ExcelFmt

Published Oct 29, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
Spreadsheet::XLSX versions before 0.19 for Perl allow code execution via string eval of number format conditions in ExcelFmt.

When a number format has a condition such as [>100], ExcelFmt chooses the format section by passing the condition and the cell value to a string eval. Both come from the workbook, and the eval runs while Spreadsheet::XLSX->new parses it.

An attacker who supplies an XLSX file can run arbitrary Perl code.

Analysis

AI-generated

Technical impact

Spreadsheet::XLSX before version 0.19 processes custom Excel number format conditions by passing the condition string and the cell value to Perl's string eval function during parsing. Because both the condition and the cell value originate from the workbook, an attacker can craft an XLSX file that contains malicious code embedded within a number format condition. When Spreadsheet::XLSX parses the workbook, the eval executes that code with full privileges of the running Perl process, allowing arbitrary Perl code execution.

Affected Systems

The vulnerability affects the Perl module Spreadsheet::XLSX, specifically versions earlier than 0.19. Any Perl application that loads a legacy Spreadsheet::XLSX library and processes user‑supplied XLSX files is susceptible. Systems using newer releases (0.19 or later) are not impacted.

Risk and Exploitability

The flaw provides remote code execution when an attacker can supply a crafted XLSX file to the application. The exploit requires only that the application load the old library while parsing an input file; no additional network authentication is necessary. The CVSS score of 9.8 reflects a very high severity, and the EPSS score of less than 1% indicates a low but nonzero probability that it will be exploited. The vulnerability is not listed in CISA's KEV catalog, but the lack of a guard around eval means the risk remains high. Official advice is to patch immediately.

Remediation

Vendor Solution

Upgrade to Spreadsheet-XLSX 0.19 or later.


OpenCVE Recommended Actions

  • Upgrade Spreadsheet::XLSX to version 0.19 or later as per vendor recommendation.
  • Audit deployed software to verify that all instances use the updated library and remove any legacy copies.
  • If upgrading cannot be performed immediately, limit file uploads to trusted sources and consider inserting a validation layer that rejects custom Excel number format conditions before they reach the library.

Generated by OpenCVE AI on November 5, 2026 at 23:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-94
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Perl
Perl spreadsheet::xlsx
Vendors & Products Perl
Perl spreadsheet::xlsx
Type Values Removed Values Added
Description Spreadsheet::XLSX versions before 0.19 for Perl allow code execution via string eval of number format conditions in ExcelFmt. When a number format has a condition such as [>100], ExcelFmt chooses the format section by passing the condition and the cell value to a string eval. Both come from the workbook, and the eval runs while Spreadsheet::XLSX->new parses it. An attacker who supplies an XLSX file can run arbitrary Perl code.
Title Spreadsheet::XLSX versions before 0.19 for Perl allow code execution via string eval of number format conditions in ExcelFmt
Weaknesses CWE-95
References
Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

  • CWE-95

    Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 5, 2026, 9:39 PM
Reserved
Oct 23, 2026, 9:59 PM
Status
Deferred
Published
Oct 29, 2026, 10:17 PM
Modified
Nov 5, 2026, 10:17 PM
Severity
Important
Public date
Oct 29, 2026, 9:37 PM