Insufficient validation of untrusted input Linux Toolkit Theming (CVE-2026-12034)
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 10 days
Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A potential path-traversal vulnerability exists in how the GTK UI backend handles the XSETTINGS property representing gtk-icon-theme-name. A compromised GPU process on Linux/X11 could manipulate this property to point the icon search path to the user's download directory. Combined with a compromised renderer capable of downloading files to disk, an attacker could trigger on-demand SVG/image decoding via host libraries like librsvg inside the unsandboxed browser process.
Affected files:
ui/gtk/gtk_ui.ccui/qt/qt_shim.cc
Estimated timestamp from git blame: 2022-05-26
Detailed Writeup
There is a potential sandbox escape chain on Linux/X11 desktop configurations of Chromium where a compromised GPU process and compromised renderer process can cooperatively force the unsandboxed browser process to parse an attacker-controlled SVG/image file using host-level libraries (such as librsvg or gdk-pixbuf).
Root Cause Analysis
Chromium on Linux was previously patched to reject path-traversal characters in the XSETTINGS-delivered cursor theme name (see ui/base/x/x11_cursor_loader.cc:155 and IsValidCursorThemeName). However, the icon-theme property (Net/IconThemeName corresponding to gtk-icon-theme-name) receives no such validation in the browser process's GtkUi implementation.
In ui/gtk/gtk_ui.cc:347-349, the browser process subscribes directly to setting changes on the default GtkSettings instance:
GtkSettings* settings = gtk_settings_get_default();
connect(settings, "notify::gtk-icon-theme-name", &GtkUi::OnThemeChanged);
Because Chromium does not retrieve, validate, or sanitize the incoming theme name string before it is processed by GDK/GTK, a path-traversal payload (e.g., ../../../Downloads) is accepted. GTK's icon-theme loader builds the theme search paths via g_build_filename without relative-path checks, resolving the lookup path to ~/Downloads (relative to standard search directories such as ~/.local/share/icons).
Potential Exploitation Steps
Our tooling agent does not currently have the capability to run code to confirm this scenario, but the suggested/potential steps an attacker would follow are:
- Deliver Exploit Files: A compromised renderer triggers two automatic downloads to the user's standard
~/Downloadsdirectory without prompting:- An
index.themeconfiguration file defining a local icon directory (Directories=.). - A malicious image payload named
application-pdf.svgdesigned to trigger memory corruption in host SVG/image parsing libraries.
- An
- Hijack XSETTINGS: Under Ozone/X11, the sandboxed GPU process retains an active connection to the X server, cloned pre-sandbox in
ui/ozone/platform/x11/ozone_platform_x11.cc:306. A compromised GPU process sends X11 protocol messages over this socket to claim ownership of the_XSETTINGS_S0selection, then sets theNet/IconThemeNameproperty to../../../Downloads. - Trigger Update: GDK inside the unsandboxed browser process automatically receives the XSETTINGS change and updates
gtk-icon-theme-nameto../../../Downloadson the defaultGtkSettingsinstance. - Force On-Demand Parsing: The renderer triggers the download of a dummy PDF (e.g.,
x.pdf). On download completion,DownloadDisplayController::OnUpdatedItem()automatically opens the details bubble (chrome/browser/download/bubble/download_display_controller.cc:185), which callsDownloadBubbleRowView::StartLoadFileIcon()to resolve the icon on the browser process's UI thread. - Parser Sink Execution:
IconLoader::ReadIcon()invokesGtkUi::GetIconForContentType("application/pdf", ...)inui/gtk/gtk_ui.cc:495. GTK searches for the icon theme, evaluates~/Downloads/index.theme, and invokes the host'sgdk-pixbuf/librsvgparsing libraries on~/Downloads/application-pdf.svginside the unsandboxed browser process, potentially executing arbitrary code outside the sandbox.
Suggested Fix
To prevent this potential vulnerability, Chromium should implement a validation function for gtk-icon-theme-name (analogous to the existing cursor theme validation).
Specifically, before permitting GDK/GTK to process setting notifications or when querying setting values, Chromium should verify that the theme name is a valid basename, does not contain parent-directory references (..), and is not an absolute path. Alternatively, Chromium should sanitize GtkSettings inputs in GtkUi or intercept and reject path-traversing theme values.
Evaluated with Chrome root at commit: 87214e6721f6c34afd9181b80769a24c0c601c50
Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:
- If you are familiar with the severity guidelines, you may adjust the severity.
- If this is a false positive, and there's no work to be done, please close as WAI.
- If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.
Data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A high-severity path traversal bug in Google Chrome. Chrome VRP made it public on 11 June 2026 as CVE-2026-12034. Fixed in version 149.0.7827.114.
About Path traversal
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.