Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐘
🐘 Packagist
Not in CISA KEV
HIGH severity

GHSA-xcrg-29h7-h4cj

HIGHFix: PHPOffice/PhpSpreadsheet#780

GHSA-xcrg-29h7-h4cj is a high-severity (CVSS 8.8) CWE-91 vulnerability in phpoffice/phpspreadsheet. 2 public exploit references exist, so weaponization risk is real. O3 Security confirms whether GHSA-xcrg-29h7-h4cj is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.

XXE in PHPSpreadsheet due to encoding issue

Also known asCVE-2018-19277
Published
Nov 20, 2019
Updated
Mar 6, 2025
Affected
2 pkgs
Patched
2 / 2
Exploits
2 known
Exploitation data as of Mar 6, 2025 · OSV.dev, NVD, FIRST.org (EPSS)

Real-World Exposure

2 pkgs affected
🐘phpoffice/phpspreadsheet🐘phpoffice/phpexcel

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.

Description

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

Affected Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
🐘Packagistphpoffice/phpspreadsheetall versions1.5.1
🐘Packagistphpoffice/phpexcelall versions1.8.2
Exploits & PoCs
2

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

EDB-46050webappsphp

PhpSpreadsheet < 1.5.0 - XML External Entity (XXE)

by Alex Leahu · Nov 30, 2018

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for phpoffice/phpspreadsheet. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    Update phpoffice/phpspreadsheet to 1.5.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-xcrg-29h7-h4cj is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether GHSA-xcrg-29h7-h4cj is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to GHSA-xcrg-29h7-h4cj. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

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

Is GHSA-xcrg-29h7-h4cj in your dependencies?

O3 detects GHSA-xcrg-29h7-h4cj across Packagist dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.

GHSA-xcrg-29h7-h4cj: XXE in… | O3 Security