Path traversalin code16 sharp.
No public exploit found; not on exploited lists.
Sharp is a content management framework built for Laravel as a package. Versions prior to 9.20.0 have a path traversal vulnerability in the FileUtil class. The application fails to sanitize file extensions properly, allowing path separators to be passed into the storage layer. In `src/Utils/FileUtil.php`, the `FileUtil::explodeExtension()` function extracts a file's extension by splitting the filename at the last dot. This issue has been patched in version 9.20.0 by properly sanitizing the extension using `pathinfo(PATHINFO_EXTENSION)` instead of `strrpos()`, alongside applying strict regex replacements to both the base name and the extension.
- Upgrade sharp to 9.20.0 or later.
- Upgrade code16/sharp (Packagist) to 9.20.0 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 23 Mar 2026CVE ID reserved by GitHub_M.
- 26 Mar 2026Published in the CVE List.
- 27 Mar 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other sharp vulnerabilities
Same weakness: Path traversal
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
Patchminder. CVE-2026-33686: Path traversal in code16 sharp. https://patchminder.com/cve/cve-2026-33686/ (accessed 5 December 2026).