{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-84374","id":"CVE-2026-84374","title":"Laravel Excel writes exports outside the configured filesystem disk when given a caller-controlled path","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 ex","descriptionLong":"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.","published":"2026-09-01T21:28:30.355Z","updated":"2026-10-28T02:31:14.423378251Z","reserved":"2026-09-01T16:27:58.129Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["SpartnerNL Laravel-Excel"],"affectedProducts":[{"vendor":"SpartnerNL","product":"Laravel-Excel","defaultStatus":null,"versions":[{"version":">= 3.1.8, < 3.1.70","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"maatwebsite/excel","purl":"pkg:composer/maatwebsite/excel","ranges":[">=3.1.8 <3.1.70"],"fixed":["3.1.70"],"advisory":"GHSA-c7r6-vx3h-w5g2"}],"cwes":["CWE-22","CWE-73"],"aliases":["GHSA-c7r6-vx3h-w5g2"],"references":[{"url":"https://github.com/SpartnerNL/Laravel-Excel/security/advisories/GHSA-c7r6-vx3h-w5g2","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/SpartnerNL/Laravel-Excel/commit/b5cafdfcf7ec63924e83303763be8fcae340f70b","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/SpartnerNL/Laravel-Excel/releases/tag/3.1.70","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/84xxx/CVE-2026-84374.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-84374","tags":["advisory"]},{"url":"https://github.com/SpartnerNL/Laravel-Excel","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00842,"epssPercentile":0.58682,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-84374","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-84374","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-84374","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-c7r6-vx3h-w5g2","ok":true,"note":"GHSA-c7r6-vx3h-w5g2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-84374","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["laravel"],"critical":[],"attention":null}