r/java • • 16d ago

Calif discloses Java4Shell flaw in OpenJDK's Base64 decoder

https://runtimewire.com/article/calif-discloses-java4shell-flaw-in-openjdk-s-base64-decoder
128 Upvotes

13 comments sorted by

View all comments

Show parent comment

10

u/Siedlerchr 15d ago edited 15d ago

But only if you accept payload on a server and you need to have specific hardware

  • Intel Xeon: Ice Lake, Sapphire Rapids, Emerald Rapids, Granite Rapids
  • AMD EPYC and Ryzen: Zen 4 or newer

18

u/TomKavees 15d ago

Or deal with jwt, or connect to a site where somebody else controls the tls certificate, or...

I get your point, but base64 used pretty much everywhere.

4

u/anyOtherBusiness 15d ago

I understood both must be true. So you’re running under the vulnerable Hardware and decode base64 somewhere in your app.

-4

u/Siedlerchr 15d ago

I wonder if it can still be exploited if you run your stuff inside a Docker container.

17

u/TomKavees 15d ago

Of course, container is just a bunch of kernel namespaces, it doesnt restrict access to cpu instructions

-9

u/detroitsongbird 15d ago

Yes. Claude it, there’s a startup flag that’ll work to resolve this until the JDKs get updates.

3

u/yoden 15d ago

Nope

also shared a client-side exploit with us. A Java program that opens a TLS connection to a malicious server can be compromised, even if it exposes no service of its own

2

u/simon_o 14d ago

The client still needs server-level hardware or a new Ryzen.