CVE-2026-108360 json
PhpSpreadsheet: SSRF whitelist bypass via unre-validated HTTP redirect in Drawing::setPath external image loading
published 18d ago modified 11d ago also EUVD-2026-108264 , GHSA-2phh-27fw-q4gc
- cvss
- 6.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 27%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist phpoffice/phpspreadsheet 1.30.7, 2.1.19, 2.4.8, 3.10.8, 5.10.0
- phpoffice phpspreadsheet 1.30.7, 2.1.19, 2.4.8, 3.10.8, 5.10.0
- phpspreadsheet_project phpspreadsheet 1.30.7, 2.1.19, 2.4.8, 3.10.8, 5.10.0
- github.com/PHPOffice/PhpSpreadsheet@2999938 commit
- github.com/PHPOffice/PhpSpreadsheet@9459095 commit
- github.com/PHPOffice/PhpSpreadsheet@980b5c2 commit
- github.com/PHPOffice/PhpSpreadsheet@9a0b486 commit
- github.com/PHPOffice/PhpSpreadsheet@da13f40 commit
- github.com/PHPOffice/PhpSpreadsheet/releases/tag/1.30.7 release
- github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.1.19 release
- github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.4.8 release
- github.com/PHPOffice/PhpSpreadsheet/releases/tag/3.10.8 release
- github.com/PHPOffice/PhpSpreadsheet/releases/tag/5.10.0 release
Is CVE-2026-108360 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 11d ago
Exploit prediction
0.34% chance of exploitation in the next 30 days, higher than 27% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-2phh-27fw-q4gc referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 6.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | phpoffice/phpspreadsheet | >=4.0.0, <5.10.0 >=3.3.0, <3.10.8 >=2.2.0, <2.4.8 >=2.0.0, <2.1.19 <1.30.7 |
5.10.0 3.10.8 2.4.8 2.1.19 1.30.7 |
Affected products
- PHPOffice PhpSpreadsheet
Classification
References
-
github.com
/PHPOffice/PhpSpreadsheet/commit/299993894dce37aa3b64aa23e9a3f4bb77ab0e66
web
-
github.com
/PHPOffice/PhpSpreadsheet/commit/94590951d76a250a5fc1ecf69a0b3f7439a9af49
web
-
github.com
/PHPOffice/PhpSpreadsheet/commit/980b5c294493856f1a25754f1e8a1d2185b93738
web
-
github.com
/PHPOffice/PhpSpreadsheet/commit/9a0b48622ebfe93fa48cb9bc09ce57303bb07af9
web
-
github.com
/PHPOffice/PhpSpreadsheet/commit/da13f40e8760d599b0e8a296017d4b028b20e86c
web
-
github.com
/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-2phh-27fw-q4gc
exploit, web
-
github.com
/PHPOffice/PhpSpreadsheet/releases/tag/1.30.7
web
-
github.com
/PHPOffice/PhpSpreadsheet/releases/tag/2.1.19
web
-
github.com
/PHPOffice/PhpSpreadsheet/releases/tag/2.4.8
web
-
github.com
/PHPOffice/PhpSpreadsheet/releases/tag/3.10.8
web
-
github.com
/PHPOffice/PhpSpreadsheet/releases/tag/5.10.0
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-108360
advisory
-
github.com
/PHPOffice/PhpSpreadsheet
package
Sources
- CVE List CVE-2026-108360
- GitHub Advisory GHSA-2phh-27fw-q4gc
- NVD CVE-2026-108360
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.