SCA: security update for phpoffice/phpspreadsheet (GHSA-7c6m-4442-2x6m)

high Tenable Self-Hosted Container Security Plugin ID 441012

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Prior to 1.30.4, 2.1.16,
2.4.5, 3.10.5, and 5.7.0, the XLSX reader's ColumnAndRowAttributes::readRowAttributes() method reads row
numbers from XML attributes without validating them against the spreadsheet maximum row limit
(AddressRange::MAX_ROW = 1,048,576). An attacker can craft a minimal XLSX file (~1.6KB) containing a <row
r="999999999"/> element that inflates cachedHighestRow to 999,999,999, causing any subsequent row
iteration to attempt ~1 billion loop cycles and exhaust CPU resources. This vulnerability is fixed in
1.30.4, 2.1.16, 2.4.5, 3.10.5, and 5.7.0. (CVE-2026-40902)

Solution

Update the phpoffice/phpspreadsheet library and its related packages to version 1.30.4 or later.

See Also

https://github.com/advisories/GHSA-7c6m-4442-2x6m

Plugin Details

Severity: High

ID: 441012

Version: Revision 1.8

Type: Local

Family: SCA Checks

Published: 4/30/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 94.39

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.1

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C

CVSS Score Source: CVE-2026-40902

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/29/2026

Vulnerability Publication Date: 4/29/2026

Reference Information

CVE: CVE-2026-40902

cwe: CWE-400