# CVE-2026-33686: Sharp is Vulnerable to Path Traversal via Unsanitized Extension in FileUtil

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 50% of CVEs (2026-12-02)
- Published: 2026-03-25T20:01:04.000Z
- Modified: 2026-06-17T10:37:55.513Z
- Also known as: GHSA-9ffq-6457-8958
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- code16 sharp: < 9.20.0; before 9.20.0
- code16/sharp (Packagist): before 9.20.0

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/code16/sharp/security/advisories/GHSA-9ffq-6457-8958> (vendor-advisory, web)
- <https://github.com/code16/sharp/pull/715> (issue-tracking, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33686> (advisory)
- <https://github.com/code16/sharp> (package)

## Sources

- CVE List: [CVE-2026-33686](https://www.cve.org/CVERecord?id=CVE-2026-33686), CVE Terms of Use, modified 2026-03-27
- GitHub Advisory Database: [GHSA-9ffq-6457-8958](https://github.com/advisories/GHSA-9ffq-6457-8958), CC-BY-4.0, modified 2026-03-27
- NVD: [CVE-2026-33686](https://nvd.nist.gov/vuln/detail/CVE-2026-33686), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33686 · Whole record: https://cve.day/CVE-2026-33686.json · Rebuilt by cve.day 2026-11-25T22:59:17.339Z
