Tag: T1499.004

Detecting F5 TMM overflows: 4 Sigma rules for Kubernetes and BIG-IP crash signals

Detecting F5 TMM overflows: 4 Sigma rules for Kubernetes and BIG-IP crash signals

Six critical TMM stack overflows, CVSS 9.8 each, and not one indicator of compromise to go with them. F5 describes the trigger only as “undisclosed requests,” no request details or proof of concept are public as far as I could find, and there is no known exploitation as of November 22, 2026 (not in CISA KEV; CISA’s SSVC enrichment says exploitation: none). If you run BIG-IP Next for Kubernetes, CNF or classic BIG-IP with service-provider iRules, you can’t search for the attack. You can search for the configuration it needs and for the one thing every one of these bugs does when it fires: it kills TMM.

The background (which iRule commands, which products, the messy CNF scope and the hotfix builds) is in my analysis of the F5 TMM overflows. This post is the detection side: four Sigma rules, the audit and log settings they depend on, what F5 documents versus what I’m inferring, tuning notes, safe lab tests and the gaps none of them close.

At a glance

  • Rules: 4 (one high, three medium)
  • Domains: Kubernetes (three rules) and Network (one rule for classic BIG-IP)
  • Log sources: F5 Coremond container logs; Kubernetes API audit log at Request level for pod status and the F5 iRule resource; BIG-IP /var/log/ltm via remote syslog
  • ATT&CK: T1499.004 Endpoint Denial of Service: Application or System Exploitation; T1190 Exploit Public-Facing Application
  • Status: all experimental. Field names and log messages come from F5 documentation or F5’s bug tracker where I could find them; the alert logic is mine
  • YAML: Detection Rules repo on GitHub (Kubernetes and Network folders)

The case in brief

Per F5’s CVE records, five of the bugs need an iRule that uses PEM::subscriber, DNS::scrape, PSC::ip_address, MR::message route or GENERICMESSAGE::route on a virtual server. The sixth (CVE-2026-123637) needs an APM per-request policy and only affects BIG-IP. An unauthenticated attacker then sends requests F5 hasn’t described, a native handler in the Traffic Management Microkernel overflows a stack buffer, and TMM terminates. F5 says code execution may be possible; as far as I could find, no public proof of concept shows it. The analysis covers the product scope in detail.

So the attack leaves traces at two points. Before: the vulnerable iRule exists, and in CNF and BNK it’s a Kubernetes object, so creating or changing it passes through the API server. After: TMM dies. In a cluster the kubelet records the f5-tmm container’s termination in the pod status, and F5’s Coremond DaemonSet picks up the core file. On an appliance, BIG-IP logs the TMM restart to /var/log/ltm. The request in between is invisible to every log I know of.

Here is where my sources stop and I start. F5 documents the F5BigCneIrule kind with the script in spec.iRule (CNF docs), the f5-tmm container name and the Coremond messages (BIG-IP Next for Kubernetes 2.0.0-GA docs only; I could not confirm that CNF or BNK 2.2 to 2.4, the affected releases, use the same names). The BIG-IP restart messages come from F5’s bug tracker and an F5 community thread, not from these advisories. Treating restarts as the alert signal for these CVEs, the core.tmm file prefix, and the iRule resource’s plural name on BNK are my inferences.

Detection map

Detection map: Coremond container logs, the Kubernetes API audit log and BIG-IP /var/log/ltm feed four Sigma rules (TMM core reported by Coremond, f5-tmm container terminated, iRule custom resource using an affected command, BIG-IP TMM restart) mapped to T1499.004 and T1190, with the exploit request and possible RCE marked as gaps.
Which telemetry feeds which rule, and what stays dark. All four rules are experimental; the alert logic is netsec101 inference.

Read it left to right. Coremond logs feed the high-level rule, because a TMM core is rare and always worth a look. The Kubernetes audit log feeds two rules: one for the f5-tmm container terminating, one for an iRule resource that uses an affected command. BIG-IP’s LTM log feeds the appliance restart rule. The dashed box is what stays dark: the exploit request itself and anything that might happen inside TMM if code execution turns out to be real.

Rule overview

RuleDomainLog sourceATT&CK (tactic / technique)LevelStatus
F5 Coremond reports TMM core dumpKubernetesf5 / coremond (custom)Impact / T1499.004, Initial Access / T1190HighExperimental
F5 TMM container terminated in Kubernetes pod status updateKuberneteskubernetes / auditImpact / T1499.004MediumExperimental
F5 iRule custom resource created or changed with affected commandKuberneteskubernetes / auditInitial Access / T1190 (precondition)MediumExperimental
F5 BIG-IP TMM restart logged in LTM logNetworkf5 / bigip_ltm (custom)Impact / T1499.004MediumExperimental

The rules

F5 Coremond reports a TMM core dump

Context: this rule covers the five iRule CVEs that F5 lists for BIG-IP Next for Kubernetes; CVE-2026-123637 is BIG-IP APM only and doesn’t apply in a cluster. F5’s BIG-IP Next for Kubernetes 2.0.0-GA docs describe Coremond as a DaemonSet in the f5-utils namespace that watches /var/crash, converts kernel cores to core.<pod>.<container>.<process>...gz files and logs each step. The documented lines are "m"="new core file detected" with a file path and "m"="creating coredump" with a src path. The source file follows the core.%e.%p.%h.%t pattern, so the executable name comes right after core.. F5’s example crash is the observer process, not TMM, so the core.tmm prefix is my inference. Those 2.0.0-GA pages are the only Coremond documentation I found, so whether CNF and BNK 2.2 to 2.4 ship Coremond with the same messages is unverified.

Condition: alert when an f5-coremond log line contains “new core file detected” or “creating coredump”, and the same line contains core.tmm.

ATT&CK: Impact (TA0040) – T1499.004 Endpoint Denial of Service: Application or System Exploitation; secondary Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: F5 Coremond Reports TMM Core Dump - Potential CVE-2026-121805 Family Crash
id: 52cd65cb-4265-4312-ad93-549f783e1c8d
status: experimental
description: |
    Detects the F5 Coremond DaemonSet logging a new or converted core file whose name starts with core.tmm.
    The five November 2026 iRule-triggered TMM stack overflows listed for BIG-IP Next for Kubernetes make TMM
    terminate when triggered (CVE-2026-123637 is BIG-IP APM only and not covered here).
    Coremond and its messages are documented on the BNK 2.0.0-GA pages only; CNF and BNK 2.2-2.4 applicability
    is unverified. The core.tmm file prefix is inferred from the core_pattern naming.
references:
    - https://clouddocs.f5.com/bigip-next-for-kubernetes/2.0.0-GA/spk-coremond.html
    - https://www.cve.org/CVERecord?id=CVE-2026-121805
    - https://www.cve.org/CVERecord?id=CVE-2026-120722
    - https://netsec101.com/?p=412
author: netsec101.com
date: 2026-11-22
tags:
    - attack.impact
    - attack.t1499.004
    - attack.initial-access
    - attack.t1190
    - cve.2026-121805
    - cve.2026-120722
    - cve.2026-120285
    - cve.2026-120292
    - cve.2026-116953
    - detection.emerging-threats
logsource:
    product: f5
    service: coremond
    definition: 'Container logs of the f5-coremond container (DaemonSet in the f5-utils namespace), shipped by your cluster log agent. Custom logsource: map it in your pipeline.'
detection:
    keywords_message:
        - 'new core file detected'
        - 'creating coredump'
    keywords_tmm:
        - 'core.tmm'
    condition: keywords_message and keywords_tmm
falsepositives:
    - TMM crashes from unrelated F5 bugs or resource exhaustion (still worth an F5 case)
    - Deliberate test crashes in a lab
