CVE-2023-7101
Arbitrary Code Execution (ACE) Vulnerability
In short
A Perl module that reads Excel files has a flaw where it runs untrusted code from the file format without checking it first. An attacker can craft a malicious Excel file that executes arbitrary commands when opened.
Technical detail
CVE-2023-7101 affects Spreadsheet::ParseExcel v0.65 and exploits unsafe eval() of Number format strings during Excel file parsing (CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code). Attack vector is local/file-based; requires a user to open a malicious .xls file. Impact is arbitrary code execution with the privileges of the parsing process.
Summary generated and translated by AI from the 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.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected products
Douglas Wilson · Spreadsheet::ParseExcelWant to know if your infrastructure is exposed to this?
Talk to TrueHacking →References
https://github.com/jmcnamara/spreadsheet-parseexcel/blob/c7298592e102a375d43150cd002feed806557c15/lib/Spreadsheet/ParseExcel/Utility.pm#L171https://github.com/mandiant/Vulnerability-Disclosures/blob/master/2023/MNDT-2023-0019.mdhttps://https://github.com/haile01/perl_spreadsheet_excel_rce_pochttps://https://github.com/jmcnamara/spreadsheet-parseexcel/commit/bd3159277e745468e2c553417b35d5d7dc7405bchttps://https://metacpan.org/dist/Spreadsheet-ParseExcelhttps://https://www.cve.org/CVERecord?id=CVE-2023-7101https://lists.debian.org/debian-lts-announce/2023/12/msg00025.htmlhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IFEHKULQRVXHIV7XXK2RGD4VQN6Y4CV5/https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M2FIWDHRYTAAQLGM6AFOZVM7AFZ4H2ZR/https://security.metacpan.org/2024/02/10/vulnerable-spreadsheet-parsing-modules.htmlhttps://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-7101http://www.openwall.com/lists/oss-security/2023/12/29/4