Mittel

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

  • Veröffentlicht: 30.06.2026
  • Aktualisiert: 11.10.2026 11:23

Summary

FolderSchemeHandlerFactory was intended to restrict served files to a configured rootFolder, but its path validation used a raw string prefix check. A request could escape to a sibling directory whose full path starts with the root folder path, allowing files outside the configured root to be served.

Details

In affected versions, FolderSchemeHandlerFactory canonicalized rootFolder, decoded the request path, combined it with the root, and then allowed the file when:

csharp
filePath.StartsWith(rootFolder, StringComparison.OrdinalIgnoreCase)

This does not enforce a directory boundary. For example, /tmp/app/www2/secret.txt starts with /tmp/app/www, but www2 is a sibling of www, not a child. The same issue applies on Windows, for example C:\app\www2\secret.txt starts with C:\app\www.

The affected code was reviewed at commit b5fef3bb4bc58798c95170078c41de92cfe9066e, assembly version 147.0.100.

PoC

Set rootFolder to a directory named www and create a sibling directory named www2:

<temp>/www/index.html
<temp>/www2/secret.txt

Register FolderSchemeHandlerFactory for <temp>/www, then request:

https://folderschemehandlerfactory.test/..%2fwww2/secret.txt

The request path is URL-decoded to ../www2/secret.txt, combined with <temp>/www, and canonicalized to:

<temp>/www2/secret.txt

Because <temp>/www2/secret.txt starts with <temp>/www as a string prefix, the affected check passes and secret.txt is served from outside rootFolder.

Expected vulnerable result: HTTP 200 with the contents of <temp>/www2/secret.txt.

Expected fixed result: 404 or equivalent not-found response because the resolved file is outside rootFolder.

Impact

Applications using FolderSchemeHandlerFactory for a custom scheme or registered HTTP/HTTPS scheme may expose local files outside the intended served directory. This is most relevant when sensitive sibling directories share the root path prefix, such as www/www2, public/public_backup, or static/static-secrets.

An attacker must be able to cause the embedded browser to request URLs handled by the affected scheme registration.

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
.NET (NuGet) CefSharp.Common < 148.0.90 148.0.90

Verweise

CVSS-Wert 5.3/10
CVSS-Vektor
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
Schwäche (CWE)
CWE-22
Plattform
.NET (NuGet)
Paket
CefSharp.Common
Veröffentlicht
30.06.2026
Aktualisiert
11.10.2026 11:23

Quellen und Lizenzen

OSV / GitHub Advisory Database - GHSA-85jm-cwp2-mvpv - CC BY 4.0

Schwachstellenhistorie: CefSharp.Common

Alle veröffentlichten Schwachstellen dieses Pakets (.NET (NuGet)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Einträge insgesamt
8
Erste → letzte
10.2020 06.2026
Ohne Fix
0
In Angriffen ausgenutzt
5

Verteilung nach Schweregrad

  • Kritisch 1
  • Hoch 5
  • Mittel 2

Veröffentlichungen pro Jahr

  1. 2020: 4
  2. 2021: 0
  3. 2022: 1
  4. 2023: 2
  5. 2024: 0
  6. 2025: 0
  7. 2026: 1
  1. CefSharp.Common: `FolderSchemeHandlerFactory` path boundary check can expose files outside the configured root folder dieser Eintrag
    Mittel · 5.3 CVE-2026-48796 < 148.0.90 148.0.90
  2. Hoch ghsa-4c29-gfrp-g6x9 < 117.2.20 117.2.20
  3. Kritisch ghsa-j646-gj5p-p45g < 116.0.230 116.0.230
  4. Hoch · 8.8 In Angriffen ausgenutzt CVE-2022-0609 < 98.1.210 98.1.210
  5. Hoch · 8.8 In Angriffen ausgenutzt CVE-2020-16009 < 86.0.241 86.0.241
  6. Hoch In Angriffen ausgenutzt CVE-2020-16017 < 86.0.241 86.0.241
  7. Hoch In Angriffen ausgenutzt CVE-2020-16013 < 86.0.241 86.0.241
  8. Mittel · 6.5 In Angriffen ausgenutzt CVE-2020-15999 < 85.3.130 85.3.130

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.