# CVE-2026-34084: PhpSpreadsheet SSRF and RCE via PHP stream wrappers in IOFactory::load

- Severity: Critical 9.2 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA: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.71%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-29T20:22:30.000Z
- Modified: 2026-07-24T22:10:00.140Z
- Also known as: GHSA-q4q6-r8wh-5cgh
- Weaknesses: CWE-502, CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

PhpSpreadsheet is a library for reading and writing spreadsheet files. In versions 1.30.2 and earlier, 2.0.0 through 2.1.14, 2.2.0 through 2.4.3, 3.3.0 through 3.10.3, and 4.0.0 through 5.5.0, when the filename argument to IOFactory::load() is user-controlled, an attacker can supply a PHP stream wrapper path (such as phar://, ftp://, or ssh2.sftp://) that passes the is_file() check in File::assertFile(). The phar:// wrapper triggers deserialization of the PHAR metadata, which can lead to remote code execution if a suitable gadget chain is available in the application. The ftp:// and ssh2.sftp:// wrappers can be used for server-side request forgery. This issue has been fixed in versions 1.30.3, 2.1.15, 2.4.4, 3.10.4, and 5.6.0.

(As written by CVE List.)

## Affected

- PHPOffice PhpSpreadsheet: >= 4.0.0, <= 5.5.0; >= 3.3.0, <= 3.10.3; >= 2.2.0, <= 2.4.3; >= 2.0.0, <= 2.1.14; <= 1.30.2; before 1.30.3; from 2.0.0 before 2.1.15; from 2.2.0 before 2.4.4; from 3.3.0 before 3.10.4; from 4.0.0 before 5.6.0
- phpoffice/phpspreadsheet (Packagist): from 4.0.0 before 5.6.0; from 3.3.0 before 3.10.4; from 2.2.0 before 2.4.4; from 2.0.0 before 2.1.15; before 1.30.3

## Every score

- GitHub_M: CVSS:4.0 9.2 Critical `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-q4q6-r8wh-5cgh> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34084> (advisory)
- <https://github.com/PHPOffice/PhpSpreadsheet> (package)
- <https://www.php.net/manual/en/wrappers.php> (web)

## Sources

- CVE List: [CVE-2026-34084](https://www.cve.org/CVERecord?id=CVE-2026-34084), CVE Terms of Use, modified 2026-05-05
- GitHub Advisory Database: [GHSA-q4q6-r8wh-5cgh](https://github.com/advisories/GHSA-q4q6-r8wh-5cgh), CC-BY-4.0, modified 2026-05-08
- NVD: [CVE-2026-34084](https://nvd.nist.gov/vuln/detail/CVE-2026-34084), Public domain, modified 2026-07-24

---

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