CefSharp: `FolderSchemeHandlerFactory` path boundary check can expose files outside the configured root folder
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
Summary
CefSharp provides .NET bindings for the Chromium Embedded Framework for Windows Forms and Windows Presentation Foundation applications. Prior to version 148.0.90, CefSharp/SchemeHandler/FolderSchemeHandlerFactory.cs used filePath.StartsWith(rootFolder, StringComparison.OrdinalIgnoreCase) to decide whether a decoded and canonicalized request path remained inside rootFolder. That raw prefix test did not enforce a directory boundary, so a request such as ..%2fwww2/secret.txt could escape a configured www directory into a sibling www2 directory whose path shared the same string prefix. Applications that register FolderSchemeHandlerFactory for a custom scheme or an HTTP or HTTPS scheme can therefore serve local files outside the intended root when an attacker can cause the embedded browser to request the crafted URL. The issue affects both Unix-style paths such as /tmp/app/www2 and Windows paths such as C:\app\www2, and the fix appends a directory separator to the normalized root before comparison while rejecting null bytes and alternate data stream syntax. This issue is fixed in version 148.0.90.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| cefsharp | CefSharp | before 148.0.90 | 148.0.90 | Patch available | CNA |
| — | CefSharp.Common (NuGet) | before 148.0.90 | 148.0.90 | Patch available | GHSA-85jm-cwp2-mvpv |
- CefSharp Vendorcefsharp Affected before 148.0.90 Fixed in 148.0.90 Patch available CNA
- CefSharp.Common (NuGet) Vendor— Affected before 148.0.90 Fixed in 148.0.90 Patch available GHSA-85jm-cwp2-mvpv
Remediation
- Fix · CNA CefSharp (cefsharp) Fixed in 148.0.90
- Fix · GHSA-85jm-cwp2-mvpv CefSharp.Common (NuGet) Fixed in 148.0.90 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-48796
- 2026-10-03 Alias added: GHSA-85jm-cwp2-mvpv
References
More cefsharp vulnerabilities
- TI-2020-12621 Out-of-bounds write in Google Chrome KEVCVSS 3.1HIGH 8.8
Sources
- CVE-2026-48796 · CVE Program
- CVE-2026-48796 · NVD
- FIRST EPSS
- GHSA-85jm-cwp2-mvpv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences