问题描述
Does the COMSOL software contain an OpenJDK™ based Java runtime and, if so, is it affected by known security vulnerabilities in OpenJDK? Can a newer OpenJDK based Java runtime version be used before the next COMSOL product update?
解决方法
Summary
The COMSOL software includes an OpenJDK based Java runtime that is used by COMSOL Multiphysics®, COMSOL Server™, Model Manager server, and other COMSOL software components.
The Java runtime bundled with the COMSOL software is updated periodically through COMSOL product updates. Since COMSOL and Java updates are released on different schedules, the latest COMSOL product updates may not include the latest Java security fixes. See below for information about known vulnerabilities, recommended mitigations, the OpenJDK versions bundled with supported COMSOL versions, and how to use a custom OpenJDK based Java runtime.
Current status
The currently available COMSOL product updates include Java runtimes with known security vulnerabilities. The following applies to installations using the default Java runtime:
- COMSOL 6.4 Update 3: The included Java 21 runtime is affected by the eMudhra certificate vulnerabilities (CVE-2026-114820, CVE-2026-91403) and by Java4Shell (CVE-2026-114938) on x86-64 processors supporting AVX-512 VBMI.
- COMSOL 6.3 Update 3: The included Java 11 runtime is affected by the eMudhra certificate vulnerabilities (CVE-2026-114820, CVE-2026-91403), but not by Java4Shell.
For both versions, the recommended solution is to use an updated Java runtime until COMSOL product updates addressing these vulnerabilities are available. For COMSOL 6.4, use Java 21 version 21.0.13.1+2 or newer. For COMSOL 6.3, use Java 11 version 11.0.33+10 or newer. Alternatively, the vulnerabilities can be mitigated manually using the instructions below.
Details
Information about eMudhra vulnerabilities
In October 2026, it was disclosed that private keys corresponding to several eMudhra intermediate CA certificates had been compromised (CVE-2026-114820, CVE-2026-91403). The latest versions of COMSOL software currently include affected certificates in their default Java runtime. Java security updates address this issue by distrusting the affected certificates and removing the relevant root certificates from the Java trust store. Until COMSOL updates have been published, the following mitigations are available:
Option 1. Use an updated Java runtime. For COMSOL 6.4 Update 3, download a Java 21 runtime, version 21.0.13+9 or newer, from Adoptium > Download Temurin® JDK. Select JDK as the package type and select the applicable operating system and processor architecture. Run the COMSOL installer, select Custom for Java runtime environment in the Options step, and choose the path to the downloaded runtime as Location. For an existing installation, run the installer and select Add/Remove Products and Reinstall in the first step.
Option 2. Manually remove the affected certificates. If updating to a custom Java runtime is not practical, the affected certificates can instead be removed from the Java trust store included with the COMSOL software. See Manual mitigation of eMudhra vulnerabilities below for instructions.
Information about Java4Shell vulnerabilities
In November 2026, it was disclosed that a vulnerability in the Java runtime (CVE-2026-114938), known as Java4Shell, could allow remote code execution on x86-64 processors supporting AVX-512 VBMI. Java 21 runtimes bundled with COMSOL 6.4 are affected on such processors, while Java 11 runtimes bundled with COMSOL 6.3 are not affected. Java security updates address this issue. Until COMSOL updates have been published, the following mitigations are available:
Option 1. Use an updated Java runtime. For COMSOL 6.4 Update 3, download a Java 21 runtime, version 21.0.13.1+2 or newer, from Adoptium > Download Temurin® JDK. Select JDK as the package type and select the applicable operating system and processor architecture. Run the COMSOL installer, select Custom for Java runtime environment in the Options step, and choose the path to the downloaded runtime as Location. For an existing installation, run the installer and select Add/Remove Products and Reinstall in the first step.
Option 2. Limit the Java runtime to AVX2 instructions. If updating to a custom Java runtime is not practical, the vulnerability can instead be mitigated using the Java option -XX:UseAVX=2. See Manual mitigation of Java4Shell below for instructions.
Security vulnerabilities
Security vulnerabilities affecting OpenJDK based Java runtimes are listed by the OpenJDK Vulnerability Group on the OpenJDK Vulnerability Advisories page.
Not all security vulnerabilities of OpenJDK apply to the COMSOL software, since the COMSOL software does not use all Java runtime functionality and may not have enabled the affected features.
Vulnerability assessments
The following notable vulnerabilities are fixed in the latest security updates of OpenJDK but not in the versions that are bundled with the latest supported COMSOL versions:
CVE-2026-114820, CVE-2026-91403
Assessment: Affected
These vulnerabilities affect eMudhra certificates trusted by the Java runtime. To work around the vulnerabilities, either follow the general instructions under Using a newer OpenJDK runtime below to use a custom Java runtime, or the specific instructions under eMudhra certificate security issue to patch an older Java runtime.CVE-2026-114938 (Java4Shell)
Assessment: Affected
COMSOL 6.4 is affected on x86-64 processors supporting AVX-512 VBMI. COMSOL 6.3 is not affected. To address this vulnerability, either follow the instructions under Using a newer OpenJDK runtime to use an updated Java runtime, or the instructions under Java4Shell security issue to apply a workaround.
Using a newer OpenJDK runtime
A custom OpenJDK based Java runtime can be used if it meets the applicable system requirements:
- COMSOL 6.4: Java 21 version 21.0.7 or later
- COMSOL 6.3: Java 11 version 11.0.24 or later
The COMSOL software includes OpenJDK based Java runtimes from the Eclipse Temurin project. Newer Eclipse Temurin runtimes can be obtained from the Eclipse Temurin releases page. Select the applicable Java version and operating system, and select JDK as the package type. Other OpenJDK based runtimes meeting the applicable system requirements can also be used.
To use a custom Java runtime, launch the COMSOL installer, select a custom Java runtime instead of the built-in Java runtime, and specify the location of the custom runtime.
Note: Compatibility between the COMSOL software and new OpenJDK runtime versions cannot be guaranteed until they have been tested. If you use a custom Java runtime and encounter issues, please check whether the issue also occurs with the built-in runtime and contact COMSOL Support if needed.
Mitigations
Manual mitigation of eMudhra vulnerabilities
For COMSOL Multiphysics 6.4 Update 3 and 6.3 Update 3 with the default installation paths, the affected certificates can be removed from the Java trust store by running the applicable commands below as administrator.
COMSOL 6.4 Update 3:
For this version, only one certificate needs to be removed. Run the command for the applicable operating system. If prompted for the password of the Java cacerts file, its default password is changeit.
- Windows:
"C:\Program Files\COMSOL\COMSOL64\Multiphysics\java\win64\jre\bin\keytool.exe" -delete -cacerts -alias "cn_emsign_ecc_root_ca__g3,o_emudhra_technologies_limited,ou_emsign_pki,c_in [jdk]" - Linux:
/usr/local/comsol64/multiphysics/java/glnxa64/jre/bin/keytool -delete -cacerts -alias "cn_emsign_ecc_root_ca__g3,o_emudhra_technologies_limited,ou_emsign_pki,c_in [jdk]" - macOS:
/Applications/COMSOL64/Multiphysics/java/macarm64/jre/bin/keytool -delete -cacerts -alias "cn_emsign_ecc_root_ca__g3,o_emudhra_technologies_limited,ou_emsign_pki,c_in [jdk]"
COMSOL 6.3 Update 3:
For this version, two certificates need to be removed. Run both commands for the applicable operating system. If prompted for the password of the Java cacerts file, its default password is changeit.
- Windows:
"C:\Program Files\COMSOL\COMSOL63\Multiphysics\java\win64\jre\bin\keytool.exe" -delete -cacerts -alias "cn=emsign_ecc_root_ca_-_g3,o=emudhra_technologies_limited,ou=emsign_pki,c=in""C:\Program Files\COMSOL\COMSOL63\Multiphysics\java\win64\jre\bin\keytool.exe" -delete -cacerts -alias "cn=aaa_certificate_services,o=comodo_ca_limited,l=salford,st=greater_manchester,c=gb"
- Linux:
/usr/local/comsol63/multiphysics/java/glnxa64/jre/bin/keytool -delete -cacerts -alias "cn=emsign_ecc_root_ca_-_g3,o=emudhra_technologies_limited,ou=emsign_pki,c=in"/usr/local/comsol63/multiphysics/java/glnxa64/jre/bin/keytool -delete -cacerts -alias "cn=aaa_certificate_services,o=comodo_ca_limited,l=salford,st=greater_manchester,c=gb"
- macOS:
/Applications/COMSOL63/Multiphysics/java/macarm64/jre/bin/keytool -delete -cacerts -alias "cn=emsign_ecc_root_ca_-_g3,o=emudhra_technologies_limited,ou=emsign_pki,c=in"/Applications/COMSOL63/Multiphysics/java/macarm64/jre/bin/keytool -delete -cacerts -alias "cn=aaa_certificate_services,o=comodo_ca_limited,l=salford,st=greater_manchester,c=gb"
For other COMSOL versions, products, installation locations, and platforms, the path to keytool and the aliases of the affected certificates may differ. Use the following instructions:
Find the path to the Java
keytoolincluded in the COMSOL software installation. For the default installation paths listed above, replaceglnxa64withglnxarm64on ARM64 based Linux platforms, and replacemacarm64withmaci64on Intel based Macs.Run
keytool -list -cacertsand locate the aliases of the affected root certificates listed in the Eclipse Temurin eMudhra CA advisory.For each affected root certificate that is present, run
keytool -delete -cacerts -alias "alias", replacing the quotedaliasvalue with the alias shown bykeytool -list -cacerts. You need to run the commands with permissions to write to the installation directory.Enter the password of the Java
cacertsfile, which is by defaultchangeit.
Note: There might be other COMSOL software installed on the system. Take care to locate each COMSOL software installation and version that you use, and run the keytool from the Java runtime of that installation.
You can verify that an alias has been removed by running keytool -list -cacerts -alias "alias". If the entry has been successfully removed, keytool reports that the alias does not exist.
After removing the certificates, restart the COMSOL software.
Manual mitigation of Java4Shell
For COMSOL Multiphysics 6.4 Update 3 with the default installation path, open the applicable comsol*.ini files in the following directory and add -XX:UseAVX=2 as a new line:
- Windows:
C:\Program Files\COMSOL\COMSOL64\Multiphysics\bin\win64 - Linux:
/usr/local/comsol64/multiphysics/bin/glnxa64
You need permissions to write to the installation directory.
For other COMSOL products and installation locations, locate the corresponding comsol*.ini files and add the same line. Alternatively, the option can be specified on the command line when launching the COMSOL software, or as the value of the JAVA_TOOL_OPTIONS environment variable. Note that setting this environment variable also affects other Java processes launched with the same environment.
Note: There might be other COMSOL software installed on the system. Take care to locate each affected COMSOL software installation and version that you use, and apply the workaround to each affected installation.
After modifying the configuration files, restart the COMSOL software.
OpenJDK version
The following OpenJDK versions are included with the latest updates of the currently supported COMSOL versions:
- COMSOL 6.4 Update 3: OpenJDK 21.0.11
- COMSOL 6.3 Update 3: OpenJDK 11.0.24
In general, the OpenJDK version included with a particular COMSOL software installation can be determined by running the java executable included in the COMSOL installation with the -version option:
- Find the path to the
javacommand that is included in the COMSOL software installation.- On Linux systems, the default path for COMSOL Multiphysics 6.4 is
/usr/local/comsol64/multiphysics/java/glnxa64/jre/bin/java. - On macOS systems, the default path is
/Applications/COMSOL64/Multiphysics/java/macarm64/jre/bin/java. - On Windows systems, the default path is
C:\Program Files\COMSOL\COMSOL64\Multiphysics\java\win64\jre\bin\java.exe. - Replace
glnxa64withglnxarm64on ARM64 based Linux platforms, and replacemacarm64withmaci64on Intel based Macs.
- On Linux systems, the default path for COMSOL Multiphysics 6.4 is
- Run
java -version. The output will include a version string such asopenjdk version "21.0.11".
COMSOL 已尽一切合理的努力核实本页面所提供的信息。但请注意,所有资源与文档仅供学习参考。COMSOL 不对其有效性作任何明示或暗示的声明,亦不承担因所披露数据的准确性而产生的任何法律责任。本文提及的所有商标均为其各自所有者的财产。有关完整的商标信息,请参阅相关产品手册。
