Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-84374— Laravel Excel writes exports outside the configured filesystem disk when given a caller-controlled path

Quick assessment

Affected
SpartnerNL Laravel-Excel
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Laravel Excel 为 Laravel 框架提供高性能的 Excel 导出与导入功能。 在 3.1.8 至 3.1.70 版本中, 中的 方法存在缺陷:通过 、 或 传入的、由调用者控制的 参数,会被 解析为进程当前工作目录下的路径,而非配置的文件系统磁盘(disk)。 如果该路径指向一个已存在且可写的文件, 会以 模式通过 打开该文件,并调用 进行数据复制。这一过程绕过了 Flysystem 的路径限制机制,使得能够控制导出路径的应用输入的攻击者,可以覆盖任意已存在的文件。 此外,由于使用 模式(不截断文

CVSS 7.5 · High
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-84374

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Laravel Excel writes exports outside the configured filesystem disk when given a caller-controlled path
Source: CVE Program / CVE List V5
Vulnerability Description
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() method resolves the caller-controlled $destination supplied through Excel::store(), $export->store(), or storeExcel() against the process working directory with realpath() instead of the configured filesystem disk. If the path names an existing writable file, Disk::copy() opens it with fopen() in rb+ mode and uses stream_copy_to_stream(), bypassing Flysystem path confinement and allowing an attacker whose application input controls the export path to overwrite arbitrary existing files with export content. The rb+ behavior creates a non-truncating overwrite and trailing bytes when the new export is shorter, and overwriting an executable PHP file can lead to remote code execution. This issue is fixed in version 3.1.70.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
SpartnerNL Laravel-Excel >= 3.1.8, < 3.1.70 -

II. Public POCs for CVE-2026-84374

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-84374

登录查看更多情报信息。

Other References for CVE-2026-84374 (3)

IV. Related Vulnerabilities

V. Comments for CVE-2026-84374

No comments yet


Leave a comment