CVE-2026-114938 can let an attacker gain remote code execution on some
Java 17 and 21 builds, including Oracle JDK and OpenJDK builds, when the
host CPU exposes the AVX512_VBMI instruction set. This page shows how to
mitigate CVE-2026-114938 on Apigee Edge for Private Cloud 4.54.00 by
adding the JVM option `-XX:UseAVX=2` to each Java-based component,
without upgrading Edge for Private Cloud or the JDK. This option limits HotSpot to
AVX2 instructions, which prevents the JVM from generating the vulnerable
AVX-512 Base64 code.

If you can upgrade the JDK on every node to a Java 17 or Java 21 build that
fixes CVE-2026-114938, you don't need these steps.

> [!NOTE]
> **Note:** `-XX:-UseBASE64Intrinsics` is an equivalent mitigation. You can use it instead of `-XX:UseAVX=2` in every line on this page. Don't add `-XX:+IgnoreUnrecognizedVMOptions` to these properties: with it, a mistyped option is silently ignored and the node stays vulnerable, and `apigee-qpidd` accepts only one JVM option. Other advisories include it so that the JVM still starts on non-x86 hosts; those hosts aren't affected and are excluded in [Before you
> begin](https://docs.apigee.com/private-cloud/v4.54.00/mitigate-cve-2026-114938#before-you-begin).

## Before you begin

In the commands on this page, replace <var translate="no">COMPONENT</var> with a component
name from [Properties to set for each component](https://docs.apigee.com/private-cloud/v4.54.00/mitigate-cve-2026-114938.md.txt#properties), for
example `edge-message-processor`. Replace <var translate="no">JDK_HOME</var> with
the installation directory of the JDK that the component runs on.

> [!WARNING]
> **Warning:** Run `jcmd` by its fully qualified path, `JDK_HOME/bin/jcmd`, in every command on this page. The location of `jcmd` depends on how Java was installed on each node, so it might not be on the `apigee` user's `PATH`, or a different JDK's `jcmd` might be found first.

Apply this mitigation to a node only if all of the following are true:

- The node runs Edge for Private Cloud 4.54.00.00 or 4.54.00.01.
- The node runs a Java 17 or 21 build that isn't fixed for
  CVE-2026-114938. To see the version a running component uses, run:

  ```
  sudo -u apigee JDK_HOME/bin/jcmd "$(cat /opt/apigee/var/run/COMPONENT/COMPONENT.pid)" VM.version
  ```
- The host CPU exposes AVX512_VBMI. The following command prints
  `affected CPU` if it does:

  ```
  grep -wq avx512vbmi /proc/cpuinfo && echo "affected CPU"
  ```

  Match the exact flag `avx512vbmi`; the similar flag
  `avx512_vbmi2` doesn't count.

You need `sudo` access on each node. Plan a rolling restart:
each component restarts once.

> [!NOTE]
> **Note:** If `apigee-monit` runs on a node, either stop `apigee-monit` before you restart components and start it again afterward, or unmonitor the components temporarily and monitor them again afterward.

## Properties to set for each component

Each component reads its JVM options from a different property, and each
property has its own quoting rule. Use the line for your component exactly as
shown.

| Component | Properties file | Line to add | Rules |
|---|---|---|---|
| `edge-message-processor` | `message-processor.properties` | `bin_setenv_ext_jvm_opts="-Djava.security.debug=properties -XX:UseAVX=2"` | Keep the double quotes. Without them, `setenv.sh` fails at startup. Keep `-Djava.security.debug=properties`; it's the shipped default for this property. If the property already exists, add `-XX:UseAVX=2` inside its existing quotes instead of adding a second line. |
| `edge-management-server` | `management-server.properties` | `bin_setenv_ext_jvm_opts="-Djava.security.debug=properties -XX:UseAVX=2"` | Keep the double quotes. Without them, `setenv.sh` fails at startup. Keep `-Djava.security.debug=properties`; it's the shipped default for this property. If the property already exists, add `-XX:UseAVX=2` inside its existing quotes instead of adding a second line. |
| `edge-router` | `router.properties` | `bin_setenv_ext_jvm_opts="-Djava.security.debug=properties -XX:UseAVX=2"` | Keep the double quotes. Without them, `setenv.sh` fails at startup. Keep `-Djava.security.debug=properties`; it's the shipped default for this property. If the property already exists, add `-XX:UseAVX=2` inside its existing quotes instead of adding a second line. |
| `edge-qpid-server` | `qpid-server.properties` | `bin_setenv_ext_jvm_opts="-Djava.security.debug=properties -XX:UseAVX=2"` | Keep the double quotes. Without them, `setenv.sh` fails at startup. Keep `-Djava.security.debug=properties`; it's the shipped default for this property. If the property already exists, add `-XX:UseAVX=2` inside its existing quotes instead of adding a second line. |
| `edge-postgres-server` | `postgres-server.properties` | `bin_setenv_ext_jvm_opts="-Djava.security.debug=properties -XX:UseAVX=2"` | Keep the double quotes. Without them, `setenv.sh` fails at startup. Keep `-Djava.security.debug=properties`; it's the shipped default for this property. If the property already exists, add `-XX:UseAVX=2` inside its existing quotes instead of adding a second line. |
| `edge-uapim-connector` (optional) | `uapim-connector.properties` | `bin_setenv_ext_jvm_opts="-Djava.security.debug=properties -XX:UseAVX=2"` | Keep the double quotes. Without them, `setenv.sh` fails at startup. Keep `-Djava.security.debug=properties`; it's the shipped default for this property. If the property already exists, add `-XX:UseAVX=2` inside its existing quotes instead of adding a second line. |
| `apigee-cassandra` | `cassandra.properties` | `conf_jvm_options_custom_settings=-XX:UseAVX=2` | Don't add quotes. A quoted value is silently ignored. To set more than one flag, separate them with a literal `\n`, not a space. Don't also set the flag in `conf_jvm17_options_custom_settings`; both properties are loaded on Java 17, so the flag would be passed twice. |
| `apigee-zookeeper` | `zookeeper.properties` | `lib_settings_zk_jvm_opts=-XX:UseAVX=2` | Don't add quotes. `zookeeper-env.sh` already quotes the value, and extra quotes break startup. Separate more than one flag with spaces. |
| `apigee-qpidd` | `qpidd.properties` | `bin_run-qpidd_qpid.run.jvm.misc_args=-XX:UseAVX=2` | Don't add quotes. `run-qpidd` already quotes the value. This property accepts exactly one JVM option with no spaces. |

> [!NOTE]
> **Note:** `edge-qpid-server` (the analytics consumer) and `apigee-qpidd` (the Qpid broker) are separate components; set the flag for each one that runs on the node. `edge-uapim-connector` is an optional component; apply these steps to it only if you use it. `apigee-postgresql` is a native binary, not a JVM, and needs no change.

## Apply the mitigation

Repeat these steps for each component on each node. In the commands,
replace <var translate="no">FILE</var> with the component's properties file from
[Properties to set for each component](https://docs.apigee.com/private-cloud/v4.54.00/mitigate-cve-2026-114938.md.txt#properties).

1. Open `/opt/apigee/customer/application/FILE` in an editor. Create the file if it doesn't exist.
2. Add the line for the component from the table, following its rules.
3. Make sure the `apigee` user owns the file and can read
   it:

       sudo chown apigee:apigee /opt/apigee/customer/application/FILE
       sudo chmod 0644 /opt/apigee/customer/application/FILE

4. Restart the component and wait until it's ready:

       sudo /opt/apigee/apigee-service/bin/apigee-service COMPONENT restart
       sudo /opt/apigee/apigee-service/bin/apigee-service COMPONENT wait_for_ready

5. Confirm the running JVM uses the option:

   ```
   sudo -u apigee JDK_HOME/bin/jcmd "$(cat /opt/apigee/var/run/COMPONENT/COMPONENT.pid)" VM.flags -all=true | grep -wE "UseAVX|UseBASE64Intrinsics"
   ```

   The output must show `UseAVX = 2` with
   `{command line}`, for example:

   ```
   int UseAVX = 2 {ARCH product} {command line}
   bool UseBASE64Intrinsics = true {product} {default}
   ```

   If you used `-XX:-UseBASE64Intrinsics` instead, the output
   must show `UseBASE64Intrinsics = false` with
   `{command line}`. If the expected line doesn't show both
   `{command line}` and the expected value, recheck the flag
   spelling and the quoting rule for the component, then restart
   again.
6. Move to the next node only after `wait_for_ready` succeeds, in the order described in [Restart order](https://docs.apigee.com/private-cloud/v4.54.00/mitigate-cve-2026-114938.md.txt#restart-order).

### Restart order

Restart one node at a time so that traffic and quorum are kept:

- **Message Processors and Routers** : One node at a time; wait for `wait_for_ready` before the next.
- **Cassandra** : One node at a time; wait for `wait_for_ready` before the next.
- **ZooKeeper** : Followers first, the leader last, one node at a time; wait for `wait_for_ready` before the next.
- **Management Servers, Qpid Servers, Postgres Servers, Qpid
  brokers, and UAPIM connectors** : One node at a time; wait for `wait_for_ready` before the next.

## Roll back the change

1. In `/opt/apigee/customer/application/FILE`,
   remove the line you added. If the line also holds other options you
   set, remove only the option you added for this CVE:

   - For the `edge-*` components, keep the double quotes and `-Djava.security.debug=properties`. If you remove the whole `bin_setenv_ext_jvm_opts` line, the shipped default is restored.
   - For `apigee-cassandra`, also remove the `\n` separator next to the option.
2. Restart the component and wait until it's ready:

       sudo /opt/apigee/apigee-service/bin/apigee-service COMPONENT restart
       sudo /opt/apigee/apigee-service/bin/apigee-service COMPONENT wait_for_ready

Rolling back reopens exposure to CVE-2026-114938 on that node unless the
JDK has been upgraded to a fixed build.