# Spreadsheet::XLSX vulnerability allows arbitrary code execution via crafted files

> **Key takeaway:** A flaw in the Spreadsheet::XLSX Perl module allows attackers to execute arbitrary code by embedding Perl commands within number formats of a malicious XLSX file.

**Published:** 2026-12-01T12:49:30+00:00 
**Source:** Ubuntu Security & Release Notices 
**Category:** distro-news 
**Canonical URL:** https://fosswire.org/news/spreadsheetxlsx-vulnerability-allows-arbitrary-code-executio 

## Summary
A critical security vulnerability has been identified in the Spreadsheet::XLSX Perl extension, which is used for reading Microsoft Excel 2007 files. The defect allows for arbitrary code execution if a user or an automated system processes a specially crafted XLSX workbook.

Ubuntu has released security updates to address CVE-2026-115943 across multiple releases. While the latest version (26.10) receives a standard update, fixes for older Long Term Support (LTS) releases such as 24.04, 22.04, 20.04, and 18.04 are primarily available through Ubuntu Pro via ESM Apps.

## Technical breakdown of CVE-2026-115943
- **Defect Class:** The vulnerability stems from improper input validation where the parser evaluates conditions within number formats as executable Perl code.
- **Attack Vector:** An attacker can trigger the vulnerability by tricking a user or an automated processing system into opening a malicious XLSX file containing embedded Perl commands.
- **Affected Component:** The issue is localized to the libspreadsheet-xlsx-perl package, a Perl extension designed for parsing MS Excel 2007 formats.
- **Mitigation:** Users on Ubuntu 26.10 can update to version 0.18-1ubuntu0.26.10.1, while users on older LTS versions must utilize Ubuntu Pro/ESM to access the patched versions (e.g., 0.17-1ubuntu0.24.04.1~esm1 for 24.04 LTS).

## Why it matters
This vulnerability poses a significant risk to automated data processing pipelines and server-side workflows that use Perl to parse spreadsheet data. System administrators must ensure that any automated ingestion of Excel files is patched or sandboxed to prevent remote code execution.