Repository navigation
Java4Shell (CVE-2026-114938): Mitigation for EJBCA and SignServer Community Edition #1089
KarolinHem
announced in
Announcements
Replies: 1 comment
|
A note that setting JAVA_OPTS_CUSTOM overrides automagic memory configuration in the container startup scripts. I.e without JAVA_OPTS_CUSTOM set: with JAVA_OPTS_CUSTOM set: So you may need to configure Java memory settings manually in the JAVA_OPTS_CUSTOM depending on your RAM size etc. I.e. If you start the container without setting JAVA_OPTS_CUSTOM it will display the default selected settings on stdout during WildFly startup. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
NOTE: If you are an EJBCA or SignServer Enterprise customer, please visit the customer support portal for more detailed information.
For detailed information CVE-2026-114938, visit https://calif.io/java4shell or https://www.oracle.com/security-alerts/alert-cve-2026-114820.html
About the Vulnerability
On November 17, 2026, information was published regarding CVE-2026-114938, a vulnerability in the Java runtime widely referred to as “Java4Shell.” The vulnerability affects Base64 processing in certain Java runtime and processor combinations and could potentially result in memory corruption and remote code execution.
This is an industry-wide issue in the Java runtime itself. It is not specific to Keyfactor, and it affects Java-based software from many vendors. It is not related to Log4Shell. We are treating this issue as a top priority.
Mitigation Instructions
Update Java version or until you can upgrade to a patched Java runtime, start the JVM that runs EJBCA with this option:
-XX:-UseBASE64IntrinsicsOn WildFly or JBoss EAP, add it to
JAVA_OPTSinbin/standalone.confand restart. The option switches off only the affected code, so EJBCA’s performance shouldn’t noticeably change.The option switches off only the affected code, so EJBCA’s performance shouldn’t noticeably change. You may see the option
-XX:UseAVX=2suggested elsewhere. We don’t recommend this: it changes a lot more of how the JVM behaves, and on ARM the JVM won’t start with it.Remove the option once you’re on a patched Java version.
If you are using the EJBCA or SignServer container (Helm chart), add the JVM option using the environment variable
JAVA_OPTS_CUSTOMin theejbca.envsection of the Helm chart, then redeploy. For example:ejbca: env: # ... other parameters JAVA_OPTS_CUSTOM: "-XX:-UseBASE64Intrinsics" # rest of the valuesIf using Docker, you can add the option to the Docker command line. For example:
$ docker run -it --rm -p 80:8080 -p 443:8443 -h mycahostname -e TLS_SETUP_ENABLED="simple" -e JAVA_OPTS_CUSTOM="-XX:-UseBASE64Intrinsics" keyfactor/ejbca-ceConfirm the mitigation is active. After the restart or redeploy, check that the running process has the option:
jcmd <pid> VM.flags | grep UseBASE64IntrinsicsEJBCA CLI, SignServer CLI, and clientToolBox
bin/ejbca.shandejbcaClientToolBox.sheach run in their own JVM, so they need the option too. Set it in the environment before you run them:export JDK_JAVA_OPTIONS="-XX:-UseBASE64Intrinsics"On Windows, run
set JDK_JAVA_OPTIONS=-XX:-UseBASE64Intrinsicsbeforebin\ejbca.cmdorejbcaClientToolBox.bat.All reactions