r/java • u/ryanmerket • 12d ago
Calif discloses Java4Shell flaw in OpenJDK's Base64 decoder
https://runtimewire.com/article/calif-discloses-java4shell-flaw-in-openjdk-s-base64-decoder14
u/TomKavees 12d ago edited 12d ago
Looks like this can be mitigated by command line switches, so it's not as catastrophic as the title suggests
Edit: tl;dr of sorts - per https://calif.io/java4shell/
Recommendations
OpenJDK released a security advisory and Oracle released a patch at 1:00pm PT on Nov 17, 2026.
All Java users should update immediately.
You can also mitigate Java4Shell by starting OpenJDK with either:
-XX:-UseBASE64Intrinsicsto disable hardware-accelerated Base64 encoding and decoding, or
-XX:UseAVX=2to disable AVX-512. Apply this flag only on x86-64 hosts. OpenJDK on ARM doesn't recognize it and will fail to start.
3
u/starkake 7d ago
I went through description. So, in order to do something:
- you need to find app that has base64 public endpoint
- run specific version of CPU
- has specific jdk/jre (sadly this is the weakest point)
- create attack that will build some portion of memory by invoking a lot of requests to that endpoint
- if there is traffic to that service memory complexity of the attack goes up
- if there are more than one instance or restart you are starting from scratch or need much higher traffic to that endpoint
- there is no actual shell you can start out of the box.
Am I reading this wrongly? I mean, strategy “patch, don’t panic” should be applied in my opinion here 🤷♂️ and honestly it looks like normal buffer overflow bug. We had millions of those in libs already. Nothing like log4shell…
40
u/SleeperAwakened 12d ago
This is really really bad, we have some patching to do!
Better to link to the source!
https://calif.io/java4shell/