Acceldata
ODP

Last updated: Nov 23, 2026 20:49 IST

CVE-2026-114938 ("Java4Shell"): Interim Mitigation for ODP and Ambari

Info

๐—œ๐—บ๐—ฝ๐—ฎ๐—ฐ๐˜ ๐—ฏ๐˜† ๐—ฟ๐—ฒ๐—น๐—ฒ๐—ฎ๐˜€๐—ฒ ๐—น๐—ถ๐—ป๐—ฒ

  • ๐—ข๐——๐—ฃ ๐Ÿฏ.๐Ÿฎ.๐Ÿฏ.๐˜… (JDK 8/11): Not affected. Exception: Trino on 3.2.3.7.
  • ๐—ข๐——๐—ฃ ๐Ÿฏ.๐Ÿฏ.๐Ÿฒ.๐˜… (JDK 11/17): Core services (Hadoop, HBase, Hive, ZooKeeper, Spark3, Kafka3, etc.) are not affected on JDK 11.

All services on JDK 17, and the services on JDK 11 that need a higher JDK version (Spark4 and its connectors, Kafka4, Cruise Control 4, Livy4, Celeborn, Pinot, NiFi2, Polaris, Trino, Trino Gateway).

  • ๐—ข๐——๐—ฃ ๐Ÿฏ.๐Ÿฐ.๐Ÿฏ.๐˜… (JDK 17/21): All services.

Status:ย Interim mitigation only. This mitigation does not resolve the underlying issue. The permanent fix is to upgrade the OpenJDK or Oracle JDK build on every affected host to a patched version, such as 17.0.21.1, 21.0.13.1, 25.0.5.1, or the equivalent vendor-provided security update. Apply this mitigation only as a temporary measure until the JDK upgrade is completed.

1. Background

CVE-2026-114938 is a heap-buffer-overflow vulnerability in the AVX-512 VBMI-optimized Base64 decoder JIT intrinsic in OpenJDK. The vulnerability can potentially allow unauthenticated remote code execution when an affected JVM processes attacker-controlled Base64 input, such as an HTTP Authorization: Basicย header, before authentication.

As an interim mitigation, set the JVM flag -XX:-UseBASE64Intrinsicsย to disable the vulnerable JIT-compiled Base64 decoder and use the non-intrinsic decoder instead.

Several vendors, including AWS Corretto, Elastic, GeoServer, and Quarkus, have documented this workaround. However, Oracle does not list it as an officially supported workaround. Therefore, use this mitigation only as a temporary measure until the affected JDK builds are upgraded to patched versions.

2. Check Whether Your Hosts Are Affected

A host is potentially affected only if both the CPU and JDK version meet the conditions described below. If either check fails, you can skip the remaining mitigation steps for that host.

2.1 Check CPU Compatibility

The vulnerable code path requires all four of the following CPU flags:

  • avx512f
  • avx512bw
  • avx512vbmi
  • bmi2

Run the following command to check whether the CPU supports these flags:

grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'

Note

ARM64 processors, including Apple Silicon, do not support the affected x86-specific code path.

2.2 Check the JDK Version

Run the following command to check the default Java version:

java -version

RHEL/CentOS:

rpm -qa | grep -i -E 'java-17|java-21|java-25|jdk'
dpkg -l | grep -i -E 'openjdk-17|openjdk-21|openjdk-25|jdk'
  • OpenJDK 17.0.6 and later vulnerable builds
  • OpenJDK 21.x
  • OpenJDK 25.x
  • OpenJDK 27.x

JDK 8 and JDK 11 are reported as unaffected, according to the Red Hat CVE tracker.

Important

Check your JDK vendor's security advisory to identify the exact patched version. Version numbering varies by vendor, so do not assume that a version ending in .1ย includes the security fix.

Check the JDK Used by Running Services

A host can have multiple JDK versions installed, and different services might use different versions.

For example:

  • Most services might use /usr/lib/jvm/java-17-openjdk.
  • Trino and Trino Gateway might useย /opt/jdk-23/bin/java.

Run the following command to list Java executables associated with running processes:

ps aux | grep java | awk '{print $11}' | sort -u

Note

Pay particular attention to services running JDK 23. Although JDK 23 is not included in the official affected-version lists referenced here, third-party advisories have reported potential exposure. JDK 23 is also an end-of-life, non-LTS release, and Amazon Corretto 23 lists no planned fix. Do not assume these services are unaffected. See [Section 8]ย for guidance.