level: high

View on GitHub

False positives and tuning: every TMM crash fires this, whatever the cause, and I think that’s correct. A crashing data plane is an incident even when it isn’t an attack. Ship the f5-coremond container logs (your cluster log agent usually does this already) and point the two keyword lists at that index. If your backend parses the pipe-delimited key/value format, tighten it to m equals the message and the path field starting with /var/crash/core.tmm. In F5’s example the path is in file on the “new core file detected” line and in src on the “creating coredump” line. Then join the alert to the result of the iRule grep in the analysis: a TMM core on a data plane that runs one of the five commands goes to the top of the queue.

How to test: F5’s own Coremond page crashes a non-TMM process with kill -11 in a lab to show the pipeline; do that in a lab to confirm the logs reach your SIEM. To check the core.tmm filter without crashing anything, write a synthetic log line in the documented format with a /var/crash/core.tmm... path into a test index. Don’t crash TMM in production to test a rule.

F5 TMM container terminated in a Kubernetes pod status update

Context: when TMM dies inside a pod, the kubelet restarts the container, and my understanding is that it reports the previous termination in the pod’s status (lastState.terminated). I haven’t verified that every audited status patch carries that field. The analyst’s suggestion (not F5’s) was to alert on this for the f5-tmm container, the TMM container name in F5’s BIG-IP Next for Kubernetes 2.0.0-GA debug sidecar docs. Whether CNF and BNK 2.2 to 2.4 use the same container name is unverified. Most teams would do this with kube-state-metrics; this rule does it from the API audit log so it lands in the same SIEM as everything else.

Condition: alert when a node identity (system:node:*) patches or updates pods/status, the body lists a container named f5-tmm, and a container’s lastState.terminated.reason is Error or OOMKilled.

ATT&CK: Impact (TA0040) – T1499.004 Endpoint Denial of Service: Application or System Exploitation.

title: F5 TMM Container Terminated in Kubernetes Pod Status Update
id: eb267455-b350-4ccf-b6da-b05390a462b5
status: experimental
description: |
    Detects the kubelet reporting that the f5-tmm container of a BIG-IP Next for Kubernetes or CNF pod
    terminated with reason Error or OOMKilled. The November 2026 TMM stack overflows crash TMM when triggered.
    The f5-tmm container name is documented on the BNK 2.0.0-GA pages only; CNF and BNK 2.2-2.4 naming is
    unverified. Using pod status audit events as the signal is netsec101 inference.
references:
    - https://clouddocs.f5.com/bigip-next-for-kubernetes/2.0.0-GA/spk-tmm-debug.html
    - https://kubernetes.io/docs/tasks/debug/debug-cluster/audit/
    - https://www.cve.org/CVERecord?id=CVE-2026-121805
    - https://netsec101.com/?p=412
author: netsec101.com
date: 2026-11-22
tags:
    - attack.impact
    - attack.t1499.004
    - cve.2026-121805
    - cve.2026-120722
    - cve.2026-120285
    - cve.2026-120292
    - cve.2026-116953
    - detection.emerging-threats
logsource:
    product: kubernetes
    service: audit
    definition: 'Requires an audit policy that logs pods/status at level Request or RequestResponse for the BNK/CNF namespaces. The upstream example policy logs pods/status at Metadata only, which drops the body this rule needs.'
detection:
    selection_status:
        objectRef.resource: 'pods'
        objectRef.subresource: 'status'
        verb:
            - 'patch'
            - 'update'
        user.username|startswith: 'system:node:'
    selection_container:
        requestObject.status.containerStatuses.name: 'f5-tmm'
    selection_terminated:
        requestObject.status.containerStatuses.lastState.terminated.reason:
            - 'Error'
            - 'OOMKilled'
    condition: all of selection_*
falsepositives:
    - Planned restarts, upgrades or node drains that end TMM uncleanly
    - OOMKilled from undersized memory limits (operationally relevant, not linked to these CVEs)
    - Multi-container pods where another container terminated (array fields flatten in most backends)
    - Repeat matches on later status patches while lastState is unchanged; deduplicate on pod name and restart count
level: medium

View on GitHub

False positives and tuning: this rule depends on your audit policy more than anything else. The example policy in the Kubernetes docs logs pods/status at Metadata level, which records who patched what but drops the body. Add a rule that logs pods/status at Request level, scoped to the namespaces where BNK or CNF runs, or the volume will hurt. I haven’t verified that every kubelet status patch carries lastState, so expect repeat matches while the old termination stays in the status; deduplicate on pod name and restart count. Most backends flatten arrays, so in a pod with several containers the name and the reason could come from different containers. OOMKilled is there because a TMM out of memory also drops traffic, not because these bugs cause it; drop it if you only want the CVE angle. Planned rollouts and node drains will also fire.

If you already run Prometheus, this alert is simpler and catches the same thing without audit bodies. kube_pod_container_status_restarts_total is a stable kube-state-metrics counter with a container label, per its pod metrics docs. Both lines below are generic Kubernetes examples to test in your environment, not F5 guidance:

# kube-state-metrics: any f5-tmm restart in the last 15 minutes
increase(kube_pod_container_status_restarts_total{container="f5-tmm"}[15m]) > 0

# Ad hoc check from a shell
kubectl get pods -A -o custom-columns=NS:.metadata.namespace,POD:.metadata.name,RESTARTS:.status.containerStatuses[*].restartCount \
  | grep f5-tmm

How to test: this is a generic Kubernetes test, not something F5 documents. In a lab cluster with the audit rule above, run a throwaway pod whose single container is named f5-tmm and runs a busybox command that exits with status 1. The kubelet should restart it, and I’d expect the status patch to carry reason: Error; check the raw audit event before trusting the rule.

F5 iRule custom resource created or changed with an affected command

Context: this one isn’t about an attacker at all. It catches the vulnerable configuration being deployed, so you know which data planes are exposed and when a team adds a new one before the hotfix is in. F5’s CNF docs define iRules as the F5BigCneIrule kind (k8s.f5net.com/v1, short name irule) with the Tcl in spec.iRule. The docs don’t state the plural resource name, and I couldn’t confirm the BNK equivalent, so the rule matches any resource whose name contains irule and relies on the F5-specific command names to stay precise.

Condition: alert on create, update or patch of a resource with irule in its name when spec.iRule contains PEM::subscriber, DNS::scrape, PSC::ip_address or GENERICMESSAGE::route, or matches MR::message followed by whitespace and route.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application, as the precondition for exploitation, not as evidence of it.

title: F5 iRule Custom Resource Created or Changed With Command Affected by TMM Overflows
id: e57d2b48-ce3a-40a6-8127-4d5829d17142
status: experimental
description: |
    Detects create, update or patch of an F5 iRule custom resource (F5BigCneIrule in the CNF docs) whose
    spec.iRule text uses PEM::subscriber, DNS::scrape, PSC::ip_address, MR::message route or GENERICMESSAGE::route,
    the commands F5 names as triggers for CVE-2026-121805, -120722, -120285, -120292 and -116953.
    The resource plural and BNK CRD names are not confirmed, so the rule matches on 'irule' in the resource name.
references:
    - https://clouddocs.f5.com/cnfs/robin/latest/cnf-irule-crd.html
    - https://www.cve.org/CVERecord?id=CVE-2026-121805
    - https://www.cve.org/CVERecord?id=CVE-2026-120722
    - https://www.cve.org/CVERecord?id=CVE-2026-120285
    - https://www.cve.org/CVERecord?id=CVE-2026-120292
    - https://www.cve.org/CVERecord?id=CVE-2026-116953
    - https://netsec101.com/?p=412
