Created
October 14, 2026 17:10
-
-
Save pianomansam/be9069f159f167b4b628cd34f6fc329a to your computer and use it in GitHub Desktop.
SA-CORE-2026-014 Patch for Drupal 9.5.11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/modules/field_ui/src/Element/FieldUiTable.php b/modules/field_ui/src/Element/FieldUiTable.php | |
| --- a/modules/field_ui/src/Element/FieldUiTable.php | |
| +++ b/modules/field_ui/src/Element/FieldUiTable.php | |
| @@ -69,7 +69,10 @@ class FieldUiTable extends Table { | |
| unset($list[$name]); | |
| // Determine the region for the row. | |
| - $region_name = call_user_func_array($row['#region_callback'], [&$row]); | |
| + $region_name = $row['region']['#value'] ?? ''; | |
| + if (!isset($regions[$region_name])) { | |
| + $region_name = isset($regions['hidden']) ? 'hidden' : array_key_first($regions); | |
| + } | |
| // Add the element in the tree. | |
| // phpcs:ignore DrupalPractice.CodeAnalysis.VariableAnalysis.UnusedVariable |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.drupal.org/sa-core-2026-014
SA-CORE-2026-014 is a critical remote code execution flaw in core's Field UI module. Field UI's table builder (FieldUiTable::tablePreRender) is allowed to run because it's on Drupal's approved list of render callbacks. It then calls whatever each table row's #region_callback holds, passing the row, without any check. That skips the protection Drupal has had since 8.8, which only lets approved functions run as render callbacks. An attacker who can get an array of their own rendered as a Field UI table can therefore make the server run any PHP function. Core alone doesn't give attackers that ability, but contrib or custom code that turns request data into render arrays does, and the advisory says at least one known path needs no login. The fix in 10.6.19 stops calling the callback and reads the row's region value directly, falling back to the hidden region if the value isn't valid.