logoalt Hacker News

mzs • today at 9:25 PM • 1 reply • view on HN

You can also mitigate Java4Shell by starting OpenJDK with either:

-XX:-UseBASE64Intrinsics to disable hardware-accelerated Base64 encoding and decoding, or

-XX:UseAVX=2 to disable AVX-512. Apply this flag only on x86-64 hosts. OpenJDK on ARM doesn't recognize it and will fail to start.


Replies

marginalia_nu • today at 9:32 PM

Might be worth examining whether AVX-512 is even supported on the machine before freaking out, too.