author: netsec101.com
date: 2026-11-22
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026-121805
    - cve.2026-120722
    - cve.2026-120285
    - cve.2026-120292
    - cve.2026-116953
    - detection.emerging-threats
logsource:
    product: kubernetes
    service: audit
    definition: 'Requires the F5 iRule resource to be audited at level Request or RequestResponse so requestObject is recorded.'
detection:
    selection_resource:
        objectRef.resource|contains: 'irule'
        verb:
            - 'create'
            - 'update'
            - 'patch'
    selection_command:
        - requestObject.spec.iRule|contains:
              - 'PEM::subscriber'
              - 'DNS::scrape'
              - 'PSC::ip_address'
              - 'GENERICMESSAGE::route'
        - requestObject.spec.iRule|re: 'MR::message\s+route'
    condition: all of selection_*
falsepositives:
    - Legitimate service-provider iRules that use these commands (PEM, DNS, MRF deployments); treat a match as an exposure to patch, not an intrusion
    - GitOps reconciliation re-applying an unchanged rule
level: medium

View on GitHub

False positives and tuning: every match is a real use of the command, and in a service-provider cluster that may be normal. Route it to the platform team as an exposure ticket, not to the SOC as an intrusion. Audit the iRule resource at Request or RequestResponse level so requestObject is there. Patches sent as JSON-patch arrays put the script under an operation’s value instead of spec.iRule, so the rule misses them; check how your own tooling (kubectl, Helm, GitOps controller) writes changes to this resource. GitOps controllers re-applying an unchanged rule will repeat the alert. Once you’ve confirmed the resource name with kubectl api-resources | grep -i irule, tighten objectRef.resource to that exact value and add objectRef.apiGroup. This rule doesn’t see existing rules that never change, so run the inventory grep from the analysis once as well.

How to test: in a lab cluster, apply an iRule resource whose script contains DNS::scrape inside a Tcl comment. No traffic, no listener, no risk.

F5 BIG-IP TMM restart logged in the LTM log

Context: on appliances and VEs, TMM restarts show up in /var/log/ltm. F5’s bug tracker entry for Bug ID 462903 shows the sod daemon logging 01140029:5: HA daemon_heartbeat tmm fails action is go offline down links and restart, (F5 says you might see a message “similar to” this), and a 2014 F5 community thread shows emerg logger: Re-starting tmm and Re-starting tmm1. I couldn’t verify either string on 17.1, 17.5 or 21.1, the affected branches. Neither line comes from the CVE advisories, and the CVE that only affects APM (CVE-2026-123637) is covered here only through the crash.

Condition: alert on any BIG-IP LTM log line containing “Re-starting tmm” or “daemon_heartbeat tmm fails”.

ATT&CK: Impact (TA0040) – T1499.004 Endpoint Denial of Service: Application or System Exploitation.

title: F5 BIG-IP TMM Restart Logged in LTM Log
id: fab7f5f8-1bbc-4629-a5b3-8e525e57ffb3
status: experimental
description: |
    Detects BIG-IP messages that TMM is being restarted, either the "Re-starting tmm" line or the sod heartbeat
    failure "HA daemon_heartbeat tmm fails", as written to /var/log/ltm. All six November 2026 TMM stack overflows
    make TMM terminate when triggered. The strings come from an F5 bug entry (which says "similar to") and a 2014
    F5 community thread, and are unverified on 17.1, 17.5 and 21.1. Linking a restart to these CVEs is inference.
references:
    - https://cdn.f5.com/product/bugtracker/ID462903.html
    - https://community.f5.com/discussions/technicalforum/gtm-emerg-logger-re-starting-tmm1/107659
    - https://www.cve.org/CVERecord?id=CVE-2026-121805
    - https://www.cve.org/CVERecord?id=CVE-2026-123637
    - https://netsec101.com/?p=412
author: netsec101.com
date: 2026-11-22
tags:
    - attack.impact
    - attack.t1499.004
    - cve.2026-121805
    - cve.2026-120722
    - cve.2026-120285
    - cve.2026-120292
    - cve.2026-116953
    - cve.2026-123637
    - detection.emerging-threats
logsource:
    product: f5
    service: bigip_ltm
    definition: 'BIG-IP /var/log/ltm forwarded by remote syslog. Custom logsource: map it to your BIG-IP syslog index.'
detection:
    keywords:
        - 'Re-starting tmm'
        - 'daemon_heartbeat tmm fails'
    condition: keywords
falsepositives:
    - Planned reboots, upgrades, hotfix installs and failover tests
    - TMM restarts from unrelated bugs, hardware faults or HA/VLAN failsafe actions
level: medium

View on GitHub

False positives and tuning: reboots, upgrades, hotfix installs (including the ones you’re about to do for these CVEs) and failover tests all restart TMM. Suppress during change windows. Configure remote syslog on every unit first; many estates only forward ASM or APM logs. F5’s Bug ID 1000973 notes that a TMM core can be written with no message in /var/log at all, so also watch /var/core for new files with whatever file monitoring your appliance team allows. When you find a TMM restart, look up which virtual servers on that unit attach a rule using one of the five commands.

How to test: send a synthetic test line from a lab syslog client that forwards to the same index, for example logger -p local0.emerg "Re-starting tmm". The facility here is a placeholder I picked; adjust it to wherever LTM messages land on your build. A failover test on a lab HA pair gives you real restart lines and is the better check of the wording.

Coverage and gaps

Step in caseTacticTechniqueRuleCovered?
Vulnerable iRule deployedInitial Access (TA0001)T1190 (precondition)iRule custom resource rulePartly: Kubernetes only, changes only
Exploit request to the listenerInitial Access (TA0001)T1190NoneGap: request structure undisclosed and not logged by TMM
TMM crash and restartImpact (TA0040)T1499.004Coremond, pod status and LTM restart rulesYes
Possible code execution inside TMMExecution / PersistenceUnknownNoneGap: no telemetry inside TMM; RCE unconfirmed
APM per-request policy trigger (CVE-2026-123637)Initial Access (TA0001)T1190LTM restart ruleCrash only

The honest summary is that these rules tell you a crash happened and where you were exposed. They can’t tell you a crash was an attack. Closing that gap would need F5 or watchTowr to publish what the requests look like (then a Suricata or vendor WAF signature becomes possible), or packet captures on the listeners that run the affected commands, which you could replay against a crash timestamp. If code execution in TMM is ever demonstrated, the next layer would be integrity checking of the TMM container image and node-level runtime monitoring (Falco or similar) on the nodes that host TMM pods. The core file remains the best forensic artefact, which is why my first step on any of these alerts is to keep it.

Deploying the rules

Grab the YAML from the GitHub repo and convert it with sigma-cli after installing the backend plugin for your SIEM. The Elasticsearch backend ships an ecs_kubernetes pipeline for the audit rules. I didn’t find a Kubernetes pipeline for Splunk, and the two F5 rules use a custom logsource (product: f5) with plain keyword searches, so for those you mainly need to scope the query to the right index:

# See what your install offers first
sigma list targets
sigma list pipelines

# Elastic: Kubernetes audit rules with the ECS Kubernetes pipeline
sigma convert -t lucene -p ecs_kubernetes kubernetes_audit_f5_tmm_container_terminated.yml
sigma convert -t esql -p ecs_kubernetes kubernetes_audit_f5_irule_cr_vulnerable_command.yml

# Splunk: no Kubernetes or F5 pipeline that I know of; if your sigma-cli
# version refuses to run without one, check "sigma convert --help" for a
# without-pipeline option, then map fields to your audit sourcetype yourself
sigma convert -t splunk kubernetes_audit_f5_irule_cr_vulnerable_command.yml
sigma convert -t splunk f5_bigip_ltm_tmm_restart.yml

