r/elasticsearch • Elastic Staff • 3d ago

Announcement Java4Shell Remove Code Execution (RCE) Vulnerability (CVE-2026-114938) advisory for Elasticsearch

15 Upvotes

4 comments sorted by

2

u/halfgaar2 2d ago

What they should do, is release an update that updates the embedded java in it. Ubuntu has already shipped the patch, but that doesn't help apps that embed their own Java.

3

u/xeraa-net Elastic Staff 2d ago

There will be releases (as mentioned in the updated advisory) soon. It’s just a lot of moving parts across the entire stack for a release.

PS: And as always, don’t expose Elasticsearch publicly if you don’t have to; as a first line of defense. Then apply the JVM option. Then upgrade.

1

u/halfgaar2 2d ago

With various vulnerabilities, like log4j too, it doesn't matter if it's open to the world or not. So, that's not a guarantee. Good practice of course, but not the end. With this base64 thing too, possibly not enough.

While I understand the urge to vendor/embed dependencies, it does make one immune to security updates. Separate debs with dependencies on system-provides libs and tools would be welcome (by be at least :) ).

1

u/xeraa-net Elastic Staff 2d ago

You can override the JVM with ES_JAVA_HOME (except for the Docker images).

And I'm not sure how "first line of defense" is at odds with "not a guarantee". I'd still recommend that.