Skip to content
Server Security Center
KEVhigh7.8

CVE-2023-7101: Spreadsheet::ParseExcel Remote Code Execution

Spreadsheet::ParseExcel · listed in the CISA catalog of actively exploited vulnerabilities since 2024-01-02.

CVSS v3.1 (CVE record)
7.8
high
EPSS (exploit probability, 30 days)
19%
higher than 97.3% of all CVEs
Added to CISA KEV
2024-01-02
US federal due date 2024-01-23
Ubuntu priority
medium

CVE-2023-7101 explained

CVE-2023-7101 is an arbitrary code execution flaw in the Perl module Spreadsheet::ParseExcel, packaged as libspreadsheet-parseexcel-perl. The module passes unvalidated Number format strings from an Excel file into a string-type eval. Opening a crafted file can therefore run attacker-chosen code. CISA lists it as known to be exploited.

Impact

An attacker who gets a crafted Excel file processed by Spreadsheet::ParseExcel can run arbitrary code with the privileges of the process parsing the file. This can mean full loss of confidentiality, integrity and availability for that process's data. The CVSS vector is local with low complexity. It requires no privileges but does require user interaction, such as getting someone to open or process the malicious file.

Who is affected

The source package libspreadsheet-parseexcel-perl is affected on all listed releases, and every one has a fix. Debian 12 (bookworm) is fixed in 0.6500-4~deb12u1. Ubuntu 22.04 LTS is fixed in 0.6500-1.1ubuntu0.1 and Ubuntu 20.04 LTS in 0.6500-1ubuntu0.20.04.1, both in the standard archive. Ubuntu 18.04 LTS (0.6500-1ubuntu0.18.04.1~esm1), Ubuntu 16.04 LTS (0.6500-1ubuntu0.16.04.1~esm1) and Ubuntu 14.04 LTS (0.5800-1ubuntu0.1~esm1) receive fixes only through Ubuntu Pro (ESM).

Written with AI from the data on this page and checked against it automatically.

Official description

Spreadsheet::ParseExcel version 0.65 is a Perl module used for parsing Excel files. Spreadsheet::ParseExcel is vulnerable to an arbitrary code execution (ACE) vulnerability due to passing unvalidated input from a file into a string-type “eval”. Specifically, the issue stems from the evaluation of Number format strings (not to be confused with printf-style format strings) within the Excel parsing logic.

CISA required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

CISA notes

Upstream versions (CVE record)

From the CVE record published by the vendor or CVE numbering authority.

  • Douglas Wilson Spreadsheet::ParseExcel
    Affected
    • 0.65
    Fixed in
    not stated

Ubuntu and Debian releases

A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.

  • Ubuntu 22.04 LTS·libspreadsheet-parseexcel-perl

    Fixed: 0.6500-1.1ubuntu0.1

  • Ubuntu 20.04 LTS·libspreadsheet-parseexcel-perl

    Fixed: 0.6500-1ubuntu0.20.04.1

  • Ubuntu 18.04 LTS·libspreadsheet-parseexcel-perl

    fix via Ubuntu Pro

    Fixed: 0.6500-1ubuntu0.18.04.1~esm1

  • Ubuntu 16.04 LTS·libspreadsheet-parseexcel-perl

    fix via Ubuntu Pro

    Fixed: 0.6500-1ubuntu0.16.04.1~esm1

  • Ubuntu 14.04 LTS·libspreadsheet-parseexcel-perl

    fix via Ubuntu Pro

    Fixed: 0.5800-1ubuntu0.1~esm1

  • Debian 12 (bookworm)·libspreadsheet-parseexcel-perl

    Fixed: 0.6500-4~deb12u1

What to do

  1. Identify systems with libspreadsheet-parseexcel-perl installed.
  2. Upgrade the package to the fixed version for your release.
  3. On Ubuntu 14.04 LTS, 16.04 LTS and 18.04 LTS, enable Ubuntu Pro (ESM) to get the fix, or upgrade to a supported release.
  4. Restart long-running Perl services or applications that load Spreadsheet::ParseExcel so they use the patched code.
  5. Until patched, avoid processing Excel files from untrusted sources with this module.

Written with AI from the data on this page and checked against it automatically.

Check and fix on a server

Run on each Ubuntu or Debian server. Replace libspreadsheet-parseexcel-perl with the source package from the table above.

1. Show installed packages built from the source package, with their versions

dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="libspreadsheet-parseexcel-perl"'

2. Compare each installed version with the fixed version for your release from the table

I=INSTALLED_VERSION; F=FIXED_VERSION   # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac

3. Install the fix

sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="libspreadsheet-parseexcel-perl"{print $1}')

Services keep running the old code until they are restarted – restart the affected service or check with needrestart.

Rows marked “fix via Ubuntu Pro”: these fixes are only installable with an Ubuntu Pro subscription (ESM). Attach the machine first (sudo pro attach, then sudo pro enable esm-infra esm-apps), then run the commands above.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
No – each attack needs manual steps
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Questions about CVE-2023-7101

Is this vulnerability being exploited?
Yes. CISA added CVE-2023-7101 to its Known Exploited Vulnerabilities catalog on 2024-01-02, with a US federal due date of 2024-01-23. Known ransomware use is listed as unknown.
Do I need an Ubuntu Pro subscription to get the fix?
Only on Ubuntu 14.04 LTS, 16.04 LTS and 18.04 LTS, where the fix ships through Ubuntu Pro (ESM). Ubuntu 20.04 LTS, Ubuntu 22.04 LTS and Debian 12 (bookworm) have fixes in the standard archive. Releases at end of life should be upgraded to a supported release.
Does updating the package protect running applications immediately?
No. Perl processes that already loaded the module keep running the old code. Restart those services or applications after updating.

Written with AI from the data on this page and checked against it automatically.

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.