The iRule rule uses the |re modifier for MR::message route. I haven’t checked regex support in each backend’s docs, so confirm the converted query keeps the regex; if it doesn’t, fall back to contains on MR::message and filter the hits by hand. Run all four in alert-only mode for a week before anything pages a human, mostly to learn how often TMM restarts in your estate for boring reasons.

My take

This is a case where detection is mostly hygiene, and I think that’s fine. A memory-corruption bug in a data plane with no published trigger gives defenders almost nothing to match on. What you can do is know where you’re exposed and notice the moment TMM falls over. If I could turn on only one thing it would be the Coremond rule, because a TMM core is rare, F5 already ships the DaemonSet that produces the log, and it works without touching your audit policy.

The bigger lesson is about audit policies. Plenty of clusters log custom resources and pod status at Metadata level or not at all, which means the API server knows a vulnerable iRule went in and nobody else does. If you run network functions as CRDs, their bodies belong in your audit log at Request level. And F5 could make this much easier: a structured TMM crash event in the BNK and CNF logs, naming the iRule that was executing, would turn a guessing game into a one-line rule.

Sources

F5 TMM stack overflows reach Kubernetes: BIG-IP Next and CNF need hotfixes

F5 TMM stack overflows reach Kubernetes: BIG-IP Next and CNF need hotfixes

If you run F5 inside Kubernetes, there’s a good chance you read the November 18, 2026 BIG-IP advisories, saw “BIG-IP” in every title, and assumed they were somebody else’s problem. Then the scope moved. As of November 22, F5’s own CVE records list BIG-IP Next for Kubernetes as affected by five of the six TMM stack overflows and BIG-IP CNF by three, and early F5 documents and press reports did not agree on CNF at all.

All six are stack-based buffer overflows in the Traffic Management Microkernel (TMM), the process that actually moves packets on an F5 data plane. An unauthenticated remote attacker can crash TMM, and F5 says code execution may be possible. Every one is rated CVSS 3.1 9.8 and CVSS 4.0 9.3. None of them is in a default configuration. The fix is an engineering hotfix, not a regular release, and there is no workaround.

Severity: critical on paper, conditional in practice. Whether you are exposed depends on which iRule commands your virtual servers run. That’s something you can check tonight, and this post is mostly about how.

At a glance

  • CVEs: CVE-2026-121805, CVE-2026-120722, CVE-2026-120285, CVE-2026-120292, CVE-2026-116953 (iRule commands) and CVE-2026-123637 (APM)
  • Bug class: CWE-121, stack-based buffer overflow in TMM. F5 calls it a data plane issue only, with no control plane exposure.
  • CVSS: 9.8 (v3.1) and 9.3 (v4.0) for all six, per F5’s CVE records
  • Affected: BIG-IP 17.1.x, 17.5.x and 21.1.x; BIG-IP Next for Kubernetes 2.2.x, 2.3.x and 2.4.x for the five iRule CVEs; BIG-IP CNF 2.2.x to 2.4.x for at least three of them
  • Fixes: BNK-2.2.5-EHF1, BNK-2.3.4-EHF1, BNK-2.4.2-EHF1 for Next for Kubernetes; for CNF, the CVE records name the same BNK-* builds while the Canadian Cyber Centre lists CNF-2.2.5-EHF1, CNF-2.3.4-EHF1, CNF-2.4.2-EHF1 (confirm with F5); BIG-IP engineering builds ending in -ENG
  • Exploitation: none reported, not in CISA KEV, no public proof of concept as of November 22, 2026
  • Who should care: anyone running F5 data planes in Kubernetes (telco 5G cores, AI ingress, service providers) or classic BIG-IP with custom iRules

What F5 has confirmed, and what is still press reporting

A note on sourcing. F5’s K-articles (K000163946 and siblings) would not render for me, so I used the next best primary source: the CVE records F5 publishes as the CVE Numbering Authority. Scores, descriptions, affected ranges and fixed builds below come from those records unless I say otherwise.

F5 published the six CVEs on November 18, 2026, as part of a larger batch: 22 advisories, ten of them for NGINX, according to Daily Security Review. The CVE records credit Sina Kheirkhah of watchTowr for four of the bugs (CVE-2026-120285, CVE-2026-120292, CVE-2026-116953, CVE-2026-123637). F5 found CVE-2026-121805 and CVE-2026-120722 internally.

Each record follows the same template: when a specific iRule command (or an APM policy) is configured on a virtual server, “undisclosed requests can cause the Traffic Management Microkernel (TMM) to terminate,” and may lead to remote code execution. Every record lists the workaround as none.

The triggers, per F5’s records:

  • CVE-2026-121805 (K000163946): iRule using PEM::subscriber on client traffic
  • CVE-2026-120722 (K000163945): iRule using DNS::scrape on client traffic
  • CVE-2026-120285 (K000163939): HTTP profile plus an iRule containing PSC::ip_address
  • CVE-2026-120292 (K000163940): HTTP profile plus an iRule using MR::message route
  • CVE-2026-116953 (K000163941): iRule using GENERICMESSAGE::route
  • CVE-2026-123637 (K000163937): APM provisioned, with a per-request policy that includes the Client Information and Endpoint Security agents. BIG-IP only.

The Kubernetes scope is messier than the headlines

Here’s where it gets untidy. As of November 22, 2026, F5’s CVE records list BIG-IP Next for Kubernetes (BNK) as affected by all five iRule CVEs. They list “BIG-IP Next CNF” as affected by only three: CVE-2026-121805, CVE-2026-120722 and CVE-2026-120285. For CVE-2026-120292 and CVE-2026-116953 the CNF product is simply absent.

Matrix of the six CVEs against BIG-IP, BIG-IP Next for Kubernetes and BIG-IP CNF, showing the trigger for each and which products the F5 CVE records list as affected as of November 22, 2026.
Which product each CVE record lists, as of November 22, 2026. CNF rows for two CVEs are still unclear.

Early coverage did not agree either. SecurityOnline’s November 18 write-up said BIG-IP CNF was not affected. The Hacker News (I read a republished copy) and BastionZero reported that F5’s advisory for CVE-2026-120722 listed CNF as not vulnerable while the CVE record listed it as affected. One report, which I could not verify, says F5 revised five advisories on November 19 to list CNF as affected by five of the six bugs. The K-article revision histories would not load for me, so treat that revision as unconfirmed.

What I can verify is that the CVE records moved on November 18 itself. NVD’s change history shows F5 editing the affected-product data twice that afternoon (18:18 and 19:17 UTC) for both CVE-2026-121805 and CVE-2026-120722. The November 19 edit visible there came from CISA’s enrichment, not F5.

Timeline: CVE IDs reserved November 10 to 12, 2026 per CVE.org; F5's advisory batch on November 18; two same-day edits to the affected-product data in the CVE records; conflicting early reports on CNF; an unverified report of a November 19 CNF revision; and the CVE records' scope as of November 22.
Records, reports and the open CNF question, November 10 to 22, 2026. NVD history shows when F5 edited product data, not which fields changed.

Two more inconsistencies are worth knowing about before you open a support case. The CNF rows in the records name BNK-* builds as the fix, while the Canadian Centre for Cyber Security’s AV26-1178 (November 19) lists CNF-2.2.5-EHF1, CNF-2.3.4-EHF1 and CNF-2.4.2-EHF1. And the BNK and CNF rows for CVE-2026-121805 carry the module label “DNS::scrape iRule Command” even though the description is about PEM::subscriber. Brandefense flagged that too. It looks like a copy-paste slip, but until F5 fixes it, I would search for both commands on any Next deployment.

How it works: one TMM, many packages

