r/programming • u/ryanmerket • 7d ago
Calif discloses Java4Shell flaw in OpenJDK's Base64 decoder
https://runtimewire.com/article/calif-discloses-java4shell-flaw-in-openjdk-s-base64-decoder
556
Upvotes
24
u/stoops 6d ago
Q29uZ3JhdHVsYXRpb25zISBJZiB5b3UgYXJlIHJlYWRpbmcgdGhpcyBtZXNzYWdlIHdlJ2QgbGlrZSB0byBvZmZlciB5b3UgYSBwb3NpdGlvbiBhdCBNaWNyb3NvZnQgb2YgIkFzc2lzdGFudCB0byB0aGUgU2VuaW9yIFZpYmVzLU9QUyBNYW5hZ2VyIiE=
184
u/bowbahdoe 6d ago
The quickest way to deal with this is to add
-XX:-UseBASE64Intrinsicsto your JVM flags. After that, of course, upgrade.303
u/RegisteredJustToSay 6d ago
Oh great. This one probably impacts more services than most of the other recent disclosures.
47
u/al2o3cr 6d ago
Non-paywalled coverage:
https://www.phoronix.com/news/Java4Shell-Vulnerability
Writeup from Upwind:
https://www.upwind.io/blog/java4shell-what-we-know-now-and-what-comes-next
45
u/SuperGr33n 6d ago
I still have PTSD from log4j. Once upon a time I managed logging for a web service and guess what we used for log aggregation? Logstash. Thousands of servers and very little in the way of config management. Absolutely no master inventory or cmdb. I spent days auditing and running ansible. Thank goodness I’ve since moved on to greener pastures because this one sounds like hell
169
u/Compux72 6d ago
Ofc the unsafe, hand written asm strikes again
32
u/eipMan 6d ago
Writeup by calif who discovered the bug: https://calif.io/java4shell
17
u/aookami 6d ago
uh oh
8
u/Cloudy-Blue 6d ago
Here go my next few nights
58
u/whinner 6d ago
“Calif’s Quang Luong found it with AI assistance in about an hour, and built the first working exploit in two more.”
We are so cooked
4
u/Waste_Jello9947 6d ago
Isn't base64 used by JWT authentication? That's a big problem
10
u/TheMoatman 6d ago edited 6d ago
I haven't read their actual writeup yet to check, but it's potentially overhyped.
The article says they gave it a 9.2 CVSS, but the NVD currently has it at 8.1 (admittedly, rated by Oracle) and describes it as "difficult to exploit". It also says:
https://nvd.nist.gov/vuln/detail/cve-2026-114938
e: Still haven't actually read it but I did open their writeup: they rated it under CVSS 4.0, so it could could be a CVSS 3.0 vs 4.0 difference too. In that case, it may be real bad shit.
6
u/quack_quack_mofo 6d ago
Arm64 is safe no?
3
u/isaackogan 6d ago
Well fuck
Q2hhdCwgd2UncmUgc28gY29va2VkLg==
1
u/wildjokers 5d ago
I bet there hasn't been any greenfield development done with Apache Struts in at least 15 years, it is definitely not "widely used".
-10
u/IndividualHouse8628 6d ago
What does this mean for people that don’t have any kind of programming or cybersecurity knowledge