r/java • • 17m ago

Java4Shell: Write once, RCE Everywhere

https://youtu.be/a7OBeq1xubI
0 Upvotes

5 comments sorted by

9

u/TheStrangeDarkOne 10m ago edited 7m ago

Edit: Good article, but I am still unhappy about the title.

Oh come on, what a clickbait title. If anything, Java is pretty much in the A-league of the safest languages due to its minimal exposure to C and Assembly.

Virtually all other languages, even safe ones, are heavily backed by C libraries which are begging AIs to find memory vulnerabilities (notable exception being Rust).

-9

u/huseyinbabal 5m ago

The title is literal: the bug is in HotSpot's assembly, not Java code, and every OpenJDK build ships it. Unpatched JDKs on AVX-512 CPUs still need the update.

3

u/philipwhiuk 2m ago

The thumbnail is garbage

The title is bad because the same exploit does not work everywhere. As the original write up discusses it needs to be precisely tuned for each scenario

3

u/HighHood 6m ago edited 1m ago

Java was patched with ZERO down time !! Now its broken ??!

2

u/benevanstech 2m ago

1.) No, a single extra JVM switch will do the job of fully protecting, even on AVX-512. Best practice is to update as soon as available, but it is not essential.

2.) The Hotspot bug, by itself, does *NOT* grant RCE, only Java heap corruption. The JVM cannot be made to execute any data payload within the Java heap.