Security mailing lists by PureSourceCode

CVE-2019-12331

HIGH 8.8CVSS 3.1

XXE in PHPSpreadsheet due to incomplete fix for previous encoding issue

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.

Published
7 Nov 2019
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-611
Also known as
GHSA-vvwv-h69m-wg6f
Sources
NVDJSONOSV GHSA-vvwv-h69m-wg6fJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD phpoffice phpspreadsheet
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:*
< 1.8.0 1.8.0
OSV Packagist phpoffice/phpspreadsheet < 1.8.0 1.8.0
OSV Packagist phpoffice/phpexcel <= 1.8.2

References

History

  • 25 Nov 2026 20:31 UTC · NVD: first stored (published 7 Nov 2019)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 20 Nov 2019)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.