{"id":"CVE-2026-33687","published":"2026-03-26T21:47:55Z","modified":"2026-03-27T20:28:53Z","title":"Sharp has Unrestricted File Upload via Client-Controlled Validation Rules","vendor":"code16","product":"sharp","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00798,"percentile":0.53188,"provenance":"source"},"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"references":[{"url":"https://github.com/code16/sharp/security/advisories/GHSA-fr76-5637-w3g9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/code16/sharp/pull/714","tags":["x_refsource_MISC"]},{"url":"https://github.com/code16/sharp/releases/tag/v9.20.0","tags":["x_refsource_MISC"]},{"url":"https://laravel.com/docs/13.x/filesystem","tags":["x_refsource_MISC"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":10.64},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"code16","affectedVersions":[{"vendor":"code16","product":"sharp","versions":["< 9.20.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-03-27T20:28:24.566534Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"code16/sharp","vulnerableRanges":["<9.20.0"],"patched":["9.20.0"],"from":["GHSA-fr76-5637-w3g9"],"provenance":"source"}],"summary":{"text":"The Sharp content management framework for Laravel contains an unrestricted file upload flaw in the ApiFormUploadController upload endpoint, where a client-controlled validation_rule parameter is passed directly into the Laravel validator without sufficient server-side enforcement. An authenticated user can exploit this by intercepting the request and supplying validation_rule[]=file, which bypasses all MIME type and file extension restrictions, with no network position or user interaction beyond normal authenticated use.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:41Z"},"euvd":{"id":"EUVD-2026-16448","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-61457","published":"2025-10-21","fixed":"9.7.0","kev":false},{"cve":"CVE-2025-62798","published":"2025-10-28","fixed":"9.11.1","kev":false,"link":{"from":"CVE-2025-62798","to":"CVE-2026-33687","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:code16/sharp","fromFixed":"9.11.1","toFixed":"9.20.0","daysApart":149}]}},{"cve":"CVE-2026-33686","published":"2026-03-26","fixed":"9.20.0","kev":false},{"cve":"CVE-2026-33687","published":"2026-03-26","fixed":"9.20.0","kev":false},{"cve":"CVE-2026-44692","published":"2026-06-10","fixed":"9.22.0","kev":false,"link":{"from":"CVE-2026-33687","to":"CVE-2026-44692","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:code16/sharp","fromFixed":"9.20.0","toFixed":"9.22.0","daysApart":76}]}},{"cve":"CVE-2026-53634","published":"2026-06-10","fixed":"9.22.3","kev":false},{"cve":"CVE-2026-61823","published":"2026-09-24","fixed":"9.22.5","kev":false}],"package":"Packagist:code16/sharp"}}