r/java • u/philipwhiuk • 9d ago
Java RCE CVE-2026-114938
https://www.aikido.dev/blog/java-17-rce-vulnerability-cve-2026-11493878
u/SleeperAwakened 9d ago edited 9d ago
I really hope that this is a storm in a glass and an attempt for a few minutes of fame.
I really hope that it is no RCE flaw in Base64 which is used everywhere in HTTP payload like cookies, JWT etc.
The latter would make PHP and eMudhra feel like a gentle breeze in comparison. Fingers crossed.
UPDATE
Frell, seems indeed to be in Base64... Damn This is bad, we have some patching to do ASAP!
UPDATE2
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.
11
17
u/keenOnReturns 9d ago
https://github.com/corretto/corretto-25/commit/25bb7d35dcc1a7092eca2ba08124c85b3deec8a2
Corretto (Amazon’s Java) already patched BTW
9
2
u/stargazing_penguin 9d ago
Update to what? As far as I can tell this effects the latest version of the JRE
4
u/SleeperAwakened 9d ago
Latest OpenJDK of your preference. I hope for faster releases than last month.
2
199
u/FriendOfMandela 9d ago
Java 17, 21, 25 and 27
Thank god we're still on Java 8
/s
28
u/Jotakin 9d ago
Thank god our server hardware is 13 years old and thus cannot have AVX-512
/s
4
u/AloneInExile 9d ago
You're lucky!
Our server hardware is so old it doesn't even have hyperthreading!6
6
u/rahvan 9d ago
8
u/ChanceFly9724 8d ago
From what I've read thus far its a specific Oracle Perf LTS build (Oracle's Java 8 Enterprise Performance Pack) of Java 8 with the CVE-2026-114938 issue and doesn't apply to other OpenJDK 8 versions.
Did I miss something?
2
u/bigkahuna1uk 9d ago
I was wondering if there would even be a fix by Oracle if Java 8 was affected.
3
u/koflerdavid 8d ago
There will be. That's what LTS is about: no new features, no performance optimizations, just certain selected fixes and security patches.
2
1
41
u/joschi83 9d ago
From https://calif.io/java4shell/
Because the vulnerable code is hardware-specific, Java4Shell also requires an x86-64 processor with AVX-512 VBMI support. ARM64 CPUs are not affected.
23
u/witness_smile 9d ago
Alright so we’ve had PHP, then NodeJS, and this week Java. Wonder what C#’s CVE will be next week
17
u/Kjufka 9d ago
c# is just a language - it's runtime already had multiple RCEs this year.
Notably that Brotli RCE used in Node2Shell - C#/dotnet was also affected and it had score of 9.2, but it seems nobody cares about it enough to make a big deal out of it? maybe a 9/10 CVE is just a normal Tuesday for C# guys
4
u/SleeperAwakened 9d ago
3 billion devices was ages ago. Who knows the number now. eMudhra was bad enough with all the embedded devices. I really hope this turns out to be nothing.
1
u/koflerdavid 8d ago
People should have seen this coming and started planning ahead back when Log4shell was found. This time the fix is quite simple: patch the JVM as soon as possible. Cthulhu help you if your operations cannot do even that because this is not the only juicy CVE that has been found all those years. Differently from Log4shell and eMudhra however, edge deployments such as set-top boxes should be safe since AVX512 is only supported on quite recent high performance CPUs.
-1
u/AloneInExile 9d ago
Java cannot be run on more than 3 billion device, each time a new device is added an old one is removed.
By the latest estimates, > 15billions i the right number.
23
13
u/got_milk4 9d ago
There's a detection script available here.
Also note that the limitations section on the source's website suggests request buffering may provide some form of mitigation.
For what it's worth, the detection script against my Java 21 workloads on EKS returns 'not impacted' on all nodes, none of our instances are on types that support AVX-512 as far as I can tell.
24
u/lurker_in_spirit 9d ago
Claude, submit a PTO request for the next 5 work days. Do not take "no" for an answer.
18
u/EvaristeGalois11 9d ago
Hopefully temurin will patch it quickly too, they are not very speedy with the release process
5
u/RadioHonest85 9d ago
It has taken so long lately that I think we need to switch distribution.
5
u/keenOnReturns 9d ago
that’s one of the reasons why you go with other distributions with more strict SLAs
12
u/EvaristeGalois11 9d ago
But I like how the name sounds :(
1
u/keenOnReturns 9d ago
Well temurin is the most community driven, but that also means it probably receives the least funding compared to other distributions by major enterprises. It also doesn’t help they support a wider range of platforms compared to most.
If you’re simply using Java for development or a hobby project, they’re fine. But any public service, you probably need automated updates with a better supported distribution.
14
3
3
3
u/HighHood 8d ago
There is a quick fix
https://github.com/theori-io/java4shell-runtime-patch-CVE-2026-114938
2
u/6000rpms 9d ago
Does anyone know the market share for the various Java distributions? I feel like most open source projects use Temurin, and given that most software is open source, this feels like an 0day for the majority of Java apps.
1
u/keenOnReturns 9d ago
Hard to track, given it’s simply binaries and at best you’d have to go by download numbers (which most distributions don’t publish). You could go by docker image pulls as a proxy (although it’s not truly indicative of what’s actually running). Yeah temurin is kinda the default, simply because it’s the most community driven with the least affiliations.
2
u/Key-Teach420 9d ago
I am currently on temurin, any suggestions on what should I do?
0
u/CodeDead-gh 9d ago edited 8d ago
Switch to Coretto or Oracle OpenJDK if permitted, patches there are already available.
If not permitted to use a patched jvm due to licensing or whatever: pull services offline and wait for a patch or set the appropriate jvm flags to mitigate the issue
1
u/keenOnReturns 8d ago
Corretto should have identical licensing to temurin though. I’m not sure about Oracle, they’re weird.
0
u/DanLynch 9d ago
It seems like using -XX:-UseBASE64Intrinsics avoids the bug, but it may slow down your application.
2
u/Rockytriton 9d ago
wake me up when amazon corretto image gets updated
11
4
1
u/neopointer 9d ago
Does anyone else have the same understanding as me that the vulnerability does not apply if you're using graalvm's native image compilation?
4
u/CodeDead-gh 9d ago edited 9d ago
Oracle GraalVM confirmed affected.
Source: https://calif.io/java4shell
1
1
u/Acrobatic-Bug3372 8d ago
My Jenkins account has been compromised, what should I do? I’ve already deleted it, though.
1
u/GoodLuckGoodell 8d ago
We run on Graviton instances, which thankfully is not vulnerable to this exploit
1
0
-8
u/brunocborges 9d ago
Another case for folks to consider brewlet.sh so platform teams can roll out security patches quickly.
3
9d ago edited 9d ago
[removed] — view removed comment
5
5
u/pron98 9d ago
Just a reminder that the Oracle JDK gives you free LTS updates for 3 years, so Oracle JDK 25 updates are still free. It's only after 3 years that you need to buy a subscription to download LTS updates (so to use the update for JDK 21 in production you need a subscription).
6
u/keenOnReturns 9d ago
why bother with Oracle though when there are free options?
4
u/pron98 9d ago
Oracle JDK is also a free option. Don't have to choose it, but just so you know.
1
u/keenOnReturns 9d ago
is it free in production? also, u say “free” with the big asterisk of 3 years. Meanwhile you can use openjdk 8-21 until 2030+ with basically any provider.
2
u/pron98 9d ago
Yes, it's free in production. And BTW, it's also OpenJDK (OpenJDK JDK is the name of Oracle's source implementation of Java; Corretto, Oracle JDK, and others are built from it).
0
u/keenOnReturns 8d ago
Oracle JDK ≠ OpenJDK. Oracle does do openjdk builds (the free stuff you mentioned might simply be that), but the paid product is actually their proprietary, closed source implementation of the JDK. In reality, they probably share 90%+ identical code, but licensing and legal-wise, they are not the same thing.
3
u/pron98 8d ago edited 8d ago
That is inaccurate on multiple fronts.
OpenJDK is a group of projects, but the OpenJDK JDK project, which is developed by Oracle (with contributions from others), isn't a distribution at all. It's a source project, not a deliverable. The OpenJDK JDK is the source from which Oracle JDK and Correttor and others are built. I.e. it's true that Oracle JDK ≠ OpenJDK JDK, but also Corretto ≠ OpenJDK JDK in a similar way. There is simply no distribution by the OpenJDK project. The distributions are built in slightly different ways by different distribution vendors, but none of them is the OpenJDK JDK, which is only about the sources.
While the Oracle JDK - which, like Corretto, is built from the OpenJDK JDK sources - is free, it does have a different licence from the OpenJDK JDK source licence (GPLv2 + CPE), because Oracle owns OpenJDK, and so we can distribute builds under a different licence. But we do also offer builds with the GPLv2 + CPE licence.
The Oracle JDK builds are not really built from our proprietary sources. The OpenJDK JDK is the one implementation of Java developed by Oracle (with contributions from others). No more is added to the builds than what other distros do (Corretto also adds some code that isn't in the OpenJDK JDK), and especially their update releases can contain different backports. The backported patches, however, in the Oracle JDK, are not open source.
This works the same as Linux. There is one official Linux kernel project, which corresponds to the OpenJDK JDK, but there is no Linux distribution by that project. Every distribution takes the Linux kernel sources and builds it (with its own additions/modifications) - that corresponds to Oracle JDK/Corretto/etc..
1
u/keenOnReturns 8d ago
Not sure why you claimed I was inaccurate, and then proceeded to confirm what I said (I appreciate your extra nuance though). In any case, Oracle JDK is still closed source, no? Unlike other distributions, which are mainly open source (e.g. Temurin, Corretto, etc.)
Also it gets complicated across versions, right? Oracle JDK 8 is probably the most distinct from “openjdk 8”
1
u/pron98 8d ago edited 8d ago
Not sure why you claimed I was inaccurate, and then proceeded to confirm what I said
You can't run the OpenJDK JDK (just as you can't run the Linux kernel project), but you can run Oracle JDK, Corretto, or Temurin, and all three of them are, therefore, very much not the same thing as the OpenJDK JDK. So you were correct in that Oracle JDK ≠ OpenJDK, but neither is any other JDK distribution, and in the same way.
Oracle JDK is still closed source, no?
If you mean, can you build something that's bit-for-bit identical to the Oracle JDK distribution from an open project, the answer is no (although if you build the OpenJDK JDK from source you also wouldn't get Corretto). It does get a bit subtle, though. For JDK NN, NN.0.1., and NN.0.2, Oracle JDK is just as different from the OpenJDK JDK build as Correto or any other distributions (i.e. it's built from the OpenJDK JDK project, with some additions like certificates etc..). For later updates (relevant only for LTS), the patches could, indeed, differ from those applied to the OpenJDK JDK Updates projects (they may differ among other distributions, too), and their source is, indeed, closed. The JDK, however, is still free for use in production.
The reason for that is that Oracle funds the development of OpenJDK, and we need revenue to keep that going. So we sell updates to JDKs that are over 3 years old (and support), to have companies that want to benefit from no work on any upgrades in legacy projects subsidise OpenJDK. If it weren't for these companies paying for old versions of Oracle JDK, there would be no OpenJDK.
Also it gets complicated across versions, right? Oracle JDK 8 is probably the most distinct from “openjdk 8”
This one is tricky, because the JDK was only fully open-sourced starting with JDK 11. Versions prior to that contained components that are completely different implementations (and I think some parts are even missing in non-Oracle distros). I wouldn't use any such old versions in production at all, but if I had to, I certainly wouldn't use anything other than the Oracle ones (unless I really knew what I was doing).
→ More replies (0)
11
u/best_of_badgers 9d ago
My understanding is that this CVE was not included in the November 2026 CPU. It's a separate TBD patch. Is that not true?