CVE-2026-33686: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in code16 sharp
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 Analysis
Technical Summary
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.
CVE-2026-33686: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in code16 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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.