F5 has not published the vulnerable code paths or request structures, and I am not going to guess at them. The bug class, though, tells you a lot.

iRules are Tcl scripts that run inside TMM for every connection or message they’re attached to. Commands like DNS::scrape or PEM::subscriber are not Tcl; they’re thin wrappers around native C handlers in TMM that parse attacker-controlled bytes (a DNS message, subscriber attributes, a routed message-routing payload). A stack-based overflow means one of those handlers copies data into a fixed-size buffer on the stack without checking the length properly. The cheap outcome is a crash. The expensive outcome, if the attacker can shape what lands past the buffer, is control over execution in the process that holds your TLS keys and sees every packet. That’s why F5 writes “may lead to RCE” rather than ruling it out.

Now the Kubernetes angle. F5’s own CNF documentation describes iRules as extending how traffic is processed “by the Traffic Management Microkernel (TMM) Proxy Pod.” BNK and CNF are not rewrites; they put TMM in a container and drive it with Kubernetes custom resources instead of tmsh. The fact that one CVE ID covers BIG-IP 17.1 appliances and BNK 2.4 pods tells you it’s the same handler code in both. Containerising a data plane changes how you deploy and restart it. It does nothing to the memory safety of the C inside it.

That creates a blind spot. BNK and CNF often belong to a platform or 5G core team that reads Kubernetes release notes, not F5 advisories titled “BIG-IP iRule vulnerability.” Nothing in that string says “your Helm chart.”

Who is affected and how badly

The exposure is much smaller than “CVSS 9.8, unauthenticated” suggests, and much harder to measure from outside. Censys counts 2,067,455 F5 web properties on the internet, but that figure counts every hostname and port with F5 software, not vulnerable systems. Nobody can fingerprint “has an iRule using DNS::scrape” from a scan.

My honest rating by deployment type:

  • Service providers running PEM or DNS iRules on subscriber-facing traffic: high. PEM::subscriber, PSC::ip_address and DNS::scrape are service-provider commands, fed by untrusted clients. That’s also the BNK/CNF customer base.
  • Message-routing (MRF) deployments using MR::message route or GENERICMESSAGE::route, such as Diameter or SIP: high if the listener is reachable by untrusted peers.
  • Typical enterprise LTM with HTTP iRules for redirects and header rewrites: low, unless someone copied one of these commands into a rule.

Even the “just a crash” outcome hurts. A TMM restart drops traffic for every application on that data plane. In a 5G core that can mean subscriber sessions, not a website.

What to do now

  1. Inventory every F5 data plane, including the ones in clusters. Note the exact BNK or CNF version (2.2.x, 2.3.x, 2.4.x) and BIG-IP build.
  2. Search all iRules for the five commands (queries below). Also check APM per-request policies on BIG-IP for the Client Information plus Endpoint Security agent combination.
  3. If you get a hit on an internet-facing or subscriber-facing listener, request the hotfix: BNK-2.2.5-EHF1, BNK-2.3.4-EHF1 or BNK-2.4.2-EHF1 for Next for Kubernetes; CNF-2.2.5-EHF1, CNF-2.3.4-EHF1 or CNF-2.4.2-EHF1 for CNF (confirm the build name with F5 given the record mismatch). For BIG-IP: BIGIP-21.1.0.4.0.19.3-ENG, BIGIP-17.5.1.11.0.61.12-ENG or BIGIP-17.5.1.10.0.80.35-ENG, BIGIP-17.1.3.7.0.21.4-ENG or BIGIP-17.1.3.6.0.14.20-ENG.
  4. Mind F5’s caveat (as summarised in press coverage): engineering hotfixes get less QA than scheduled releases, carry no warranty, and systems already on a custom EHF need a new build from support. Stage and test first.
  5. If you cannot hotfix yet, the only lever is configuration. F5 lists no workaround, so removing or rewriting a rule that uses a vulnerable command is your own risk decision. Restricting which clients can reach the listener reduces exposure for MRF and DNS use cases.
  6. CNF users: if you run MR::message route or GENERICMESSAGE::route, ask F5 support in writing whether CNF is affected. The public records don’t answer it yet.

For step 2, here is how I would search. In CNF, iRules are Kubernetes objects. F5’s docs define them as the F5BigCneIrule custom resource (k8s.f5net.com/v1, short name irule) with the script in spec.iRule, referenced from resources such as F5BigContextSecure and F5BigDnsApp. BNK releases document their CRDs separately, so first check what your cluster actually has. Then grep:

# Which iRule-type resources exist in this cluster?
kubectl api-resources | grep -i irule

# Search every iRule CR for the five vulnerable commands
kubectl get irule -A -o yaml \
  | grep -nE 'PEM::subscriber|PSC::ip_address|MR::message[[:space:]]+route|GENERICMESSAGE::route|DNS::scrape'

# Then find which listener resources reference the matching rule names
for r in $(kubectl api-resources -o name | grep -iE 'contextsecure|dnsapp|algftp'); do
  kubectl get "$r" -A -o yaml | grep -n -A3 'iRules'
done

The resource names differ between CNF and BNK releases, which is why the loop asks the API server instead of hardcoding them. Don’t forget GitOps: grepping your Helm values and manifests repo catches rules that are defined but not yet applied.

On classic BIG-IP the same search is one tmsh command, plus a check of which virtual servers attach the matching rules:

tmsh list ltm rule one-line \
  | grep -E 'PEM::subscriber|PSC::ip_address|MR::message[[:space:]]+route|GENERICMESSAGE::route|DNS::scrape'
tmsh list ltm virtual one-line | grep -E 'rules \{'

Detection and monitoring

There are no public IOCs and F5 has not described the requests, so nobody can write a rule for the exploit itself. What you can catch are the two ends of the story: the vulnerable configuration going in, and TMM dying. In Kubernetes that means the API server audit log and the logs of F5’s Coremond DaemonSet. On classic BIG-IP it means /var/log/ltm forwarded by remote syslog. Two caveats up front: audit logging is often off or Metadata-only, and the rules need request bodies, so check your audit policy first. And F5 documents the TMM container name and the Coremond messages (BIG-IP Next for Kubernetes 2.0.0-GA docs only; CNF and BNK 2.2 to 2.4 are unverified) and the F5BigCneIrule resource (CNF docs), but using restarts as the alert signal is my suggestion, not F5’s.

RuleCategoryLog sourceATT&CKLevel
F5 Coremond reports TMM core dumpKubernetesf5-coremond container logsT1499.004, T1190High
F5 TMM container terminated in pod status updateKubernetesKubernetes auditT1499.004Medium
F5 iRule custom resource with an affected commandKubernetesKubernetes auditT1190Medium
F5 BIG-IP TMM restart in LTM logNetworkBIG-IP /var/log/ltmT1499.004Medium

The rule I’d turn on first watches Coremond. F5’s BIG-IP Next for Kubernetes 2.0.0-GA docs show it logging new core file detected and creating coredump with the crashed file’s path, and core files are named after the executable. The rule fires when either message mentions a core.tmm file. That prefix is my inference from the naming pattern (F5’s example uses a different process), so test it in a lab before you trust it.

title: F5 Coremond Reports TMM Core Dump - Potential CVE-2026-121805 Family Crash
id: 52cd65cb-4265-4312-ad93-549f783e1c8d
status: experimental
description: |
    Detects the F5 Coremond DaemonSet logging a new or converted core file whose name starts with core.tmm.
    The five November 2026 iRule-triggered TMM stack overflows listed for BIG-IP Next for Kubernetes make TMM
    terminate when triggered (CVE-2026-123637 is BIG-IP APM only and not covered here).
    Coremond and its messages are documented on the BNK 2.0.0-GA pages only; CNF and BNK 2.2-2.4 applicability
    is unverified. The core.tmm file prefix is inferred from the core_pattern naming.
