Skip to content

CVE-2026-33687 Sharp has Unrestricted File Upload via Client-Controlled Validation Rules

HighCVSS 8.8 EPSS 0.80%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
PHPLaravel

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
code16/sharp < 9.20.0; = < 9.20.0 9.20.0 Fixed
code16/sharp(Packagist) < 9.20.0; = 7.0.0-alpha.1; = 7.7.2; = 7.27.0 +307 more 9.20.0 Fixed

Affected products

ProductAffected versionsFixed in
code16/sharp(Packagist) < 9.20.0 9.20.0
code16/sharp(Packagist) = 7.0.0-alpha.1 No fix listed
code16/sharp(Packagist) = 7.27.0 No fix listed
code16/sharp(Packagist) = 7.7.2 No fix listed
code16/sharp(Packagist) = v4.0-BETA1 No fix listed
code16/sharp(Packagist) = v4.0-BETA2 No fix listed
code16/sharp(Packagist) = v4.0-BETA3 No fix listed
code16/sharp(Packagist) = v4.0-BETA4 No fix listed
code16/sharp(Packagist) = v4.0-BETA5 No fix listed
code16/sharp(Packagist) = v4.0-BETA6 No fix listed
code16/sharp(Packagist) = v4.0.0 No fix listed
code16/sharp(Packagist) = v4.0.1 No fix listed
code16/sharp(Packagist) = v4.0.10 No fix listed
code16/sharp(Packagist) = v4.0.11 No fix listed
code16/sharp(Packagist) = v4.0.12 No fix listed
code16/sharp(Packagist) = v4.0.13 No fix listed
code16/sharp(Packagist) = v4.0.14 No fix listed
code16/sharp(Packagist) = v4.0.15 No fix listed
code16/sharp(Packagist) = v4.0.16 No fix listed
code16/sharp(Packagist) = v4.0.17 No fix listed
code16/sharp(Packagist) = v4.0.18 No fix listed
code16/sharp(Packagist) = v4.0.19 No fix listed
code16/sharp(Packagist) = v4.0.2 No fix listed
code16/sharp(Packagist) = v4.0.20 No fix listed
code16/sharp(Packagist) = v4.0.21 No fix listed
Show 175 more
ProductAffected versionsFixed in
code16/sharp(Packagist) = v4.0.3 No fix listed
code16/sharp(Packagist) = v4.0.4 No fix listed
code16/sharp(Packagist) = v4.0.5 No fix listed
code16/sharp(Packagist) = v4.0.6 No fix listed
code16/sharp(Packagist) = v4.0.7 No fix listed
code16/sharp(Packagist) = v4.0.8 No fix listed
code16/sharp(Packagist) = v4.0.9 No fix listed
code16/sharp(Packagist) = v4.1.0 No fix listed
code16/sharp(Packagist) = v4.1.1 No fix listed
code16/sharp(Packagist) = v4.1.10 No fix listed
code16/sharp(Packagist) = v4.1.11 No fix listed
code16/sharp(Packagist) = v4.1.12 No fix listed
code16/sharp(Packagist) = v4.1.13 No fix listed
code16/sharp(Packagist) = v4.1.14 No fix listed
code16/sharp(Packagist) = v4.1.15 No fix listed
code16/sharp(Packagist) = v4.1.16 No fix listed
code16/sharp(Packagist) = v4.1.17 No fix listed
code16/sharp(Packagist) = v4.1.18 No fix listed
code16/sharp(Packagist) = v4.1.19 No fix listed
code16/sharp(Packagist) = v4.1.2 No fix listed
code16/sharp(Packagist) = v4.1.20 No fix listed
code16/sharp(Packagist) = v4.1.21 No fix listed
code16/sharp(Packagist) = v4.1.22 No fix listed
code16/sharp(Packagist) = v4.1.23 No fix listed
code16/sharp(Packagist) = v4.1.24 No fix listed
code16/sharp(Packagist) = v4.1.25 No fix listed
code16/sharp(Packagist) = v4.1.3 No fix listed
code16/sharp(Packagist) = v4.1.4 No fix listed
code16/sharp(Packagist) = v4.1.5 No fix listed
code16/sharp(Packagist) = v4.1.6 No fix listed
code16/sharp(Packagist) = v4.1.7 No fix listed
code16/sharp(Packagist) = v4.1.8 No fix listed
code16/sharp(Packagist) = v4.1.9 No fix listed
code16/sharp(Packagist) = v4.2.0 No fix listed
code16/sharp(Packagist) = v4.2.1 No fix listed
code16/sharp(Packagist) = v4.2.2 No fix listed
code16/sharp(Packagist) = v4.2.3 No fix listed
code16/sharp(Packagist) = v4.2.4 No fix listed
code16/sharp(Packagist) = v4.2.5 No fix listed
code16/sharp(Packagist) = v4.2.6 No fix listed
code16/sharp(Packagist) = v5.0.0 No fix listed
code16/sharp(Packagist) = v5.0.0-alpha.1 No fix listed
code16/sharp(Packagist) = v5.0.0-alpha.10 No fix listed
code16/sharp(Packagist) = v5.0.0-alpha.2 No fix listed
code16/sharp(Packagist) = v5.0.0-alpha.3 No fix listed
code16/sharp(Packagist) = v5.0.0-alpha.4 No fix listed
code16/sharp(Packagist) = v5.0.0-alpha.5 No fix listed
code16/sharp(Packagist) = v5.0.0-alpha.6 No fix listed
code16/sharp(Packagist) = v5.0.0-alpha.7 No fix listed
code16/sharp(Packagist) = v5.0.0-alpha.8 No fix listed
code16/sharp(Packagist) = v5.0.0-alpha.9 No fix listed
code16/sharp(Packagist) = v5.0.1 No fix listed
code16/sharp(Packagist) = v5.1.0 No fix listed
code16/sharp(Packagist) = v5.1.1 No fix listed
code16/sharp(Packagist) = v5.1.2 No fix listed
code16/sharp(Packagist) = v5.2.0 No fix listed
code16/sharp(Packagist) = v5.3.0 No fix listed
code16/sharp(Packagist) = v5.3.1 No fix listed
code16/sharp(Packagist) = v5.3.2 No fix listed
code16/sharp(Packagist) = v5.3.3 No fix listed
code16/sharp(Packagist) = v5.3.4 No fix listed
code16/sharp(Packagist) = v5.3.5 No fix listed
code16/sharp(Packagist) = v5.4.0 No fix listed
code16/sharp(Packagist) = v5.4.1 No fix listed
code16/sharp(Packagist) = v5.4.2 No fix listed
code16/sharp(Packagist) = v5.4.3 No fix listed
code16/sharp(Packagist) = v5.4.4 No fix listed
code16/sharp(Packagist) = v5.4.5 No fix listed
code16/sharp(Packagist) = v5.4.6 No fix listed
code16/sharp(Packagist) = v6.0.0 No fix listed
code16/sharp(Packagist) = v6.0.0-alpha.1 No fix listed
code16/sharp(Packagist) = v6.0.0-alpha.2 No fix listed
code16/sharp(Packagist) = v6.0.0-alpha.3 No fix listed
code16/sharp(Packagist) = v6.0.0-alpha.4 No fix listed
code16/sharp(Packagist) = v6.0.0-alpha.5 No fix listed
code16/sharp(Packagist) = v6.0.0-alpha.6 No fix listed
code16/sharp(Packagist) = v6.0.0-alpha.7 No fix listed
code16/sharp(Packagist) = v6.0.0-beta.1 No fix listed
code16/sharp(Packagist) = v6.0.0-beta.2 No fix listed
code16/sharp(Packagist) = v6.0.0-beta.3 No fix listed
code16/sharp(Packagist) = v6.0.1 No fix listed
code16/sharp(Packagist) = v6.1.0 No fix listed
code16/sharp(Packagist) = v6.1.1 No fix listed
code16/sharp(Packagist) = v6.1.2 No fix listed
code16/sharp(Packagist) = v6.1.3 No fix listed
code16/sharp(Packagist) = v6.1.4 No fix listed
code16/sharp(Packagist) = v6.1.5 No fix listed
code16/sharp(Packagist) = v6.2.0 No fix listed
code16/sharp(Packagist) = v6.3.0 No fix listed
code16/sharp(Packagist) = v6.3.1 No fix listed
code16/sharp(Packagist) = v6.3.2 No fix listed
code16/sharp(Packagist) = v6.3.3 No fix listed
code16/sharp(Packagist) = v6.4.0 No fix listed
code16/sharp(Packagist) = v6.4.1 No fix listed
code16/sharp(Packagist) = v6.5.0 No fix listed
code16/sharp(Packagist) = v6.5.1 No fix listed
code16/sharp(Packagist) = v6.5.2 No fix listed
code16/sharp(Packagist) = v6.5.3 No fix listed
code16/sharp(Packagist) = v6.5.4 No fix listed
code16/sharp(Packagist) = v6.5.5 No fix listed
code16/sharp(Packagist) = v7.0.0 No fix listed
code16/sharp(Packagist) = v7.0.0-beta.1 No fix listed
code16/sharp(Packagist) = v7.0.0-beta.2 No fix listed
code16/sharp(Packagist) = v7.0.0-beta.3 No fix listed
code16/sharp(Packagist) = v7.0.0-beta.4 No fix listed
code16/sharp(Packagist) = v7.0.0-beta.5 No fix listed
code16/sharp(Packagist) = v7.0.0-beta.6 No fix listed
code16/sharp(Packagist) = v7.0.1 No fix listed
code16/sharp(Packagist) = v7.0.2 No fix listed
code16/sharp(Packagist) = v7.1.0 No fix listed
code16/sharp(Packagist) = v7.10.0 No fix listed
code16/sharp(Packagist) = v7.11.0 No fix listed
code16/sharp(Packagist) = v7.12.0 No fix listed
code16/sharp(Packagist) = v7.13.0 No fix listed
code16/sharp(Packagist) = v7.14.0 No fix listed
code16/sharp(Packagist) = v7.15.0 No fix listed
code16/sharp(Packagist) = v7.16.0 No fix listed
code16/sharp(Packagist) = v7.17.0 No fix listed
code16/sharp(Packagist) = v7.17.1 No fix listed
code16/sharp(Packagist) = v7.17.2 No fix listed
code16/sharp(Packagist) = v7.17.3 No fix listed
code16/sharp(Packagist) = v7.18.0 No fix listed
code16/sharp(Packagist) = v7.19.0 No fix listed
code16/sharp(Packagist) = v7.19.1 No fix listed
code16/sharp(Packagist) = v7.2.0 No fix listed
code16/sharp(Packagist) = v7.2.1 No fix listed
code16/sharp(Packagist) = v7.2.2 No fix listed
code16/sharp(Packagist) = v7.2.3 No fix listed
code16/sharp(Packagist) = v7.2.4 No fix listed
code16/sharp(Packagist) = v7.2.5 No fix listed
code16/sharp(Packagist) = v7.20.0 No fix listed
code16/sharp(Packagist) = v7.21.0 No fix listed
code16/sharp(Packagist) = v7.22.0 No fix listed
code16/sharp(Packagist) = v7.23.0 No fix listed
code16/sharp(Packagist) = v7.23.1 No fix listed
code16/sharp(Packagist) = v7.23.2 No fix listed
code16/sharp(Packagist) = v7.24.0 No fix listed
code16/sharp(Packagist) = v7.24.1 No fix listed
code16/sharp(Packagist) = v7.25.0 No fix listed
code16/sharp(Packagist) = v7.25.1 No fix listed
code16/sharp(Packagist) = v7.25.2 No fix listed
code16/sharp(Packagist) = v7.26.0 No fix listed
code16/sharp(Packagist) = v7.26.1 No fix listed
code16/sharp(Packagist) = v7.26.2 No fix listed
code16/sharp(Packagist) = v7.27.1 No fix listed
code16/sharp(Packagist) = v7.28.0 No fix listed
code16/sharp(Packagist) = v7.29.0 No fix listed
code16/sharp(Packagist) = v7.29.1 No fix listed
code16/sharp(Packagist) = v7.29.2 No fix listed
code16/sharp(Packagist) = v7.29.3 No fix listed
code16/sharp(Packagist) = v7.29.4 No fix listed
code16/sharp(Packagist) = v7.29.5 No fix listed
code16/sharp(Packagist) = v7.29.6 No fix listed
code16/sharp(Packagist) = v7.29.7 No fix listed
code16/sharp(Packagist) = v7.3.0 No fix listed
code16/sharp(Packagist) = v7.30.0 No fix listed
code16/sharp(Packagist) = v7.4.0 No fix listed
code16/sharp(Packagist) = v7.5.0 No fix listed
code16/sharp(Packagist) = v7.5.1 No fix listed
code16/sharp(Packagist) = v7.5.2 No fix listed
code16/sharp(Packagist) = v7.6.0 No fix listed
code16/sharp(Packagist) = v7.7.0 No fix listed
code16/sharp(Packagist) = v7.7.1 No fix listed
code16/sharp(Packagist) = v7.8.0 No fix listed
code16/sharp(Packagist) = v7.9.0 No fix listed
code16/sharp(Packagist) = v8.0.0 No fix listed
code16/sharp(Packagist) = v8.0.1 No fix listed
code16/sharp(Packagist) = v8.0.2 No fix listed
code16/sharp(Packagist) = v8.0.3 No fix listed
code16/sharp(Packagist) = v8.0.4 No fix listed
code16/sharp(Packagist) = v8.0.5 No fix listed
code16/sharp(Packagist) = v8.0.6 No fix listed
code16/sharp(Packagist) = v8.0.7 No fix listed
code16/sharp(Packagist) = v8.1.0 No fix listed
code16/sharp(Packagist) = v8.1.1 No fix listed

References