All vulnerabilities
CVE-2026-108360GHSA-2phh-27fw-q4gc

PhpSpreadsheet: SSRF whitelist bypass via unre-validated HTTP redirect in Drawing::setPath external image loading

PHPOffice PhpSpreadsheet
CVSS
6.4Medium
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.22%Chance of exploitation activity in the next 30 days, higher than 12% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in5.10.0Also 3.10.8, 2.4.8 and 2 moreGitHub
Published22 Oct 2026Updated 22 Oct 2026CVE List

What fixes it

  • 5.10.0phpoffice/phpspreadsheet, composerGitHubcomposer require "phpoffice/phpspreadsheet:^5.10.0"
  • 3.10.8phpoffice/phpspreadsheet, composerGitHubcomposer require "phpoffice/phpspreadsheet:^3.10.8"
  • 2.4.8phpoffice/phpspreadsheet, composerGitHubcomposer require "phpoffice/phpspreadsheet:^2.4.8"
  • 2.1.19phpoffice/phpspreadsheet, composerGitHubcomposer require "phpoffice/phpspreadsheet:^2.1.19"
  • 1.30.7phpoffice/phpspreadsheet, composerGitHubcomposer require "phpoffice/phpspreadsheet:^1.30.7"

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Prior to 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0, Worksheet\Drawing::setPath validates only the initial external-image URL with setIsWhitelisted when setAllowExternalImages is enabled. The HTTP stream context permits PHP to follow a redirect without applying the callback to the redirected URL, so a permitted image host can redirect the server to an internal address and cause a blind GET request. The response body is not returned to the attacker because the reader validates the downloaded content as an image and removes the temporary file, but internal GET-driven endpoints, network reachability, and cloud metadata endpoints may be reached. This issue is fixed in versions 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0.

Text from CVE List

Affected versions 10

  • PhpSpreadsheetaffected: < 1.30.7CVE List
  • PhpSpreadsheetaffected: >= 2.0.0, < 2.1.19CVE List
  • PhpSpreadsheetaffected: >= 2.2.0, < 2.4.8CVE List
  • PhpSpreadsheetaffected: >= 3.3.0, < 3.10.8CVE List
  • PhpSpreadsheetaffected: >= 4.0.0, < 5.10.0CVE List
  • phpoffice/phpspreadsheet, composer>= 4.0.0, <= 5.9.0GitHub
  • phpoffice/phpspreadsheet, composer>= 3.3.0, <= 3.10.7GitHub
  • phpoffice/phpspreadsheet, composer>= 2.2.0, <= 2.4.7GitHub
  • phpoffice/phpspreadsheet, composer>= 2.0.0, <= 2.1.18GitHub
  • phpoffice/phpspreadsheet, composer<= 1.30.6GitHub

References 11