references:
    - https://clouddocs.f5.com/bigip-next-for-kubernetes/2.0.0-GA/spk-coremond.html
    - https://www.cve.org/CVERecord?id=CVE-2026-121805
    - https://www.cve.org/CVERecord?id=CVE-2026-120722
    - https://netsec101.com/?p=412
author: netsec101.com
date: 2026-11-22
tags:
    - attack.impact
    - attack.t1499.004
    - attack.initial-access
    - attack.t1190
    - cve.2026-121805
    - cve.2026-120722
    - cve.2026-120285
    - cve.2026-120292
    - cve.2026-116953
    - detection.emerging-threats
logsource:
    product: f5
    service: coremond
    definition: 'Container logs of the f5-coremond container (DaemonSet in the f5-utils namespace), shipped by your cluster log agent. Custom logsource: map it in your pipeline.'
detection:
    keywords_message:
        - 'new core file detected'
        - 'creating coredump'
    keywords_tmm:
        - 'core.tmm'
    condition: keywords_message and keywords_tmm
falsepositives:
    - TMM crashes from unrelated F5 bugs or resource exhaustion (still worth an F5 case)
    - Deliberate test crashes in a lab
level: high

Keep watching after you apply the hotfix. A TMM restart on a patched data plane is either a different bug or a sign the fix didn’t land, and both deserve a support case. The bugs existed before the November 18, 2026 disclosure, so retro-hunt across your full log retention for TMM cores and restarts on data planes that run one of the five commands. Keep any core file you find: it’s the only artefact that could tell F5 whether a crash was an RCE attempt. There are no IOCs to age out here; revisit the rules if F5 or watchTowr publish request details.

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

My take

I think this batch is overhyped for most enterprises and underrated for the people running F5 in Kubernetes. A typical LTM shop with HTTP redirect iRules can probably confirm it’s not exposed in ten minutes. A mobile operator running PEM and DNS iRules on BNK or CNF in a 5G core is sitting on exactly the configuration these bugs need, facing untrusted subscriber traffic, with only an engineering hotfix to apply. That’s the group I’d worry about.

The bigger pattern is that cloud-native packaging is not a security boundary for old code. F5 moved TMM into pods and gave it CRDs, which is good for operations, but every memory-safety bug in TMM’s native command handlers now ships to clusters too. The CNF scope confusion makes it worse. For a CNA, getting affected-product data right on day one is not optional; it’s how scanners and SBOM tools decide whether to raise a ticket at all.

If I owned a BNK or CNF deployment, I’d run the grep tonight, put a restart alert on the f5-tmm container tomorrow, and open a support case for the hotfix whether or not the grep found anything, because I wouldn’t trust the CNF scope until F5 cleans up its records.

Sources

Detecting Java4Shell: 4 Sigma rules for trigger-shaped headers and JVM crashes

Detecting Java4Shell: 4 Sigma rules for trigger-shaped headers and JVM crashes

Java4Shell is an awkward bug to detect. There are no IOCs, no exploit in the wild as of November 18, 2026, and the vulnerable code is not in any application you could put a WAF signature in front of: it is hand-written assembly inside the JVM’s JIT compiler. It is reached when attacker input goes to the java.util.Base64 basic or URL decoder after C2 has compiled it, on a CPU with AVX-512 VBMI. The patch is the answer. Detection is what tells you whether someone got there first, or is trying to knock your SSO server over while you wait for a maintenance window.

If you want the bug first, read my analysis of Java4Shell (CVE-2026-114938). This post is the detection side: four behaviour-based Sigma rules, the telemetry each one needs, tuning, safe tests, a correlation for “decode errors, then a crash”, corrected inventory and crash-log commands, and a plain list of what none of it can see.

At a glance

  • Rules: 4 (one high, three medium). No IOC rules, because no IOCs have been published.
  • Domains: Web/App (two header rules and one JVM output rule) and Cross-Platform (crash-log file creation on Windows and Linux).
  • Log sources you need: a WAF, reverse proxy or API gateway that can inspect the Authorization header (not logged by default, and for good reason), file creation events on Java hosts (Sysmon EID 11 or an EDR), and the stdout of Java services (journald, container and pod logs).
  • ATT&CK: T1190 Exploit Public-Facing Application, T1499.004 Endpoint Denial of Service: Application or System Exploitation.
  • Status: three rules are test because the behaviour they match is confirmed by Calif, VulnCheck or Oracle’s documentation; the JWT rule is experimental because it rests on reasoning, not observed traffic.
  • YAML: Detection Rules repo on GitHub (Web-App and Cross-Platform folders).

The case in brief

On x86-64 CPUs with AVX-512 VBMI, HotSpot’s C2 compiler replaces hot java.util.Base64 decode calls with a vectorised routine. Calif found that this routine miscounts = padding: the remaining-length counter drops below zero, the store mask becomes “all lanes”, and 62 bytes land past the end of the output array. The decoder then throws an ordinary IllegalArgumentException (in OpenJDK’s source, the message is “Input byte array has wrong 4-byte ending unit”), so the application sees bad input while its heap is already damaged.

Three facts matter for detection. Warming the decoder with valid input looks like normal traffic. The trigger is Base64 ending in padding just past a 64-character block, an impossible length for valid Base64. And short of a finished chain, the outcome is a crash: VulnCheck says a burst of requests reliably brought a service down, and Calif says failed grooming can crash the JVM. Routes include Basic headers, JWTs, body fields, WebSocket frames and a client-side TLS case (Calif, Equixly, HeroDevs). The full chain is in the analysis.

Detection map

Block diagram: WAF or proxy logs, file creation events and Java service output feed four Sigma rules (Basic auth impossible padding, JWT with padding, hs_err_pid log created, fatal error banner) mapped to T1190 and T1499.004, with body, WebSocket and TLS routes and post-exploitation marked as gaps.
Three telemetry sources, four rules. The input is caught at the edge, the crash on the host.

Two rules read the Authorization header for input no honest client sends. Two catch the JVM crashing, once as a file on disk and once as the header it prints to standard output. The red boxes are the gaps: Base64 in bodies, WebSocket frames and the TLS client route never reach a standard log, and SigmaHQ already covers post-exploitation.

Rule overview

RuleDomainLog sourceATT&CK (tactic / technique)LevelStatus
Basic Authorization with impossible Base64 paddingWeb/Appwebserver (WAF, proxy)Initial Access, Impact / T1190, T1499.004Hightest
JWT Bearer token containing paddingWeb/Appwebserver (WAF, proxy)Initial Access, Impact / T1190, T1499.004Mediumexperimental
JVM fatal error log hs_err_pid createdCross-Platformfile_eventImpact, Initial Access / T1499.004, T1190Mediumtest
JVM fatal error banner in application outputWeb/Appjvm / applicationImpact, Initial Access / T1499.004, T1190Mediumtest

Sigma has no standard field for request headers, so the header rules use cs-authorization. Map it to your WAF’s field, or better, run the logic in the WAF and log only the match.

The rules

Basic Authorization with impossible Base64 padding

Context: the HTTP Basic header is the most widely reachable pre-auth route. Equixly says Spring Security decodes it with java.util.Base64 before any password check, and HeroDevs adds Jetty’s BasicAuthenticator and Tomcat’s BasicAuthenticator (9.0.89 and later, 10.1.23 and later) as routes. Equixly suggested flagging invalid padding here. This is the rule I would turn on first.

