CVE-2026-33686
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-03-26
- Last modified
- 2026-06-17
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Scored by
- security-advisories@github.com
- Probability of exploitation
-
0.5 %
higher than 43 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| code16 | sharp (Packagist) | < 9.20.0 | Affected |
| Code16 | Sharp | < 9.20.0 | Affected |
Weakness type
-
CWE-22: Improper Limitation of a Pathname to a Restricted Directory
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special ele…
References
- https://github.com/code16/sharp/pull/715
- https://github.com/code16/sharp/security/advisories/GHSA-9ffq-6457-8958
Related at Berigo
Articles
-
Nine advisories in one day, from brake computers to ship transponders
Same product
2026-08-25
CISA published seven new ICS advisories on 25 August 2026 and revised two older ones the same day. Five of the nine carry a top CVSS v3.1 score of 9.…
-
A fake secret makes the attacker's AI agent shut itself down
Same product
2026-08-19
In July 2026 Tracebit presented experiments where text planted in a decoy secret triggers the guardrails of attacking AI agents. The share of runs re…
-
CISA issues seven new ICS advisories, critical flaw in Siemens building automation
Same product
2026-07-28
Seven new advisories cover Siemens, MikroTik, igloohome and ABB. The most severe is a 9.8-rated vulnerability in the Desigo CC building automation pl…
-
Researcher sharpens criticism of Microsoft's handling of RedSun
Same product
2026-05-13
A researcher claims Microsoft quietly patched the RedSun Windows flaw without a CVE or advisory, and that YellowKey is less understood than assumed.
Services
-
Leadership Training in Information Security
Berigo trains boards and executive teams in information security as a management discipline. The aim is leaders who understand digital risk and decid…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.