2.3 Verify the Running JVM Configuration (Optional)

To check whether the Base64 intrinsic is enabled for a running JVM, run:

sudo jcmd <pid> VM.flags -all | grep -i base64

Check the UseBASE64Intrinsicsย parameter in the output:

  • UseBASE64Intrinsics = true {default}: The Base64 intrinsic is enabled, and the mitigation has not been applied.
  • UseBASE64Intrinsics = false {command line}: The Base64 intrinsic is disabled through a command-line setting, indicating that the mitigation is active.

Note

An enabled Base64 intrinsic does not independently confirm that a host is vulnerable. The CPU compatibility and affected JDK version conditions must also be met.

3. Apply the Mitigation to Ambari Server

Ambari Server runs as a JVM process and handles incoming HTTP authentication requests, including Basic authentication, Kerberos, and LDAP. Therefore, it may be affected by the vulnerability.

To apply the mitigation to Ambari Server:

Step 1: Open the Ambari Server configuration file

On the Ambari Server host, open /var/lib/ambari-server/ambari-env.sh.

Note

Modify /var/lib/ambari-server/ambari-env.sh, which Ambari Server uses during startup. Do not modify /etc/ambari-server/conf/ambari-env.sh, which is the original installation template.

Step 2: Configure the JVM arguments

Locate the AMBARI_JVM_ARGSย configuration and add -XX:-UseBASE64Intrinsicsย immediately after the MetaspaceSize configuration, as shown:

AMBARI_JVM_ARGS+="-XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m "
AMBARI_JVM_ARGS+="-XX:-UseBASE64Intrinsics "
AMBARI_JVM_ARGS+="-Djdk.tls.ephemeralDHKeySize=2048 "

Step 3: Save the changes and restart Ambari Server

Save the configuration file and run the following command:

ambari-server restart
Identify the Ambari Server process ID (PID):
ps aux | grep AmbariServer
sudo jcmd <pid> VM.flags -all | grep -i base64
bool UseBASE64Intrinsics = false {command line}

If the output shows:

bool UseBASE64Intrinsics = true {default}

Important

Verification is mandatory. A successful Ambari Server restart does not confirm that the JVM flag was applied.

I've retained the service configurations in tables, as in your original document. The instructions and special considerations remain outside the tables.

4. Apply the Mitigation to Cluster Services Using the Ambari UI

Apply the JVM flag -XX:-UseBASE64Intrinsics to affected cluster services through the Ambari UI. This disables the Base64 intrinsic for the corresponding JVM processes.

Note

If you upgrade to a patched Ambari or Mpack build that already includes this flag in the default configuration templates, restart the affected services to apply the changes. The following steps apply to environments that require manual mitigation.

4.1 Configure JVM Options

To apply the mitigation:

  1. Log in to the Ambari UI.
  2. Go to Servicesย and select the required service.
  3. Select Configsย > Advanced.
  4. Locate the configuration field specified for the service in the following tables.
  5. Add -XX:-UseBASE64Intrinsicsย to the existing JVM options. Do not remove or replace existing options.
  6. Save the configuration changes.
  7. Restart the affected service. Alternatively, restart all services with stale configurations after completing the changes.

Important

Ensure that the JVM flag is separated from other arguments by spaces. Some service configuration templates concatenate JVM options as strings. If the flag is appended without a space, it might merge with an existing argument and fail to take effect without producing a startup error.

After restarting each service, verify that the flag is applied to the running JVM:

sudo jcmd <pid> VM.flags -all | grep -i base64

The expected output is:

bool UseBASE64Intrinsics = false {command line}

4.2 Core Cluster Services

Configure the JVM flag for the following services.

Service

Configuration field (Advanced tab)

What to add

Knox

knox-env > content

Add export KNOX_GATEWAY_MEM_OPTS="${KNOX_GATEWAY_MEM_OPTS} -XX:-UseBASE64Intrinsics". Prioritize Knox because it handles incoming authentication requests.

HDFS

hadoop-env > content

Add the flag to the JVM options for NameNode, DataNode, SecondaryNameNode, JournalNode, Balancer, ZKFC, DFSRouter, and client processes.

YARN

yarn-env > content

Add the flag to the JVM options for ResourceManager, NodeManager, TimelineServer, TimelineReader, and RegistryDNS.

YARN (Embedded HBase)

yarn-hbase-env > content

Add the flag to the JVM options for the YARN-hosted HBase Master and RegionServer.

