Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-33687: CWE-434: Unrestricted Upload of File with Dangerous Type in code16 sharp

0
High
VulnerabilityCVE-2026-33687cvecve-2026-33687cwe-434
Published: Thu Mar 26 2026 (03/26/2026, 21:47:55 UTC)
Source: CVE Database V5
Vendor/Project: code16
Product: sharp

Description

CVE-2026-33687 is a high-severity vulnerability in the Sharp content management framework for Laravel versions prior to 9. 20. 0. It allows authenticated users to bypass file type restrictions on the upload endpoint by manipulating the client-controlled validation_rule parameter. This leads to unrestricted upload of potentially dangerous files, risking confidentiality, integrity, and availability. The vulnerability arises because the validation_rule parameter is passed directly to Laravel's validator without sufficient server-side enforcement. The issue is fixed in version 9. 20. 0 by removing client control over validation rules and enforcing strict server-side upload policies. Under default configurations, direct execution of uploaded PHP files is prevented unless a public storage disk is used.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/26/2026, 22:15:03 UTC

Technical Analysis

CVE-2026-33687 affects the Sharp content management framework, a Laravel package, in versions before 9.20.0. The vulnerability is due to improper validation of file uploads in the ApiFormUploadController. Specifically, the endpoint accepts a client-controlled parameter named validation_rule, which is passed directly into Laravel's validation mechanism. Attackers with authentication can manipulate this parameter by sending validation_rule[]=file, effectively bypassing all MIME type and file extension restrictions intended to limit uploads to safe file types. This unrestricted file upload vulnerability (CWE-434) allows attackers to upload malicious files, including executable scripts or web shells, potentially leading to full system compromise. The vulnerability does not require user interaction beyond authentication and can be exploited remotely over the network. The Sharp framework fixed this issue in version 9.20.0 by removing the client-controlled validation_rule parameter and enforcing strict server-side validation rules. By default, the framework stores uploaded files on a private disk, preventing direct execution of uploaded PHP files. However, if a public disk configuration is used, attackers could execute malicious code. No known exploits are reported in the wild yet, but the vulnerability's characteristics make it a significant risk for affected systems.

Potential Impact

The impact of CVE-2026-33687 is substantial for organizations using vulnerable versions of Sharp. Successful exploitation can lead to arbitrary file uploads, enabling attackers to deploy malicious payloads such as web shells or malware. This compromises confidentiality by exposing sensitive data, integrity by allowing unauthorized modification or replacement of files, and availability by potentially disrupting services or executing denial-of-service attacks. Since the vulnerability requires only authenticated access, insider threats or compromised credentials can facilitate exploitation. The ability to bypass file type restrictions increases the attack surface and risk of remote code execution, especially if the uploaded files are stored on publicly accessible disks. Organizations relying on Sharp for content management in Laravel environments face risks of data breaches, system takeover, and reputational damage if this vulnerability is exploited.

Mitigation Recommendations

To mitigate CVE-2026-33687, organizations should upgrade Sharp to version 9.20.0 or later, where the vulnerability is fully addressed by removing client-controlled validation rules and enforcing strict server-side validation. Until upgrading is possible, ensure that the storage disk used for file uploads is configured as strictly private to prevent direct access or execution of uploaded files. Review and harden file upload policies by disabling any client control over validation parameters. Implement strong authentication and monitor for unusual upload activity to detect potential exploitation attempts. Additionally, apply web application firewalls (WAFs) with rules to detect and block suspicious file uploads. Regularly audit and restrict permissions on upload directories to minimize the impact of malicious files. Finally, conduct security awareness training to reduce risks from compromised credentials that could enable exploitation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-23T16:34:59.932Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69c5ac523c064ed76fd41c2f

Added to database: 3/26/2026, 9:59:46 PM

Last enriched: 3/26/2026, 10:15:03 PM

Last updated: 3/27/2026, 5:26:41 AM

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses