Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-33686: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in code16 sharp

0
High
VulnerabilityCVE-2026-33686cvecve-2026-33686cwe-22
Published: Thu Mar 26 2026 (03/26/2026, 21:54:25 UTC)
Source: CVE Database V5
Vendor/Project: code16
Product: sharp

Description

CVE-2026-33686 is a path traversal vulnerability in the Sharp content management framework for Laravel, affecting versions prior to 9. 20. 0. The vulnerability arises from improper sanitization of file extensions in the FileUtil class, allowing path separators to be passed into the storage layer. This can lead to unauthorized file access or modification. The issue is fixed in version 9. 20. 0 by changing the extension extraction method and applying strict sanitization. The vulnerability has a high severity with a CVSS score of 8. 8.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/03/2026, 13:42:32 UTC

Technical Analysis

Sharp versions before 9.20.0 contain a path traversal vulnerability (CWE-22) in the FileUtil class due to improper handling of file extensions. The function FileUtil::explodeExtension() used strrpos() to split filenames, which failed to sanitize path separators properly, enabling attackers to manipulate file paths. The vulnerability was patched in version 9.20.0 by switching to pathinfo(PATHINFO_EXTENSION) for extension extraction and enforcing strict regex sanitization on both the base name and extension to prevent traversal attacks.

Potential Impact

Successful exploitation of this vulnerability could allow an attacker with at least low privileges (PR:L) to perform path traversal attacks, potentially leading to full confidentiality, integrity, and availability compromise of the affected system. This includes unauthorized reading, modification, or deletion of files outside the intended storage directories.

Mitigation Recommendations

A fix is available in Sharp version 9.20.0, which properly sanitizes file extensions and prevents path traversal. Users should upgrade to version 9.20.0 or later to remediate this vulnerability. No additional vendor advisory was provided, so patch status beyond this version is not confirmed. Patch status is confirmed by the vendor's versioning and description.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-23T16:34:59.931Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69c5ac523c064ed76fd41c2b

Added to database: 3/26/2026, 9:59:46 PM

Last enriched: 4/3/2026, 1:42:32 PM

Last updated: 5/11/2026, 7:05:28 AM

Views: 45

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses