Skip to content
Path traversal Advisory Advanced CVE-2026-11697

Insufficient validation of untrusted input in UI (CVE-2026-11697)

A compromised GPU process can hijack the XSETTINGS selection to supply a malicious cursor theme name containing directory traversal sequences. The browser process does not sanitise this name, allowing it to read and parse arbitrary cursor files outside the intended directories.

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 compromised GPU process can potentially exploit its cloned X11 connection to hijack the XSETTINGS selection and supply a malicious cursor theme name. Because the browser process does not sanitize this retrieved cursor theme name, it can lead to a directory traversal in the cursor loader. This allows the browser to traverse directories and parse arbitrary cursor files outside of the intended directories.

Affected files:

  • ui/base/x/x11_cursor_loader.cc
  • ui/gtk/gtk_ui.cc

Estimated timestamp from git blame: 2020-07-17

Description and Root Cause

On Linux Ozone/X11 platforms, the sandboxed GPU process retains a cloned, live X11 connection before sandbox lockdown to facilitate initialization. Specifically, in ui/ozone/platform/x11/ozone_platform_x11.cc:

C++
// Set up the X11 connection before the sandbox gets set up.
auto connection = x11::Connection::Get()->Clone();
connection->DetachFromSequence();
surface_factory_ozone_ = std::make_unique<X11SurfaceFactory>(std::move(connection));

Meanwhile, the browser process runs the GDK/GTK backend in-process, which monitors XSETTINGS properties (specifically the _XSETTINGS_SETTINGS property on the selection owner of _XSETTINGS_S0) to propagate system-wide settings. GtkUi registers for notifications on the gtk-cursor-theme-name setting (ui/gtk/gtk_ui.cc):

C++
connect(settings, "notify::gtk-cursor-theme-name", &GtkUi::OnCursorThemeNameChanged);

When a change is signaled, GtkUi::GetCursorThemeName retrieves the property string verbatim and propagates it without sanitization:

C++
std::string GtkUi::GetCursorThemeName() {
  gchar* theme = nullptr;
  g_object_get(gtk_settings_get_default(), "gtk-cursor-theme-name", &theme, nullptr);
  ...
  return theme_string;
}

Downstream in ui/base/x/x11_cursor_loader.cc, XCursorLoader reads and loads the cursor files on a background ThreadPool thread. In ReadCursorFromThemeImpl, it traverses search directories and appends the theme name directly using base::FilePath::Append:

C++
for (const auto& path : paths) {
  auto dir = CanonicalizePath(base::FilePath(path));
  if (dir.empty())
    continue;
  base::FilePath theme_dir = dir.Append(theme); // Path traversal vulnerability
  base::FilePath cursor_dir = theme_dir.Append(kCursorDir);

  std::string contents;
  if (base::ReadFileToString(cursor_dir.Append(cursor_name), &contents)) {
    ...
  }
}

Because base::FilePath::Append does not validate path components in release builds (it only contains a DCHECK(!IsPathAbsolute(appended)) which is stripped on release and does not block .. parent directory segments), a theme name containing .. sequences can successfully escape the standard icon directories. The browser process will then attempt to read and parse files at the resolved path via ParseCursorFile.

Potential Exploitation Scenario

Note: These are suggested/potential steps; we do not currently have a fully running proof of concept.

  1. An attacker gains code execution in the sandboxed GPU process.
  2. The attacker uses the cloned X11 connection to create an X11 window.
  3. The attacker writes a malicious XSETTINGS payload containing a path traversal string (e.g., ../../../../tmp/evil_theme) to the _XSETTINGS_SETTINGS property on the window.
  4. The attacker claims ownership of the _XSETTINGS_S0 selection and broadcasts a MANAGER ClientMessage to notify the root window.
  5. GDK in the browser process intercepts this, parses the payload in-process, and updates GtkSettings.
  6. The notify::gtk-cursor-theme-name signal fires, clearing the cached cursors in X11CursorFactory::ClearThemeCursors.
  7. Upon the next cursor state update, the browser process requests a cursor reload, invoking ReadCursorFromThemeImpl which appends the traversal path, resolves the absolute target location, reads the file, and parses it inside the browser process.

Suggested Remediation

To remediate this issue, the browser process should validate and sanitize any cursor theme name retrieved from GetCursorThemeName() or during the cursor loading process.

Specifically, you can reject theme names that contain references to parent directories or absolute paths, or enforce that the theme string consists of only alphanumeric characters, dashes, and underscores:

C++
// Verify that the theme name does not attempt directory traversal
base::FilePath theme_path(theme);
if (theme_path.ReferencesParent() || theme_path.IsAbsolute()) {
  return nullptr; // or fallback to "default"
}

Evaluated with Chrome root at commit: fb72408a8493c46bc75fae1c70d03daec96b3040


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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The browser process trusts the cursor theme name from XSETTINGS without validating it, and base::FilePath::Append does not block parent directory segments in release builds.

Impact

A compromised GPU process could read and parse arbitrary cursor files outside the intended directories in the browser process, though the report notes no fully running proof of concept exists.

What the attacker needed

Code execution in the sandboxed GPU process; Linux Ozone/X11 platform

The fix

The browser process should validate and sanitise cursor theme names, rejecting parent directory references or absolute paths, or restricting the name to alphanumeric characters, dashes, and underscores.

How it was found

  1. An attacker gains code execution in the sandboxed GPU process.
  2. The attacker uses the cloned X11 connection to create an X11 window.
  3. The attacker writes a malicious XSETTINGS payload containing a path traversal string to the _XSETTINGS_SETTINGS property on the window.
  4. The attacker claims ownership of the _XSETTINGS_S0 selection and broadcasts a MANAGER ClientMessage to notify the root window.
  5. GDK in the browser process intercepts this, parses the payload in-process, and updates GtkSettings.
  6. The notify::gtk-cursor-theme-name signal fires, clearing the cached cursors, and the next cursor reload reads and parses the file at the traversal path.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

On Linux, the browser uses a system setting to know which cursor theme to load. A compromised GPU process can change that setting to a value that includes '..' sequences, which tell the file system to go up a directory. The browser then follows those sequences and reads files from outside the normal cursor folders.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.