Condition: alert when a Basic credential has at least 32 Base64 characters, ends in one or two =, and its total length is not a multiple of four. Padded Base64 from any real encoder always is, so this matches only hand-built or corrupted values. The regular expression spells out the four invalid cases (zero, one, two or three characters after the last full block, combined with the wrong amount of padding). I tested it offline against valid encodings of 1 to 79 bytes (no match) and every combination of 28 to 139 characters with one or two =. The 32-character floor follows Equixly’s note that Java 21 and 25 need more than 31 bytes of input to reach the vulnerable path (Java 17 needs more than 128).

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application; Impact (TA0040) – T1499.004 Endpoint Denial of Service: Application or System Exploitation.

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

View on GitHub

False positives and tuning: exclude authorised scanners by source address, and baseline a week in alert-only mode. The bigger issue is privacy: a Basic header is a username and password in Base64, so do not start shipping it to your SIEM. Most WAFs can run a regex on a header and log only the rule ID; if yours cannot, a length check plus “ends with =” gets most of the value.

How to test: in a test index, write a synthetic WAF log line whose header is a valid Basic value with 32 or more data characters before its == padding, with one = deleted. That value has an impossible length and should match; the unedited value should not. Do not send trigger-shaped input to a real JVM, even in staging, unless it is a box you are happy to crash.

JWT Bearer token containing Base64 padding

Context: libraries that decode JWT segments with Base64.getUrlDecoder(), such as Auth0 java-jwt, reach the flawed decoder (Equixly, HeroDevs). Jackson, Commons Codec, JJWT and Nimbus use their own decoders and do not. Equixly points out that JWT segments are encoded without padding, so a JWT containing = is malformed by definition, and the trigger needs a padding character.

Condition: alert when the Authorization header holds a Bearer token shaped like a JWT (three dot-separated base64url segments, the first starting with eyJ, which is how a JSON header starting with a brace encodes) and the value contains an =. This one is experimental: the logic is sound, but nobody has shown which product’s JWT route is exploitable this way.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application; Impact (TA0040) – T1499.004 Endpoint Denial of Service: Application or System Exploitation.

title: Java4Shell Trigger Shape - JWT Bearer Token Containing Base64 Padding
id: a176c9f0-eb2f-4c07-a9c0-aa016d23a82e
name: java4shell_jwt_bearer_with_padding
status: experimental
description: |
Detects Bearer tokens shaped like a JWT (three dot-separated base64url segments starting with eyJ) that
contain an '=' character. JWT segments are encoded without padding, and the CVE-2026-114938 (Java4Shell)
trigger needs a padding character, so padding inside a JWT may be an attempt to reach the flawed decoder.
references:
- https://equixly.com/blog/2026/11/17/cve-2026-114938-pre-auth-heap-overflow-in-java-17-21-and-25/
- https://www.herodevs.com/blog-posts/java4shell-cve-2026-114938-spring-boot-tomcat-jetty
- https://calif.io/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. Not logged by default; tokens in logs are secrets, so prefer evaluating this in the WAF.'
detection:
selection_jwt_shape:
cs-authorization|re: '^[Bb][Ee][Aa][Rr][Ee][Rr] +eyJ[A-Za-z0-9_=-]+\.[A-Za-z0-9_=-]+\.[A-Za-z0-9_=-]*$'
selection_padding:
cs-authorization|contains: '='
condition: all of selection_*
falsepositives:
- Non-compliant token issuers or clients that pad base64url segments (verify against your identity provider)
- Security testing and fuzzing of API authentication
level: medium

View on GitHub

False positives and tuning: check your own identity provider and API clients first. A non-compliant issuer that pads its segments would fire on every request, which you will see on day one. JWTs also travel in cookies and query strings; if your applications accept them there, copy the logic to those fields. JWE tokens have five segments and are not matched.

How to test: take a token from a development tenant, add a single = to the end of its payload segment in a synthetic log line, and check that only the edited line matches.

JVM fatal error log hs_err_pid created

Context: when HotSpot crashes it writes a fatal error log named hs_err_pid<pid>.log. Oracle’s troubleshooting guide says it goes to the process working directory, falling back to /tmp on Linux or the TMP/TEMP directory on Windows, unless -XX:ErrorFile moves it. HeroDevs recommends looking for these files since November 17, 2026. Equixly adds that the log will probably not mention Base64, because the corrupted object is usually noticed later, typically by the garbage collector. So the rule does not try to read the content.

Condition: alert when a file whose name is hs_err_pid, a number and .log is created in any directory, on Windows or Linux. There is no product in the log source on purpose, so one rule covers both.

ATT&CK: Impact (TA0040) – T1499.004 Endpoint Denial of Service: Application or System Exploitation; Initial Access (TA0001) – T1190 Exploit Public-Facing Application (a crash can be a failed exploitation attempt).

title: JVM Fatal Error Log hs_err_pid Created
id: 6d8a889e-1a29-4c85-997f-2504dec3eed4
name: jvm_hs_err_pid_crash_log_created
status: test
description: |
Detects creation of a HotSpot fatal error log (hs_err_pid<pid>.log), which the JVM writes when it crashes.
Failed CVE-2026-114938 (Java4Shell) heap grooming and bursts of trigger input crash the JVM, so a new crash
log on an internet-facing Java service running on AVX-512 hardware deserves a look.
references:
- https://calif.io/java4shell/
- https://www.vulncheck.com/blog/java4shell
- https://www.herodevs.com/blog-posts/java4shell-cve-2026-114938-spring-boot-tomcat-jetty
- https://docs.oracle.com/en/java/javase/21/troubleshoot/fatal-error-log.html
- https://netsec101.com/?p=326
author: netsec101.com
date: 2026-11-18
tags:
- attack.impact
- attack.initial-access
- attack.t1499.004
- attack.t1190
- cve.2026-114938
logsource:
category: file_event
definition: 'Requirement: file creation telemetry (Sysmon EID 11 on Windows, Sysmon for Linux EID 11 or an EDR on Linux). Sysmon for Linux file events need an explicit config. Containers: the EDR must see inside the container file system, and the file is lost when the pod restarts.'
detection:
selection:
TargetFilename|re: '[\\/]hs_err_pid[0-9]+\.log$'
condition: selection
falsepositives:
- Ordinary JVM crashes from native code, out-of-memory in native allocations or JDK bugs
- Developers and CI jobs crashing JVMs on build agents (scope to production service hosts)
- Custom -XX:ErrorFile names are not matched; add them if you set one
level: medium

View on GitHub

False positives and tuning: JVMs crash for dull reasons too: native libraries, JDK bugs, bad memory. Scope the rule to production service hosts and drop build agents and developer machines. Then raise the priority where the host is internet-facing and its CPU has AVX-512 VBMI (Ice Lake or newer Xeon, Zen 4 or newer AMD); a crash on a Graviton box is not Java4Shell. If you set a custom -XX:ErrorFile, add that pattern. In Kubernetes the file disappears with the container, which is why the next rule exists.

How to test: with file-event telemetry on, run touch /tmp/hs_err_pid99999.log on Linux or New-Item "$env:TEMP\hs_err_pid99999.log" on Windows, then delete the file.

JVM fatal error banner in application output

Context: the same crash also prints a header to standard output. Oracle’s troubleshooting guide says the header of the fatal error log is also printed to standard output, and its first line is “A fatal error has been detected by the Java Runtime Environment”. In containers, stdout is the one thing almost everyone already collects, and it survives the restart that wipes the hs_err file.

Condition: alert when that sentence appears in the output of a Java service. It is the only header text I match on, because it is the one I could confirm in Oracle’s documentation.

