RSEC-2023-0

    Dashboard / Vulnerabilities / RSEC-2023-0

    RSEC-2023-0

    Published: 13 Jul 2023Last Modified: 19 May 2025

    Summary: Out-of-bounds write and stack based buffer overflow vulnerabilities

    Details: The readxl R package, versions 0.1.0 to 1.0.0, is vulnerable to multiple attack vectors due to the underlying use of the libxls library. Several exploitable vulnerabilities have been identified in different functions of libxls versions 1.3.4 and 1.4. These include out-of-bounds write and stack based buffer overflow vulnerabilities in the xls_mergedCells and xls_getfcell functions respectively. Furthermore, integer overflow vulnerabilities exist in the xls_preparseWorkSheet and xls_appendSST functions when handling MULBLANK, MULRK records and a shared string table (SST). An additional out-of-bounds vulnerability has been identified in the xls_addCell function when it processes a formula record. All these vulnerabilities can lead to memory corruption, potentially resulting in remote code execution. The exploit is triggered when a specially crafted XLS file, possibly sent by an attacker, is processed by these vulnerable functions.

    Affected packages

    Package

    Name: readxl

    Purl: pkg:cran/readxl

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0.1.0
    Fixed -1.1.0

    Affected versions

    0.1.0
    0.1.1

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    RSEC-2023-0 | CVE-DB