MapReduce2

mapred-env > content

Add the flag to the JobHistoryServer JVM options and HADOOP_OPTS.

HBase

hbase-env > content

Add the flag to HBASE_OPTS and the JVM options for Master and RegionServer.

Kafka

kafka-env > content

Add the flag to KAFKA_JVM_PERFORMANCE_OPTS or KAFKA_OPTS, as applicable.

Kafka MirrorMaker2

kafka-mirrormaker2-env > content

Add the flag to the existing JVM options.

Kafka Cruise Control

cruise-control-env > content

Add the flag to the existing JVM options.

Hive

hive-env > content

Add the flag to HADOOP_OPTS and HADOOP_CLIENT_OPTS for Hive Metastore and HiveServer2.

Hive Interactive (LLAP)

hive-interactive-env > content

Add the flag to the existing JVM options.

Oozie

oozie-env > content

Add the flag to CATALINA_OPTS, JETTY_OPTS, and OOZIE_CLIENT_OPTS.

ZooKeeper

zookeeper-env > content

Add the flag to SERVER_JVMFLAGS and CLIENT_JVMFLAGS.

Zeppelin

zeppelin-env > content

Set or uncomment ZEPPELIN_JAVA_OPTS and include the flag.

Druid

druid-env

Append the flag to each of the six druid.<role>.jvm.opts properties: broker, coordinator, historical, middleManager, overlord, and router.

Tez

Custom tez-site

Append the flag to tez.am.launch.cluster-default.cmd-opts and tez.task.launch.cluster-default.cmd-opts.

Ranger

ranger-env > content

Add the flag near the beginning of the ranger-env.sh template for Ranger Admin, UserSync, and TagSync.

Ranger KMS

kms-env > content

Add the flag to the existing JVM options.

Special Consideration for Knox

Unlike other services, Knox uses its own bin/gateway.shย launcher to construct JVM arguments.

The Ambari-managed knox-env.shย file is sourced before gateway.shย runs. Therefore, setting KNOX_GATEWAY_MEM_OPTSย in the Advanced knox-envย configuration makes the JVM flag available to the Knox launcher.

After restarting Knox, verify that -XX:-UseBASE64Intrinsicsย is applied to the running JVM.

4.3 Mpack and Add-on Services

If the following services are installed, configure the JVM flag as applicable.

Service

Configuration field

What to add

Atlas

Advanced atlas-env > content

Add the flag to ATLAS_SERVER_OPTS.

Celeborn

Advanced celeborn-env > content

Add the flag to CELEBORN_MASTER_JAVA_OPTS and CELEBORN_WORKER_JAVA_OPTS.

Flink

Custom flink-conf

Append the flag to env.java.opts.all.

HttpFS

Advanced httpfs-env > content

Add the flag to CATALINA_OPTS.

Impala

Advanced impala-env > content

Add the flag to JAVA_TOOL_OPTIONS.

Isilon OneFS (HDFS-on-Isilon)

Advanced hadoop-env > content

Apply the same configuration as HDFS.

Kafka 3

Corresponding Advanced *-env content fields

Add the flag to KAFKA_OPTS or KAFKA_JVM_PERFORMANCE_OPTS for broker, controller, MirrorMaker2, and Cruise Control.

Kafka 4

Corresponding Advanced *-env content fields

Apply the same configuration as Kafka 3.

NiFi

Advanced nifi-bootstrap-env > content

Add java.arg.cve202611493=-XX:-UseBASE64Intrinsics.

NiFi Registry

Advanced nifi-registry-bootstrap-env > content

Add the same JVM argument property.

NiFi 2 and NiFi Registry 2

Corresponding bootstrap environment fields

Add the same JVM argument property.

Ozone

Advanced ozone-env > content

Add the flag to OZONE_OM_OPTS, OZONE_DATANODE_OPTS, OZONE_SCM_OPTS, OZONE_RECON_OPTS, and OZONE_S3G_OPTS. Verify the S3 Gateway variable name before editing.

Pinot

Custom pinot-broker-conf, pinot-controller-conf, pinot-minion-conf, and pinot-server-conf

Append the flag to each JAVA_OPTS configuration.

Polaris

Advanced polaris-env > polaris_java_opts

Set the property to -XX:-UseBASE64Intrinsics.

Schema Registry

Advanced registry-env > content

Add the flag to REGISTRY_OPTS.

SeaTunnel

Custom jvm-options

