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

Goal: 1000 CNY · Raised: 1359 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.

Spartner Laravel Excel是Spartner组织的一款Excel导入导出组件。 Spartner Laravel Excel 3.1.8版本至3.1.70之前版本存在安全漏洞,该漏洞源于Disk::copy()方法在解析目标路径时使用realpath()基于进程工作目录解析,而非配置的文件系统磁盘,导致绕过Flysystem路径限制,攻击者可覆盖任意现有文件,若覆盖可执行PHP文件可导致远程代码执行。

CVSS 7.5 · High EPSS 0.84% · P58

Possible ATT&CK Techniques 1 AI

T1059.001 · PowerShell

Affected Version Matrix 1

VendorProduct Version RangeStatus
SpartnerNL Laravel-Excel >= 3.1.8, < 3.1.70 affected
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
Vulnerability Title
Spartner Laravel Excel 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Spartner Laravel Excel是Spartner组织的一款Excel导入导出组件。 Spartner Laravel Excel 3.1.8版本至3.1.70之前版本存在安全漏洞,该漏洞源于Disk::copy()方法在解析目标路径时使用realpath()基于进程工作目录解析,而非配置的文件系统磁盘,导致绕过Flysystem路径限制,攻击者可覆盖任意现有文件,若覆盖可执行PHP文件可导致远程代码执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

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

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-84374 (1)

Vendor Advisories for CVE-2026-84374 (1)

Vendor Pages for CVE-2026-84374 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-84374

No comments yet


Leave a comment