Java4Shell: Write once, RCE everywhere (calif.io)
from cm0002@europe.pub to cybersecurity@infosec.pub on 18 Nov 06:31
https://europe.pub/post/17647541

#cybersecurity

threaded - newest

9point6@lemmy.world on 18 Nov 10:10 next collapse

<img alt="" src="https://lemmy.world/pictrs/image/3e56c7b3-6cc8-4b4f-868b-23c4679c94ef.png">

Kissaki@programming.dev on 18 Nov 10:44 next collapse

After we disclosed PHP2Shell, we realized many people didn’t know what PHP was. So we decided to go after something a little more familiar: Java.

haha

Skullgrid@lemmy.world on 18 Nov 14:11 next collapse

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:-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.

OK. I’ve got jenkins runing in certain places and OpenJDK installed. The fuck am I meant to do? How can I disable it system wide?

JRaccoon@discuss.tchncs.de on 18 Nov 16:36 collapse

The best solution is to install the patched JDK once it’s available for your OS and JDK version. At least Temurin is taking their sweet time with it.

Setting JVM arguments for Jenkins depends on how it’s installed. For example, if it’s running as a systemd service, just add or modify:

[Service]
Environment="JAVA_OPTS=-XX:-UseBASE64Intrinsics"

There’s also JAVA_TOOL_OPTIONS, which you can set globally, but I personally never use it.

Unless you’re exposing Jenkins publicly, I wouldn’t worry too much about it. My understanding is that exploiting the vulnerability requires crafting a pretty targeted attack and I haven’t seen any reports of this being exploited at scale, even against publicly exposed services.

pageflight@piefed.social on 18 Nov 16:42 collapse

So, they went straight to public disclosure?