Skip to main content

PHP CVE-2026-33687

HIGH
Unrestricted Upload of File with Dangerous Type (CWE-434)
2026-03-25 https://github.com/code16/sharp
8.8
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to Laravel admin panel
  2. Delivery
    Intercept file upload request
  3. Exploit
    Inject crafted validation_rule parameter
  4. Execution
    Bypass MIME type restrictions
  5. Persist
    Upload malicious file
  6. Impact
    Execute arbitrary code

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK

2 techniques across 2 tactics: Command and Control, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Authenticated user account required on Laravel application using code16/sharp admin panel package. Attacker intercepts file upload request to ApiFormUploadController and modifies validation_rule parameter to bypass MIME type and extension restrictions. No victim interaction needed.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) indicates this is a network-exploitable vulnerability with low attack complexity requiring only low-level authentication, making it relatively easy to exploit once an attacker has authenticated access to the Sharp admin panel. The vulnerability score of 8.8 is justified by the potential for complete system compromise through RCE. However, the real-world risk is moderated by several factors: exploitation requires authenticated access (PR:L), default Laravel configurations do not allow direct execution of uploaded PHP files unless a public disk is explicitly configured, and a patch is already available in version 9.20.0. Organizations using Sharp with custom public disk configurations face immediate critical risk, while those using default private storage configurations have reduced but still significant risk from potential storage access escalation. The availability of a proof-of-concept methodology in the advisory and the straightforward exploitation path (simple parameter manipulation) make this vulnerability readily exploitable by attackers with admin panel access.

Exploit ScenarioDerived

An attacker with authenticated access to a Sharp-enabled Laravel admin panel intercepts a legitimate file upload request using a proxy tool like Burp Suite. They modify the request to include validation_rule[]=file, completely bypassing the intended MIME type and extension restrictions. The attacker uploads a PHP webshell disguised with any extension. If the target application uses a public storage disk configuration (non-default), the attacker can directly access and execute the webshell via HTTP, achieving Remote Code Execution and full server compromise.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 25, 2026

The code16/sharp Laravel admin panel package contains a critical file upload vulnerability that allows authenticated users to bypass all file type restrictions by manipulating client-controlled validation rules. Affected versions prior to 9.20.0 accept a user-supplied validation_rule parameter that is passed directly to Laravel's validator, enabling attackers to upload arbitrary files including PHP webshells. With a CVSS score of 8.8, this vulnerability can lead to Remote Code Execution when the storage disk is publicly accessible, though default configurations provide some protection against direct execution.

RemediationAI

Upgrade code16/sharp to version 9.20.0 or later, which removes client-controlled validation rules and implements strict server-side upload validation as documented in pull request https://github.com/code16/sharp/pull/714. The patched release is available at https://github.com/code16/sharp/releases/tag/v9.20.0. As an interim workaround until patching is possible, ensure that the Laravel storage disk used for Sharp uploads is configured as strictly private and not publicly accessible, preventing direct execution of uploaded files. Review your Laravel filesystem configuration at config/filesystems.php to verify that Sharp uploads are directed to a private disk rather than the public disk. Additional defense-in-depth measures include implementing web application firewall rules to detect and block suspicious file upload patterns, restricting admin panel access to trusted IP ranges, and monitoring upload directories for unauthorized PHP files or webshells. Refer to Laravel's filesystem documentation at https://laravel.com/docs/13.x/filesystem for guidance on secure disk configuration.

Affected Packages

composer code16/sharp fix: 9.20.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability affects the code16/sharp Laravel admin panel package (pkg:composer/code16_sharp), a content management framework for Laravel applications. The flaw is classified as CWE-434 (Unrestricted Upload of File with Dangerous Type) and exists in the ApiFormUploadController.php file at line 24. The vulnerable code accepts a client-controlled validation_rule parameter during file uploads and passes it directly to Laravel's validator without server-side enforcement. By sending validation_rule[]=file in the upload request, attackers can override intended MIME type and file extension restrictions that should be enforced server-side. This represents a fundamental failure in input validation where trust is placed in client-supplied security controls rather than implementing defense-in-depth with mandatory server-side validation.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch released
Mar 25, 2026 - 20:02 nvd
Patch available
CVE Published
Mar 25, 2026 - 20:00 nvd
HIGH 8.8

DescriptionGitHub Advisory

Summary

The code16/sharp Laravel admin panel package contains a vulnerability in its file upload endpoint that allows authenticated users to bypass all file type restrictions.

Details

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. The vulnerable code is located in src/Http/Controllers/Api/ApiFormUploadController.php at line 24.

Impact

This vulnerability leads to several critical security risks:

Attackers can upload arbitrary files, including PHP webshells, to the server. For more details on the package, visit: https://github.com/code16/sharp

MIME type and extension validation can be bypassed entirely via client-controlled rules. Review the CWE definition here: https://cwe.mitre.org/data/definitions/434.html

If the storage disk is configured to be publicly accessible, this can lead to Remote Code Execution (RCE). See the vendor repository: https://github.com/code16/sharp

(Note: Under default configurations, executing uploaded PHP files directly is not possible unless a public disk configuration is in place.)

Patches

This issue has been addressed by removing the client-controlled validation rules and strictly defining upload rules server-side. The fix is available in pull request https://github.com/code16/sharp/pull/714.

Workarounds

  • Restrict Disk Access: 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. For more details on Laravel disk configurations, visit: https://laravel.com/docs/13.x/filesystem

Credits

Reported by zaurgsynv.

Executive ViewAI

Why It Matters

Our Laravel admin panel infrastructure is exposed to a critical file upload vulnerability (CVE-2026-33687) that could allow attackers to deploy malicious code and compromise system integrity. Any authenticated user, including those with limited privileges, can exploit this vulnerability to upload executable files and potentially gain full control of affected servers. Immediate patching is required to prevent active exploitation.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is unavailable: (1) Disable file upload functionality in the admin panel temporarily; (2) Implement network-level access controls restricting admin panel to trusted IP ranges; (3) Configure web server to prevent PHP execution in upload directories (.htaccess or nginx configuration); (4) Deploy WAF rules to block requests with suspicious validation_rule parameters; (5) Enable detailed logging and monitoring of file upload activities for incident detection.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Data Quality
4 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)GitHub Advisory

pkg:composer/code16_sharp

Related Vulnerabilities in code16/sharp Path Traversal and File Upload

View all 2

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy