


Perceptive Security
SOC/SIEM Consultancy

Laravel Excel provides supercharged Excel exports and imports in Laravel. From 3.1.8 until 3.1.70, in src/Files/Disk.php the Maatwebsite\Excel\Files\Disk::copy(…
Published:
1 September 2026 at 00:00:00
Alert date:
2 September 2026 at 01:02:12
Source:
nvd.nist.gov
Web Technologies, Supply Chain & Dependencies
A path traversal vulnerability exists in Laravel Excel (Maatwebsite/Laravel-Excel) versions 3.1.8 through 3.1.69 in the Disk::copy() method within src/Files/Disk.php. The method resolves caller-controlled destination paths using realpath() against the process working directory rather than the configured Flysystem filesystem disk, bypassing path confinement. If the resolved path points to an existing writable file, the method opens it with fopen() in rb+ mode and overwrites it using stream_copy_to_stream(). This allows attackers who control export destination paths to overwrite arbitrary files on the server. The rb+ mode results in non-truncating overwrites, leaving trailing bytes when the new content is shorter. Overwriting executable PHP files can result in remote code execution. The vulnerability is exploitable via Excel::store(), $export->store(), or storeExcel() methods. The issue has been patched in version 3.1.70.
Technical details
Mitigation steps:
Affected products:
Laravel Excel (Maatwebsite/Laravel-Excel) 3.1.8 - 3.1.69
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-84374
https://github.com/SpartnerNL/Laravel-Excel/commit/b5cafdfcf7ec63924e83303763be8fcae340f70b
https://github.com/SpartnerNL/Laravel-Excel/releases/tag/3.1.70
https://github.com/SpartnerNL/Laravel-Excel/security/advisories/GHSA-c7r6-vx3h-w5g2
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
