CVE-2026-33687: Authenticated unrestricted file upload type restriction bypass in Sharp
- Vendor
- Code16
CVE-2026-33687 affects Sharp, a content management framework for Laravel, in versions prior to 9.20.0. The vulnerability is in the file upload endpoint implemented in ApiFormUploadController. Sharp accepted a client-controlled validation_rule parameter and passed it directly to Laravel's validator without adequate server-side enforcement. An authenticated attacker could intercept an upload request and replace the intended validation constraints with validation_rule[]=file, thereby bypassing all configured MIME type and file extension restrictions for uploaded content. The flaw is effectively an unrestricted file upload condition caused by trusting client-supplied validation rules.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an authenticated user to upload files of arbitrary type, including files that would normally be blocked by MIME type or extension validation. This can enable storage of dangerous or unauthorized content and may lead to further compromise depending on deployment configuration. The advisory notes that under default configurations uploaded PHP files are not directly executable, but if Sharp uploads are stored on a publicly accessible disk, the issue could enable direct access to attacker-supplied files and potentially code execution or broader compromise. The provided CVSS vector indicates high impact to confidentiality, integrity, and availability.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, ensure the storage disk used for Sharp uploads is strictly private and not publicly exposed. Avoid configurations that store uploads on a public disk, especially where uploaded server-executable content could be directly requested. As an additional defensive measure, enforce server-side allowlists for permitted file types and ensure uploaded content cannot be executed by the web server.
Remediation
Patch, then assume compromise.
Upgrade Sharp to version 9.20.0 or later. The fix removes client-controlled upload validation rules and enforces upload restrictions strictly on the server side. Any deployment running a version prior to 9.20.0 should be updated as the primary remediation.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-33687 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-33687 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-33687?
- As of Sep 25, 2026, Mallory has found no public exploit for CVE-2026-33687.
- Is there a patch for CVE-2026-33687?
- Upgrade Sharp to version 9.20.0 or later. The fix removes client-controlled upload validation rules and enforces upload restrictions strictly on the server side.
- What products are affected by CVE-2026-33687?
- Code16 Sharp.
- How severe is CVE-2026-33687?
- CVE-2026-33687 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 0.54% (46th percentile) as of Sep 25, 2026.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.