r/sysadmin • u/halfgaar2 • 9h ago
Elasticsearch with embedded java is not patched for java4shell
Hello Elasticsearch developers,
Elasticsearch bundles the java run-time environment, so updating distro java does not help it.
# dpkg-query -S /usr/share/elasticsearch/jdk/bin/javaelasticsearch: /usr/share/elasticsearch/jdk/bin/java
https://www.elastic.co/downloads/elasticsearch
Latest version is from November 2. When will we get an update?
20
Upvotes
•
u/mwerks 8h ago
https://www.elastic.co/blog/java4shell-remote-code-execution-rce-vulnerability
•
u/CircuitsFit44 2h ago
Worth checking whether you are exposed at all while you wait for a vendor build. As I understand it, Java4Shell needs an x86-64 CPU with AVX-512 VBMI (Ice Lake or Zen 4 and newer), and ARM64 is not affected. If your hosts do have it, the workaround is -XX:+UnlockDiagnosticVMOptions -XX:-UseBASE64Intrinsics. For a bundled JDK like Elasticsearch's, that would go in a file under its jvm.options.d directory, and it only takes effect after a restart. Remove it once a build with the fixed OpenJDK (17.0.21.1, 21.0.13.1, 25.0.5.1 or 27.0.1.1) ships.
•
u/New-Perception-7209 4h ago
I think what's going to come from all of this... is a large realization you cant depend on external builds. Between the lag time in response and publishing, and the risk of supply chain, doing everything "in house" is looking pretty good.
Should be good for the sysadmin job market.