
Read-only detector for CVE-2026-108097 (SA-CORE-2026-014) in Drupal core Field UI: fingerprints hosts, compares core versions, checks field_ui state, and reports remediation verdicts.
Author: https://github.com/FurkanKAYAPINAR/
A defensive, non-exploit detector for CVE-2026-108097 (advisory SA-CORE-2026-014), a critical remote code execution flaw in the Field UI module of Drupal core.
This repository contains detection and remediation tooling only. It does not contain a weaponized exploit or proof-of-concept for achieving code execution. See Scope & ethics.
The vulnerable code path lives in the core Field UI module (field_ui).
The Drupal Security Team's documented interim workaround is to uninstall the
field_ui module — so a site that does not have Field UI enabled has the
primary exploit precondition removed. Reachability still depends on contributed
or custom code, so treat an affected version with Field UI enabled as exposed
until patched.
detect_cve_2026_108097.py performs read-only checks:
drupal-settings-json, generator tag, session cookies)./core/CHANGELOG.txt or the generator meta tag and compares it against the
affected ranges.--local (via drush) or --config-file,
checks whether the field_ui module is enabled.It sends only normal, read-only requests — no crafted/exploit traffic.
| Branch | Status | Fixed release |
|---|---|---|
| 11.4.x | affected 11.4.0–11.4.9 | 11.4.10 |
| 11.3.x | affected 11.3.0–11.3.18 | 11.3.19 |
| 10.6.x | affected 10.6.0–10.6.18 | 10.6.19 |
| 12.0 (pre-release) | affected alpha1–beta1 | 12.0.0-beta2 |
| 7.x (LTS) | affected < 7.107 | 7.107 |
End-of-life and unpatched (migrate to a supported release): 11.2.x and earlier, 10.5.x and earlier, Drupal 9, Drupal 8.9.
pip install -r requirements.txt
Requires Python 3.8+. The --local precondition check additionally uses
drush.
# Unauthenticated fingerprint + version (is this an affected Drupal?)
./detect_cve_2026_108097.py -t example.com
# Scan a list of hosts and emit JSON
./detect_cve_2026_108097.py --targets-file hosts.txt --json
# Run against a local codebase (uses drush; most accurate — also checks field_ui)
./detect_cve_2026_108097.py --local --root /var/www/drupal
# Or classify an exported config's module state
./detect_cve_2026_108097.py --config-file ./config/sync/core.extension.yml
Exit code is 2 when any target is vulnerable/likely-vulnerable (CI-friendly),
0 otherwise.
| Verdict | Meaning |
|---|---|
VULNERABLE | Affected version and field_ui enabled |
LIKELY_VULNERABLE | Affected version; field_ui state not verified (remote) |
AFFECTED_VERSION_FIELD_UI_DISABLED | Affected version, but Field UI is uninstalled (workaround in place) |
NOT_AFFECTED_PATCHED | Version at/above the fix |
NOT_AFFECTED_BRANCH | Branch/version outside the affected set |
NOT_A_DRUPAL_OR_UNREACHABLE | No Drupal indicators |
UNKNOWN | Not enough data (e.g. version not readable remotely) |
field_ui module until you can
patch (per the Drupal Security Team).#region_callback on Field UI
table rows, and re-test the Manage fields / Manage display screens.This project is intended for authorized defenders and administrators to inventory and remediate their own exposure.
MIT — see LICENSE.