Before you keep your security team up all night, it looks like proxies save the day here. Might not be a complete fix, obviously a real patch should be applied as soon as possible.
> Request streaming. Some current grooming profiles need partial request bodies to reach the application. A proxy that waits for the complete body removes their release timing. nginx buffers request bodies by default.
It's only on specific architectures though it kinda falls apart. It would be impressive if the bug was so portable it let you RCE on sub-AVX512 machines and ARM and whatever too. Maybe with the new vector API we'll see such powerful vulnerabilities.
Unconfirmed, but people on Twitter suggest this vulnerability has to do with the AVX512 implementation of Base64 decoding, and so this vulnerability can be worked around by running Java with the -XX:UseAVX=2 flag. (https://x.com/sean_a_cassidy/status/2122791344573976817)
There are presumably more bugs lurking in the hand crafted assembly intrinsics in the JVM. The many eyeballs and shallow bugs thing is only true when the eyeballs actually understand the code.
Some unverified sources have said it's in the Base64 decoder, but strangely only effecting AMD64 machines, so anything on ARM/graviton allegedly isn't impacted. Some sort of bug in some hyper-optimized code I reckon. That might mean any place that parses cookies, headers, urls, JWTs, SAML payloads, certificates, etc, might be exposed. Yikes.
But the facts aren't really out yet, we'll learn more in coming hours and days...
Looks unrelated, this is being disclosed now but it was discovered a couple of weeks ago and is just now being made public at the same time.
Also I haven't looked into it, but I'm willing to be it's some free after-use memory corruption thing that has a CVSS Attack Complexity of high, the 'RCE' is speculative, and private companies push social media headlines to fit the AI cybersecurity narrative.
Not saying the doom isn't right, but sometimes it's more like a Wednesday than doomsday. Just patch it and move on. Thanks to all involved though in disclosing and patching though.
Before you keep your security team up all night, it looks like proxies save the day here. Might not be a complete fix, obviously a real patch should be applied as soon as possible.
> Request streaming. Some current grooming profiles need partial request bodies to reach the application. A proxy that waits for the complete body removes their release timing. nginx buffers request bodies by default.
https://calif.io/java4shell/#limitations
https://calif.io/java4shell/
> Write once, RCE everywhere
lol
It's only on specific architectures though it kinda falls apart. It would be impressive if the bug was so portable it let you RCE on sub-AVX512 machines and ARM and whatever too. Maybe with the new vector API we'll see such powerful vulnerabilities.
More info here: https://www.upwind.io/blog/java4shell-what-we-know-now-and-w...
It's a heap out-of-bounds write in Java’s AVX-512 Base64 decoder.
Unconfirmed, but people on Twitter suggest this vulnerability has to do with the AVX512 implementation of Base64 decoding, and so this vulnerability can be worked around by running Java with the -XX:UseAVX=2 flag. (https://x.com/sean_a_cassidy/status/2122791344573976817)
There are presumably more bugs lurking in the hand crafted assembly intrinsics in the JVM. The many eyeballs and shallow bugs thing is only true when the eyeballs actually understand the code.
Seems like -XX:-UseBASE64Intrinsics is the better workaround for now.
https://github.com/openjdk/jdk/commit/5177a70b385c16f26ede19...
Does anyone know what the attack vector of this is? I'm trying to figure out if our usage is affected by this CVE.
Some unverified sources have said it's in the Base64 decoder, but strangely only effecting AMD64 machines, so anything on ARM/graviton allegedly isn't impacted. Some sort of bug in some hyper-optimized code I reckon. That might mean any place that parses cookies, headers, urls, JWTs, SAML payloads, certificates, etc, might be exposed. Yikes.
But the facts aren't really out yet, we'll learn more in coming hours and days...
No details yet. Calif was supposed to release them at 1PT after the update was pushed out. The corretto release notes say its in hotspot/compiler.
https://github.com/corretto/corretto-25/blob/25.0.5.1.2/CHAN...
Here's the supposed patch (?): https://pbs.twimg.com/media/HXWyDZQXEAAPOVf?format=webp&name...
`grep -ow avx512vbmi /proc/cpuinfo | sort -u`
`-XX:-UseBASE64Intrinsics -XX:UseAVX=2`
is this the root cause of the issue befalling making giant companies right now? i think it's a java DOS for sure, but an RCE?
Looks unrelated, this is being disclosed now but it was discovered a couple of weeks ago and is just now being made public at the same time.
Also I haven't looked into it, but I'm willing to be it's some free after-use memory corruption thing that has a CVSS Attack Complexity of high, the 'RCE' is speculative, and private companies push social media headlines to fit the AI cybersecurity narrative.
Not saying the doom isn't right, but sometimes it's more like a Wednesday than doomsday. Just patch it and move on. Thanks to all involved though in disclosing and patching though.