CVE-2026-33687 Details
Description
Sharp is a content management framework built for Laravel as a package. Versions prior to 9.20.0 contain a vulnerability in the file upload endpoint that allows authenticated users to bypass all file type restrictions. The upload endpoint within the `ApiFormUploadController` accepts a client-controlled `validation_rule` parameter. This parameter is directly passed into the Laravel validator without sufficient server-side enforcement. By intercepting the request and sending `validation_rule[]=file`, an attacker can completely bypass all MIME type and file extension restrictions. This issue has been addressed in version 9.20.0 by removing the client-controlled validation rules and strictly defining upload rules server-side. As a workaround, ensure that the storage disk used for Sharp uploads is strictly private. Under default configurations, an attacker cannot directly execute uploaded PHP files unless a public disk configuration is explicitly used.
A vulnerability exists in the Code16 Sharp content management framework for Laravel, specifically in versions prior to 9.20.0. The issue is located in the file upload endpoint of the ApiFormUploadController, where authenticated users can bypass file type restrictions. This is possible because the upload endpoint accepts a client-controlled validation_rule parameter, which is passed directly to the Laravel validator without adequate server-side validation. By manipulating the request to include validation_rule[]=file, an attacker can circumvent all MIME type and file extension restrictions. If the storage disk for Sharp uploads is publicly accessible, this could lead to remote code execution by allowing the upload of malicious PHP files that could be executed via a web server.
Users are advised to update to Code16 Sharp version 9.20.0 or later, where this vulnerability has been fixed by removing client-controlled validation rules and implementing strict server-side upload regulations. As an additional measure, ensure that the storage disk used for Sharp uploads is set to private.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/code16/sharp/pull/714 | [email protected] | Issue TrackingPatch |
| https://github.com/code16/sharp/releases/tag/v9.20.0 | [email protected] | Product |
| https://github.com/code16/sharp/security/advisories/GHSA-fr76-5637-w3g9 | [email protected] | Vendor Advisory |
| https://laravel.com/docs/13.x/filesystem | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-434 | Unrestricted Upload of File with Dangerous Type | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| code16 sharp | < 9.20.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 2, 2026 | Initial Analysis | [email protected] |
| Mar 26, 2026 | New CVE Received | [email protected] |