ATT&CK: Impact (TA0040) – T1499.004 Endpoint Denial of Service: Application or System Exploitation; Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: JVM Fatal Error Banner In Application Output
id: 988ead27-6a7c-477b-9c70-4d77dcdd6b4a
name: jvm_fatal_error_banner_in_output
status: test
description: |
Detects the HotSpot fatal error header that the JVM prints to standard output when it crashes. It catches
crashes where the hs_err_pid file is lost, such as containers that restart, and is a signal for failed
CVE-2026-114938 (Java4Shell) exploitation or trigger-based denial of service.
references:
- https://docs.oracle.com/en/java/javase/21/troubleshoot/fatal-error-log.html
- https://calif.io/java4shell/
- https://www.vulncheck.com/blog/java4shell
- https://netsec101.com/?p=326
author: netsec101.com
date: 2026-11-18
tags:
- attack.impact
- attack.initial-access
- attack.t1499.004
- attack.t1190
- cve.2026-114938
logsource:
product: jvm
category: application
definition: 'Requirement: the stdout/stderr of Java services collected into the SIEM (systemd journal, container runtime logs, Kubernetes pod logs or the application console log such as catalina.out).'
detection:
keywords:
- 'A fatal error has been detected by the Java Runtime Environment'
condition: keywords
falsepositives:
- Ordinary JVM crashes unrelated to Java4Shell (native libraries, JDK bugs, hardware faults)
level: medium

View on GitHub

False positives and tuning: the same dull crashes as the previous rule, with the same scoping. Two signals sit around it that are worth adding in your SIEM: a container that exits with code 134 (128 plus SIGABRT, which is how a crashing JVM usually ends) and a systemd unit whose main process exited with code=dumped. Both say “this service died hard” without depending on log text.

How to test: print the sentence from a throwaway container or systemd unit whose output you collect, for example echo '# A fatal error has been detected by the Java Runtime Environment:', and check that the rule fires with the right host and service fields.

Correlation: trigger header, then a crash

The pattern I would really alert on is a burst of trigger-shaped input followed by the JVM going down. Most applications swallow the decode exception and return a 400 or 401 without logging it, so the “decode error spike” has to come from the edge rule. Below is a Sigma temporal correlation that joins the Basic header rule and the banner rule on the same backend within 15 minutes. It is an example, not a shipped rule: my validator only handles single rules and I could not run sigma check on it. The alias matters because the proxy’s host field is the virtual host the client asked for, not the machine the JVM runs on, so map backend to an upstream or asset field you actually have.

title: Java4Shell Trigger Header Followed By JVM Crash On The Same Backend
id: 8abecdac-41af-4776-8989-f82a3fa39368
status: experimental
correlation:
type: temporal
rules:
- java4shell_basic_auth_impossible_padding
- jvm_fatal_error_banner_in_output
aliases:
backend:
java4shell_basic_auth_impossible_padding: upstream-host
jvm_fatal_error_banner_in_output: Hostname
group-by:
- backend
timespan: 15m
level: high

The field names upstream-host and Hostname are placeholders: replace them with your own. If you have no edge visibility, a weaker version of the same idea is a spike of 400 or 401 responses from one client address in your access logs, followed by a crash rule firing on that backend.

Retro-hunt and inventory commands, corrected

The draft commands that went around on disclosure day mostly work, with two traps. find / -xdev stays on the root file system, so it misses /var, /opt, /home or /tmp when they are separate mounts, which is common on servers. And java -XX:+PrintFlagsFinal -version starts a fresh JVM from your PATH; it says nothing about the flags of the service that is already running. Here are the versions I would use, on Linux, run inside the container when the JVM lives in one:

# JVM crash logs since October 18, 2026, on all mounted file systems
# (without -xdev this includes network mounts; prune them if that 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
# CPU gate: prints 4 when avx512f, avx512bw, avx512vbmi and bmi2 are all present
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -cE '^(avx512f|avx512bw|avx512vbmi|bmi2)$'
# Is the workaround set on the running process?
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'

Why about a month and not just since disclosure? The vulnerable intrinsic shipped in 17.0.6 in January 2023, Wiz says its tooling had an exploit before full disclosure, and you need a baseline of how often your JVMs crash anyway. jcmd must run as the same user as the JVM and ships only with a full JDK. As for the fix: the Oracle builds that Tenable and HeroDevs report (17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1 and 8u513-perf) are still unverified, because Oracle’s own page returned HTTP 403 when I tried it. Confirm the version in your vendor’s release notes before you close a ticket on it.

Coverage and gaps

Step in caseTacticTechniqueRuleCovered?
Trigger via Basic auth headerInitial Access (TA0001)T1190Basic impossible paddingYes, if the header is inspected
Trigger via JWTInitial Access (TA0001)T1190JWT with paddingYes, if the header is inspected
Trigger via body field, WebSocket frame or outbound TLSInitial Access (TA0001)T1190–Gap: not in standard logs
Warming the decoder–––Gap: looks like normal traffic
JVM crash, denial of serviceImpact (TA0040)T1499.004hs_err_pid created, fatal error bannerYes
Memory disclosure to beat ASLR–––Gap: product-specific, unpublished
Code execution and what followsExecution (TA0002)T1059.004SigmaHQ Java child-process rulesPartial, not mine

The biggest blind spot is an exploit that never crashes. If the heap grooming works first time, the only evidence before code execution is the trigger, and only if it came in a header you inspect. After that, Java4Shell looks like any Java web RCE, and SigmaHQ’s “Suspicious Java Children Processes” (Linux, Nasreddine Bencherchali, 2022) and “Shell Process Spawned by Java.EXE” (Windows) already cover a JVM starting shells; expect noise from Jenkins controllers that build on the built-in node. Closing the payload gaps needs body inspection in a WAF or a network sensor. VulnCheck’s Snort and Suricata rules are customer-only, so I cannot judge them.

Deploying the rules

Grab the YAML from the repo and convert it with sigma-cli. I have not run these conversions (sigma-cli is not installed where I built the rules), so treat the commands below as untested starting points. The pipeline has to match the log source, and none of these rules fits a stock pipeline cleanly: the header rules use a field you map yourself, the banner rule is a keyword search, and the crash-log rule has no product, so you may need to add product: windows or product: linux to a copy before an OS-specific pipeline will accept it:

# Untested. Crash log: no pipeline, then map TargetFilename to your file-event field
sigma convert -t splunk --without-pipeline file_event_java_hs_err_pid_crash_log_created.yml
# Untested. Fatal error banner: keyword search over your container or journald index
sigma convert -t splunk --without-pipeline java_jvm_fatal_error_banner_in_output.yml
# Untested. Header rules: map cs-authorization to your WAF field first
sigma convert -t splunk --without-pipeline web_cve_2026_114938_java4shell_basic_auth_impossible_padding.yml

Check the generated regex by hand for your backend, since regex dialects differ between SIEMs and I have not tested any of them with these patterns. If yours rejects the non-capturing groups or the anchors, rewrite the expression in its dialect and test it against a valid and an invalid header. Run everything in alert-only mode for a week, look at what fires, then decide what pages someone.

My take

Java4Shell is more detectable than its name suggests, but only at the two ends. The input has a shape no legitimate client produces, and the most likely outcome of a failed or sloppy attempt is a crash, which every runtime announces loudly. The middle, a careful attacker who warms the decoder and lands the exploit first time, is close to invisible. That makes the crash rules the ones I would deploy today on every Java host, and not only for this CVE: an unexplained JVM crash on an internet-facing identity provider has deserved a ticket for years.

If I could ask one thing of the frameworks, it would be a log line. As far as I can tell, Spring Security, Tomcat and Jetty treat a malformed Basic header as a failed login and answer 401 without logging anything at default levels. One WARN-level event with the source address for “credential header failed to decode” would have turned this bug, and the next parser bug, into a one-line SIEM rule. Until then, put the header check in your WAF, watch for crashes, and patch.

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