Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. phpoffice/phpexcel
  4. ›
  5. CVE-2018-19277

CVE-2018-19277: XXE in PHPSpreadsheet due to encoding issue

November 20, 2019 (updated March 6, 2025)

securityScan() in PHPOffice PhpSpreadsheet through 1.5.0 allows a bypass of protection mechanisms for XXE via UTF-7 encoding in a .xlsx file

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/phpoffice/phpspreadsheet/CVE-2018-19277.yaml
  • github.com/MewesK/TwigSpreadsheetBundle/issues/18
  • github.com/PHPOffice/PHPExcel/commit/2b601574975acfb9d4378a788ed5f2b747958095
  • github.com/PHPOffice/PHPExcel/commits/1.8.2
  • github.com/PHPOffice/PhpSpreadsheet
  • github.com/PHPOffice/PhpSpreadsheet/commit/0f8f071e24ee8b114d894ac172f77dc250e5bfa4
  • github.com/PHPOffice/PhpSpreadsheet/issues/771
  • github.com/PHPOffice/PhpSpreadsheet/pull/780
  • github.com/PHPOffice/PhpSpreadsheet/releases/tag/1.5.1
  • github.com/advisories/GHSA-xcrg-29h7-h4cj
  • nvd.nist.gov/vuln/detail/CVE-2018-19277
  • www.bishopfox.com/news/2018/11/phpoffice-versions
  • www.drupal.org/sa-contrib-2021-043

Code Behaviors & Features

Detect and mitigate CVE-2018-19277 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.8.2

Fixed versions

  • 1.8.2

Solution

Upgrade to version 1.8.2 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-91: XML Injection (aka Blind XPath Injection)

Source file

packagist/phpoffice/phpexcel/CVE-2018-19277.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:50 +0000.