OSV 1.4.0 · github-reviewed · 修改于 2026-06-11 21:30
发布时间
2026-05-16 02:01
GitHub 审查时间
2026-05-16 02:01
NVD 发布时间
2026-06-11 06:16
源文件
advisories/github-reviewed/2026/05/GHSA-748w-hm6r-qc7v/GHSA-748w-hm6r-qc7v.json
Sharp exposes a generic download endpoint that authorizes access only to the supplied Sharp entity instance, but then reads the target storage disk and path from request parameters.
Because the requested storage object is not bound to the authorized entity instance, an authenticated Sharp user who can view one valid record may use that record as an authorization anchor to download unrelated disk-relative objects from configured Laravel Storage disks.
The confirmed impact is authenticated disclosure of unrelated objects from configured Laravel Storage disks. This issue does not imply arbitrary host filesystem access outside configured Laravel Storage disk roots.
An authenticated Sharp user with view access to at least one valid Sharp entity instance may be able to download unrelated files from configured Laravel Storage disks by supplying a different disk and path to the generic download endpoint.
Depending on the application, exposed files may include exports, backups, invoices, internal documents, uploads belonging to other records, tenant-specific data, or operational files stored on private application disks.
The attacker does not need authorization to the storage object being downloaded. They only need an authenticated Sharp session and view access to one valid entity instance that can be used as the authorization anchor.
An attacker must have:
The attacker does not need authorization to the storage object being downloaded.
GET /sharp/{globalFilter}/download/{entityKey}/{instanceId?}
After the fix, requests to the generic download endpoint without a valid signature are rejected. Modifying the disk, path, entityKey, or instanceId parameters of a Sharp-generated download URL invalidates the signature and prevents the modified request from being used to download another storage object.
If upgrading is not immediately possible, applications should restrict to the smallest possible set of disks required by Sharp downloads.
downloads.allowed_disksApplications should also avoid storing sensitive unrelated files on disks reachable by Sharp’s generic download endpoint, and should add application-level controls to ensure that requested files are bound to the authorized record.
Disk allowlisting reduces the reachable storage surface, but it does not fully fix the missing per-record file binding. Upgrading to a patched version is recommended.