Append the flag to jvm_master_options, jvm_worker_options, and jvm_client_options.

Solr

Advanced solr-env > content

Add the flag to SOLR_OPTS.

Spark 2 and Livy 2

Advanced spark2-env, Custom spark2-defaults, Custom spark2-thrift-sparkconf, and Advanced livy2-env

Add the flag to SPARK_SUBMIT_OPTS, SPARK_DAEMON_JAVA_OPTS, spark.executor.extraJavaOptions, and LIVY_SERVER_JAVA_OPTS.

Spark 3 and Livy 3

Corresponding spark3-env and livy3-env fields

Apply the same JVM options as Spark 2 and Livy 2.

Spark 4 and Livy 4

Corresponding spark4-env and livy4-env fields

Apply the same JVM options as Spark 2 and Livy 2.

Trino

Custom jvm-config

Append -XX:-UseBASE64Intrinsics on a new line.

Trino Gateway

No Ambari UI configuration field is available.

Modify the Ambari agent's cached params.py file on each host or upgrade to a patched Trino Gateway Mpack. See the following section.

4.4 Apply the Mitigation to Trino Gateway

Trino Gateway does not expose a JVM options field in the Ambari UI. Its JVM command is constructed directly in the params.pyย script included in the Trino Gateway Mpack.

To apply the mitigation:

  1. On each host running Trino Gateway, locate the cached params.pyย file. The typical path is:
    /var/lib/ambari-agent/cache/common-services/TRINO-GATEWAY/15/package/scripts/params.py
  2. Open the file and locate the base_start_commandย configuration.
  3. Addย -XX:-UseBASE64Intrinsicsย to the Java command string immediately after the MaxRAMPercentageย argument.
  4. Save the changes.
  5. Restart Trino Gateway.
  6. Verify that the flag is applied to the running JVM using jcmd.

Important

Changes to the Ambari agent cache are temporary. An agent cache refresh or Mpack reinstallation might overwrite the modified script. Upgrade to a patched Trino Gateway Mpack when available.

Note

Trino and Trino Gateway might use a different JDK from other services on the same host. Verify the actual Java executable used by each process. In one validated cluster, both services used ย /opt/jdk-23/bin/java, while other services used JDK 17.

4.5 Verify the Ozone S3 Gateway Configuration

The Ozone launcher determines the JVM options variable based on the daemon name.

For the S3 Gateway, the launcher expectsย OZONE_S3G_OPTS. However, some older Ozone Mpack versions useย OZONE_S3_GATEWAY_OPTS, which the launcher does not read.

To verify the configuration:

  1. Locate the rendered ozone-env.shย file.
  2. Run the following command, replacing the placeholder with the actual file path:
grep -n 'OZONE_S3_GATEWAY_OPTS\|OZONE_S3G_OPTS' <path_to_ozone-env.sh>
  1. Check the output:
    • If OZONE_S3G_OPTS exists:ย Add the JVM flag to the existing variable.
    • If only OZONE_S3_GATEWAY_OPTS exists:ย Add the following line to the environment configuration:
export OZONE_S3G_OPTS="$OZONE_S3G_OPTS -XX:-UseBASE64Intrinsics"
  1. Save the changes and restart the Ozone S3 Gateway.
  2. Verify that the JVM flag is applied.

Note

The variable naming issue has been fixed in newer Ozone Mpack builds. Upgrade to a version containing the fix to ensure that the S3 Gateway uses its configured JVM options, including heap settings.

5. Restart Affected Services

After updating the JVM configurations, Ambari marks the affected services as Restart Required.

To restart the affected services:

  1. In the Ambari UI, click Restart Requiredย in the top banner.
  2. Select Restart All Affectedย to restart all services with configuration changes.
    Alternatively, restart services individually to perform a staggered rollout.

Note

Restart Ambari Server separately, as it is not included in the cluster-wide service restart. For instructions, see [Section 3: Apply the Mitigation to Ambari Server].

6. Verify the Mitigation

After restarting the affected services, verify that the JVM flag is applied to each modified service.

Run the following command, replacing <pid>ย with the corresponding service process ID:
sudo jcmd <pid> VM.flags -all | grep -i base64
bool UseBASE64Intrinsics = false {command line}

If the output shows UseBASE64Intrinsics = true {default}, the mitigation is not applied.

Troubleshoot Verification Failures

