PhpSpreadsheet vulnerable to SSRF when reading and displaying a processed HTML document in the browser
PHPOffice PhpSpreadsheet
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| phpoffice/phpspreadsheet Packagist |
|
|
PHPOffice PhpSpreadsheet
| Product | Affected | Fixed in |
|---|---|---|
| phpoffice/phpspreadsheet Packagist |
|
|
3.10.05.0.0PhpOffice/PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Prior to versions 1.30.0, 2.1.12, 2.4.0, 3.10.0, and 5.0.0, SSRF can occur when a processed HTML document is read and displayed in the browser. The vulnerability lies in the setPath method of the PhpOffice\PhpSpreadsheet\Worksheet\Drawing class, where a crafted string from the user is passed to the HTML reader. This issue has been patched in versions 1.30.0, 2.1.12, 2.4.0, 3.10.0, and 5.0.0.
From the CVE record · GitHub_M
PhpSpreadsheet’s HTML reader can pass a crafted user-supplied string to Drawing’s setPath method. This can cause server-side request forgery when the processed HTML document is read and displayed in a browser. The input does not specify whether authentication is required.
Teams using Packagist package phpoffice/phpspreadsheet should check installations below 1.30.0, from 2.0.0 to below 2.1.12, from 2.2.0 to below 2.4.0, from 3.0.0 to below 3.10.0, or from 4.0.0 to below 5.0.0.