Skip to content
Heist/ feed
Back to feed
Medium

CefSharp: `FolderSchemeHandlerFactory` path boundary check can expose files outside the configured root folder

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-48796
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 09:37 UTC · Revision 1

Source evidence

CefSharp: `FolderSchemeHandlerFactory` path boundary check can expose files outside the configured root folder

core-osv · Original source

Published 18 Aug 2026, 21:17 UTC

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.

osv:CVE-2026-48796
Complete source record
{
  "id": "c09a1529d2f2f0aefe9d682b793539705e126578537da12c5ea5830e3ad200b7",
  "url": "https://osv.dev/vulnerability/CVE-2026-48796",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CefSharp: `FolderSchemeHandlerFactory` path boundary check can expose files outside the configured root folder",
    "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.",
    "evidence": "osv:CVE-2026-48796",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-48796",
      "aliases": [
        "CVE-2026-48796",
        "GHSA-85jm-cwp2-mvpv"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cefsharp/cefsharp",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "74ed58f0a05a93d7e671a98af2f5137a094c052b"
                },
                {
                  "fixed": "3475c7ef14119f67ec3720866bb3e4b1c6c68632"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "148.0.90"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "3475c7ef14119f67ec3720866bb3e4b1c6c68632"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "74ed58f0a05a93d7e671a98af2f5137a094c052b"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v148.0.90"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v138.0.170",
            "v79.1.310-pre",
            "v71.0.0-pre01",
            "v69.0.0-pre01",
            "v63.0.0-pre01",
            "v57.0.0-pre01",
            "v53.0.0-pre01",
            "v51.0.0-pre01",
            "v47.0.0-pre01",
            "v45.0.0-pre01",
            "v43.0.0-pre01",
            "v37.0.0",
            "v39.0.0-pre03",
            "v39.0.0-pre02",
            "v37.0.0-pre02",
            "v37.0.0-pre01",
            "v33.0.2",
            "v33.0.0",
            "v31.0.0-pre1",
            "v3.29.0-pre.0",
            "v3.27.0-a0",
            "v1.25.2-perlun.0",
            "v1.25.1-perlun.0",
            "v1.25.0",
            "v0.12",
            "v0.11",
            "v0.10",
            "v0.9",
            "v0.3",
            "v0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-48796.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.433624918Z",
      "provider": "osv",
      "references": [
        "https://github.com/cefsharp/CefSharp/releases/tag/v148.0.90",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48796.json",
        "https://github.com/cefsharp/CefSharp/security/advisories/GHSA-85jm-cwp2-mvpv",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-48796",
        "https://github.com/cefsharp/CefSharp/commit/3475c7ef14119f67ec3720866bb3e4b1c6c68632"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48796.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-48796",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 518898,
  "published_at": "2026-08-18T21:17:16.861+00:00"
}