CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2019 · Phpoffice

CVE-2019-12331
Phpoffice Phpspreadsheet vulnerability

PHPOffice PhpSpreadsheet before 1.8.0 has an XXE issue. The XmlScanner decodes the sheet1.xml from an .xlsx to utf-8 if something else than UTF-8 is declared in the header. This was a security measurement to prevent CVE-2018-19277 but the fix is not sufficient. By double-encoding the the xml payload to utf-7 it is possible to bypass the check for the string ‚<!ENTITY‘ and thus allowing for an xml external entity processing (XXE) attack.

Affected products

Phpspreadsheet. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Phpoffice Phpspreadsheet runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Phpoffice products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.