If the JVM flag is not applied after restarting the service, check the following:

  1. Missing spaces between JVM arguments:ย Ensure that the flag is separated from the preceding argument by a space. Some configuration templates concatenate JVM options as strings. A missing space might cause the flag to merge with another argument and prevent it from taking effect.
  2. Configuration changes overwritten during restart:ย Ambari regenerates managed configuration files during service restarts. Changes made directly to files under /etc/<service>/conf/ย might be overwritten. To ensure that changes persist, update the configuration through Ambari UI > Services > Configs, save the changes, and restart the service.
    Note:ย Ambari-managed files typically contain the following header:
# -- Auto-Managed File by Ambari -- #
  1. Incorrect JVM options variable:ย Verify that the variable you modified is used by the service launcher. For example, the Ozone S3 Gateway expects OZONE_S3G_OPTS, but some older Mpack versions use OZONE_S3_GATEWAY_OPTS.
    To investigate, compare the running process arguments with the service environment configuration:
ps aux | grep <daemon-class>
  1. If none of the JVM options from the modified configuration appear in the process arguments, check for a mismatch between the configured variable and the variable expected by the service launcher.
  2. JVM attachment failure:ย In some environments, jcmdย might fail to attach to the running JVM. This behavior has been observed with Pinot, Trino, and Trino Gateway.
    Example error:
AttachNotSupportedException: Unable to open socket file /tmp/.java_pid<pid>: target process <pid> doesn't respond within 10500ms or HotSpot VM not loaded
  1. This error might occur because of JVM attachment restrictions, temporary directory isolation, or stale socket files. It does not necessarily indicate that the mitigation failed.
    If jcmdย fails, inspect the running process arguments:
ps aux | grep <daemon-class>
  1. Verify that -XX:-UseBASE64Intrinsicsย appears as a separate JVM argument. This confirms that the flag was passed to the Java process at startup, although it does not independently confirm the JVM's effective runtime flag state.

Important

A successful service restart does not confirm that the mitigation is applied. Verify the JVM configuration for each affected service before considering the mitigation complete.

7. Roll Back the Mitigation

To roll back the mitigation:

  1. Remove the -XX:-UseBASE64Intrinsics flag from the JVM configuration of the affected services.
  2. Save the configuration changes.
  3. Restart the affected services to apply the changes.
  4. Verify that the JVM flag is no longer disabled.

Note

This mitigation does not modify application data or state. It only changes the Base64 decoder code path used by the JVM. Therefore, the configuration can be rolled back without data loss. However, rolling back before upgrading to a patched JDK might reintroduce exposure to the vulnerability.

8. Apply the Permanent Fix

The -XX:-UseBASE64Intrinsicsย flag is a temporary mitigation and does not resolve the underlying vulnerability. The permanent fix is to upgrade the affected JDK installations to vendor-patched versions.

To apply the permanent fix:

  1. Check hardware compatibility:ย Verify whether the host's CPU supports the vulnerable code path. Hosts that do not meet the hardware requirements can be deprioritized. See Section 2.1.
  2. Identify the patched JDK version:ย Check your JDK vendor's security advisory (Oracle, Red Hat, Amazon Corretto, or Eclipse Temurin) to identify the patched build for CVE-2026-114938.
  3. Upgrade the JDK:ย Install the patched JDK version on each affected host. Ensure that all JDK installations used by services are updated.
  4. Restart the affected services:ย Restart all JVM services that use the upgraded JDK to ensure they run on the patched version.
  5. Remove the temporary mitigation:ย After verifying that the services are running on the patched JDK, you can removeย -XX:-UseBASE64Intrinsicsย from their JVM configurations. The flag is no longer required after the JDK is patched.

Special Considerations for JDK 23

JDK 23 requires a separate remediation plan because it is an end-of-life, non-LTS release.

  • Amazon Corretto lists No Fix Plannedย for JDK 23.
  • JDK 23 is not included in Oracle's official affected-version list, although third-party security trackers have reported potential exposure.
  • A patched JDK 23 point release is not expected.

For services running on JDK 23:

  1. Identify the services using JDK 23 by checking their running JVM processes, as described in Section 2.2.
  2. Plan migration to a supported, patched JDK release, such as JDK 25 or 27, subject to service compatibility.
  3. Continue using the -XX:-UseBASE64Intrinsicsย mitigation until the migration is completed.
  4. After migration, verify that the services are running on the patched JDK before removing the mitigation.

Important

Migrating from JDK 23 to another major JDK version might require compatibility testing and configuration changes. Plan and validate the migration separately rather than treating it as a routine JDK package update.