ZeroHour

CVE-2023-7101

KEVlarge

Arbitrary Code Execution in Spreadsheet::ParseExcel Perl Module (CVE-2023-7101)

CISA: Spreadsheet::ParseExcel Remote Code Execution Vulnerability

CVSS 3.1
7.8 high
EPSS
19%p97
Published
()
KEV added
AI analysis

CVE-2023-7101 is an arbitrary code execution flaw in version 0.65 of the Spreadsheet::ParseExcel Perl module, which is used to parse Microsoft Excel files: Excel 'Number format' strings taken from the file are passed into Perl's string-form eval() without validation (CWE-95), so embedded content is evaluated as Perl code. It is triggered whenever an application, script, or appliance using the module processes a maliciously crafted .xls file, meaning exploitation typically requires user interaction (opening or ingesting the file) consistent with the CVSS local-attack/user-interaction vector. A successful attacker gains code execution with the privileges of the process parsing the file, with high impact on confidentiality, integrity, and availability. Anyone running the vulnerable module is affected, including Debian and Fedora users of its packages and operators of products that bundle the library, and the flaw drew wide attention after it was implicated in the Barracuda Email Security Gateway zero-day exploitation attributed to Chinese-nexus hackers. CISA added the flaw to the Known Exploited Vulnerabilities catalog on 2024-01-02, confirming exploitation in the wild; EPSS assigns a roughly 19% probability of exploitation in the next 30 days (97th percentile), and no public proof-of-concept is known.

What to do: Upgrade Spreadsheet::ParseExcel to the vendor-patched release (version 0.65 is cited as vulnerable) via CPAN or by applying updated Debian/Fedora packages, and identify products that bundle the module, such as Barracuda ESG, applying those vendors' fixes per their instructions. Until patched, avoid processing untrusted .xls files with the module or restrict spreadsheet ingestion to trusted sources, and review systems where Perl code parses externally supplied spreadsheets for signs of exploitation. Ransomware linkage is currently unknown, per CISA.

Affected
jmcnamara Spreadsheet::ParseExcel (Perl module)0.65 (version named in CISA data; no broader affected range provided)
Debian Linux (Spreadsheet::ParseExcel package)
fedoraproject Fedora (Spreadsheet::ParseExcel package)
Estimated exposure
largetens of thousands to hundreds of thousands of systems (long-standing library shipped in Debian/Fedora package repositories and bundled in third-party products) — The estimate is based on the module's ubiquity as a widely used CPAN library included in the standard Debian and Fedora package repositories and bundled inside appliances such as Barracuda ESG, while noting that only deployments that…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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 Known Exploited Vulnerability
Affected
Spreadsheet::ParseExcel Spreadsheet::ParseExcel
Required action
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Due date
Ransomware use
Unknown
Vendors
jmcnamaradebianfedoraproject
Products
spreadsheet\, debian linux, fedora
Weakness
CWE-95, CWE-94
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

In the news