Read the docs
TI-2026-26066 Aliases CVE-2026-33686GHSA-9ffq-6457-8958

Sharp is Vulnerable to Path Traversal via Unsanitized Extension in FileUtil

Priority MEDIUM 41CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00557 46th percentileScored 2026-11-07
Fix Fixed sharp (code16): 9.20.0code16/sharp (Packagist): 9.20.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
code16sharpbefore 9.20.09.20.0Patch availableCNA
—code16/sharp (Packagist)before 9.20.09.20.0Patch availableGHSA-9ffq-6457-8958
  • sharp Vendorcode16 Affected before 9.20.0 Fixed in 9.20.0 Patch available CNA
  • code16/sharp (Packagist) Vendor— Affected before 9.20.0 Fixed in 9.20.0 Patch available GHSA-9ffq-6457-8958

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:code16:sharp:*:*:*:*:*:*:*:*before 9.20.0Vulnerablecode16
  • cpe:2.3:a:code16:sharp:*:*:*:*:*:*:*:* Versions before 9.20.0 Vulnerable ·code16

Remediation

  • Fix · CNA sharp (code16) Fixed in 9.20.0
  • Fix · GHSA-9ffq-6457-8958 code16/sharp (Packagist) Fixed in 9.20.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-33686
  2. 2026-10-03 Alias added: GHSA-9ffq-6457-8958

References

  • TI-2026-26067 Sharp has Unrestricted File Upload via Client-Controlled Validation Rules CVSS 3.1HIGH 8.8

Sources