A critical vulnerability affecting Java has been disclosed. It is known as Java4Shell (CVE-2026-114938). It could let an attacker run arbitrary code or read sensitive data from applications running on a vulnerable Java runtime.
Alfresco Content Services (ACS) and several components around it run on Java. So developers and administrators should review their deployments and apply the available mitigation.
This post explains what the vulnerability is, whether it affects Alfresco, and what you can do to protect your environment. It is a practical security advisory. It does not claim that ACS has been confirmed exploitable.
Status. OpenJDK and Oracle released fixes on November 17, 2026. The interim mitigation is the JVM option -XX:-UseBASE64Intrinsics, which works on every CPU architecture. This post reflects the information available on November 18, 2026.
What is Java4Shell
Java4Shell is a memory-corruption bug in the optimized Base64 decoder in OpenJDK.
Base64 encoding is used widely in Java applications: HTTP authentication, security tokens, and document processing all use it.
The bug is in a hardware-accelerated version of the Base64 decoder. That version uses AVX-512 instructions on some x86-64 processors. Under specific conditions, a crafted Base64 input makes the JVM write memory outside its intended bounds.
Researchers have shown this can lead to:
- Remote code execution (RCE)
- Disclosure of sensitive data from JVM memory
- Application crashes or denial of service
The vulnerability has a CVSS 4.0 score of 9.2 (Critical).
For the technical details, see the original research: Java4Shell: Write once, RCE everywhere.
Is Alfresco affected
Alfresco deployments may be affected. It depends on the Java runtime, the underlying hardware, and how the application is exposed.
This is not a bug in Alfresco's own application code. It affects the Java runtime on which Alfresco and other Java services run.
These components are worth reviewing:
- Alfresco Content Services: the repository runs on Java.
- Alfresco Share: the web application also runs on Java.
- Alfresco Search Services: Solr and Elasticsearch appeared in the researchers' application-level demonstrations.
- Alfresco Identity Service: Keycloak was shown to be exploitable without authentication in affected configurations.
- Alfresco Transform Services: the Java-based transform components should also be reviewed.
- Custom extensions and integrations: Java applications that talk to Alfresco may add more exposure.
A vulnerable Java version does not by itself make an Alfresco deployment remotely exploitable. An exploitable setup needs all of these at once:
- A Java runtime that contains the vulnerable Base64 implementation.
- An x86-64 processor that supports AVX-512 VBMI.
- A reachable application path that sends attacker-controlled Base64 input through the affected decoder.
As of this publication, there is no publicly confirmed Alfresco-specific remote code execution exploit. Even so, we recommend reviewing deployments that could be affected, rather than waiting for an application-specific proof of concept.
How to check your deployment: Java version
For an Alfresco deployment that uses Docker Compose, run:
docker compose exec alfresco java -version
Check the Java vendor and the full runtime version.
Unpatched OpenJDK-based builds in the Java 17 line from 17.0.6, and affected Java 21, 25, and 27 builds, are potentially vulnerable. Standard OpenJDK 8 and 11 do not contain this implementation. Some specialized Java builds may need a separate check.
Read your Java vendor's security advisory to find out whether your specific build already includes the fix.
How to check your deployment: CPU architecture
The vulnerability needs a specific hardware feature: AVX-512 VBMI.
On Linux, check the architecture:
uname -m
For an x86-64 system, inspect the CPU flags:
grep -m1 '^flags' /proc/cpuinfo \
| tr ' ' '\n' \
| grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'
If all four flags are present, the CPU supports the instruction set that the vulnerable implementation uses.
Commonly affected processor families:
- Intel Xeon Ice Lake and newer supported generations
- AMD Zen 4 and newer supported generations
ARM64 systems, including Apple Silicon, are not affected by this specific vulnerability.
For containers, check the CPU capabilities exposed to the container. In Kubernetes, remember that workloads can move between nodes with different processors.
How to check your deployment: all Java services
Do not limit the check to the Alfresco repository container.
List your Docker Compose services:
docker compose ps
Check the Java runtime in every Java-based service, including search, identity, and transform services where they apply. Updating Java on the Docker host does not update the runtime bundled inside the container images.
How to mitigate: Docker Compose
The recommended interim mitigation is to disable the vulnerable Base64 hardware acceleration with this JVM option:
-XX:-UseBASE64Intrinsics
This option stops the JVM from using the vulnerable optimized decoder. It keeps the other CPU optimizations.
Add the JAVA_TOOL_OPTIONS environment variable to the affected Java services in your compose.yaml:
services:
alfresco:
environment:
JAVA_TOOL_OPTIONS: "-XX:-UseBASE64Intrinsics"
Important: if your configuration already sets JAVA_TOOL_OPTIONS, append the flag to the current value. Do not replace the existing options.
Apply the same change to the other affected Java services, such as Share, search, identity, or transform components, as your deployment requires. Then recreate the affected containers:
docker compose up -d --force-recreate alfresco
Repeat for any other service that needs the mitigation.
How to mitigate: Kubernetes
For Kubernetes, set the environment variable in the affected workload's container definition:
env:
- name: JAVA_TOOL_OPTIONS
value: "-XX:-UseBASE64Intrinsics"
If you use Helm, apply the change through the chart configuration or template and roll out the updated workload. Keep any existing JVM options and validate the result.
How to verify the mitigation
After you restart the affected service, check the effective JVM configuration:
docker compose exec alfresco \
java -XX:+PrintFlagsFinal -version 2>&1 \
| grep UseBASE64Intrinsics
The output should show:
UseBASE64Intrinsics = false
This confirms the setting for a newly started JVM in the container. Also confirm that the running application process was restarted with the mitigation.
An alternative mitigation, and its caveat
Another option is:
-XX:UseAVX=2
This disables AVX-512 instructions entirely. Use it only on compatible x86-64 JVMs. It can stop the JVM from starting on ARM64, so it is not suitable for mixed-architecture environments. For Alfresco, we recommend -XX:-UseBASE64Intrinsics as the preferred interim mitigation, because it works on every architecture.
What about the permanent fix
Disabling the Base64 intrinsic is a temporary workaround.
OpenJDK and Oracle released fixes on November 17, 2026. Patched builds and container images may arrive at different times for different Java distributions and application vendors.
The permanent fix is to upgrade to a Java runtime that includes the security fix. For Alfresco, we recommend this order:
- Identify the Java distribution and exact version used by each service.
- Check whether the Java vendor provides a patched build.
- Update the affected container images through their supported upgrade path.
- Test the updated deployment, including authentication, search, and document transformations.
- Remove the temporary JVM option once all relevant runtimes are patched.
An updated host operating system does not mean your application containers run the patched Java runtime.
Final recommendations
Java4Shell shows how a bug in a shared runtime can affect many applications, even when the application code itself has not changed.
For Alfresco developers and administrators, the recommendation is simple: check your Java runtime, verify your hardware architecture, apply the mitigation to workloads that could be exposed, and plan the upgrade to a patched Java version. There is no need to wait for an Alfresco-specific exploit before you take these steps.
We will keep following the available security information. We encourage community members to review their deployments, in particular those running on modern x86-64 servers.
References