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

- Severity: Medium 6.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-22T17:26:59.148Z
- Modified: 2026-10-29T12:17:09.500Z
- Also known as: GHSA-2phh-27fw-q4gc
- Weaknesses: CWE-863, CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- PHPOffice PhpSpreadsheet: < 1.30.7; >= 2.0.0, < 2.1.19; >= 2.2.0, < 2.4.8; >= 3.3.0, < 3.10.8; >= 4.0.0, < 5.10.0
- phpoffice/phpspreadsheet (Packagist): from 4.0.0 before 5.10.0; from 3.3.0 before 3.10.8; from 2.2.0 before 2.4.8; from 2.0.0 before 2.1.19; before 1.30.7

## Every score

- GitHub_M: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`

## References

- <https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-2phh-27fw-q4gc> (exploit, web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/299993894dce37aa3b64aa23e9a3f4bb77ab0e66> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/94590951d76a250a5fc1ecf69a0b3f7439a9af49> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/980b5c294493856f1a25754f1e8a1d2185b93738> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/9a0b48622ebfe93fa48cb9bc09ce57303bb07af9> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/da13f40e8760d599b0e8a296017d4b028b20e86c> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/1.30.7> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.1.19> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.4.8> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/3.10.8> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/5.10.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-108360> (advisory)
- <https://github.com/PHPOffice/PhpSpreadsheet> (package)

## Sources

- CVE List: [CVE-2026-108360](https://www.cve.org/CVERecord?id=CVE-2026-108360), CVE Terms of Use, modified 2026-10-29
- GitHub Advisory Database: [GHSA-2phh-27fw-q4gc](https://github.com/advisories/GHSA-2phh-27fw-q4gc), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2026-108360](https://nvd.nist.gov/vuln/detail/CVE-2026-108360), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-108360 · Whole record: https://cve.day/CVE-2026-108360.json · Rebuilt by cve.day 2026-11-25T22:59:46.795Z
