r/java • • 5d ago

Java RCE CVE-2026-114938

https://www.aikido.dev/blog/java-17-rce-vulnerability-cve-2026-114938
272 Upvotes

89 comments sorted by

11

u/best_of_badgers 5d 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?

12

u/vips7L 5d ago

I just saw it was included in the release notes of corretto:25

https://github.com/corretto/corretto-25/blob/25.0.5.1.2/CHANGELOG.md

5

u/keenOnReturns 5d ago

Yes, it is included in November CPU. Does not apply to <17

0

u/[deleted] 5d ago

[deleted] — view deleted comment

7

u/pohart 5d ago

I'm not an expert, but we're talking jit compiler. It's a runtime component

0

u/philipwhiuk 5d ago

I would guess so - otherwise they’d have the details

4

u/best_of_badgers 5d ago

That guy "Calif" said that he was going to publish the details at 1 PM PST (so in 18 minutes from now). Hopefully details will be added then!

3

u/philipwhiuk 5d ago

Calif is a pentesting firm

0

u/hadrabap 5d ago

Yes. We're waiting for the new versions/revisions.

78

u/SleeperAwakened 5d ago edited 5d 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!

https://calif.io/java4shell/

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

u/philipwhiuk 5d ago

Yeh same. If it’s in Socket or something it’s really ugly.

9

u/best_of_badgers 5d ago

Reportedly, it's more likely to just crash your JVM entirely.

2

u/stargazing_penguin 5d ago

Update to what? As far as I can tell this effects the latest version of the JRE

4

u/SleeperAwakened 5d ago

Latest OpenJDK of your preference. I hope for faster releases than last month.

2

u/keenOnReturns 5d ago

tbf last month there were ~40 CVEs. The eMudra debacle also didn’t help.

196

u/FriendOfMandela 5d ago

Java 17, 21, 25 and 27

Thank god we're still on Java 8

/s

27

u/Jotakin 5d ago

Thank god our server hardware is 13 years old and thus cannot have AVX-512

/s

3

u/AloneInExile 4d ago

You're lucky!
Our server hardware is so old it doesn't even have hyperthreading!

6

u/dadmda 5d ago

Yup, it's kind of a relief that most of what I do IS java 8, but since none of what I do is connected to the internet I'm not too worried

6

u/rahvan 4d ago

8

u/ChanceFly9724 4d 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 4d ago

I was wondering if there would even be a fix by Oracle if Java 8 was affected.

3

u/koflerdavid 4d ago

There will be. That's what LTS is about: no new features, no performance optimizations, just certain selected fixes and security patches.

2

u/keenOnReturns 4d ago

Even if Oracle doesn’t fix, the other openjdk distributions would fix it

1

u/Revolutionary-Cup383 3d ago

O? We still compile in java 5 hahaha

39

u/joschi83 5d 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 5d 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 5d 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

3

u/kaelima 5d ago

Bad example because Node2Shell is not classified as RCE for dotnet. Brotli is also not enabled by default like it is in nodejs.

4

u/SleeperAwakened 5d 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 4d 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 4d 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

u/ColdPhilosophy 5d ago • Bravo

I’m tired boss

13

u/got_milk4 5d 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.

2

u/sweetno 5d ago

AVX-512 is rare.

24

u/lurker_in_spirit 5d ago

Claude, submit a PTO request for the next 5 work days. Do not take "no" for an answer.

17

u/EvaristeGalois11 5d ago

Hopefully temurin will patch it quickly too, they are not very speedy with the release process

5

u/RadioHonest85 5d ago

It has taken so long lately that I think we need to switch distribution.

1

u/rack88 3d ago

The temurin patches for Alpine I needed are now out. Other versions still in progress...

1

u/RadioHonest85 3d ago

nice, that is great news!

5

u/keenOnReturns 5d ago

that’s one of the reasons why you go with other distributions with more strict SLAs

12

u/EvaristeGalois11 5d ago

But I like how the name sounds :(

1

u/keenOnReturns 5d 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

u/wymillerlinux 5d ago

Patching my Minecraft server when I get home

3

u/CodeDead-gh 5d ago

Good luck today..

3

u/mmm19284202 4d ago

Anyone know if Azul jdks are impacted? Asking for 20,000 friends

6

u/CodeDead-gh 4d ago edited 4d ago

5

u/15526s 5d ago

Luckily I'm on vacation lol, I already see the mails coming

1

u/pohart 5d ago

It was super easy to mitigate. 

2

u/6000rpms 5d 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 5d 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 5d ago

I am currently on temurin, any suggestions on what should I do?

0

u/CodeDead-gh 5d ago edited 4d 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 4d ago

Corretto should have identical licensing to temurin though. I’m not sure about Oracle, they’re weird.

0

u/DanLynch 4d ago

It seems like using -XX:-UseBASE64Intrinsics avoids the bug, but it may slow down your application.

2

u/midir 4d ago

Of course it's a buffer overflow.

2

u/Rockytriton 5d ago

wake me up when amazon corretto image gets updated

4

u/PositiveReindeer146 5d ago

Corretto released a patch a while ago, around 5pm est

1

u/neopointer 5d 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 4d ago edited 4d ago

Oracle GraalVM confirmed affected.

Source: https://calif.io/java4shell

1

u/Rorasaurus_Prime 4d ago

Thank the lord I just finished migrating to Graviton/ARM.

1

u/Acrobatic-Bug3372 4d ago

My Jenkins account has been compromised, what should I do? I’ve already deleted it, though.

1

u/GoodLuckGoodell 4d ago

We run on Graviton instances, which thankfully is not vulnerable to this exploit

1

u/No-View3333 1d ago

Detectable with RCEKit

0

u/ShadyMoh1998 4d ago

Java product 5.0.50.5 !!!!

-8

u/brunocborges 5d ago

Another case for folks to consider brewlet.sh so platform teams can roll out security patches quickly.

3

u/[deleted] 5d ago edited 5d ago

[removed] — view removed comment

5

u/lurker_in_spirit 5d ago

Corretto does list this as fixed in their latest release notes.

5

u/pron98 5d 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 5d ago

why bother with Oracle though when there are free options?

4

u/pron98 5d ago

Oracle JDK is also a free option. Don't have to choose it, but just so you know.

1

u/keenOnReturns 5d 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 4d 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 4d 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 4d ago edited 4d ago

That is inaccurate on multiple fronts.

  1. 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.
  2. 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.
  3. 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 4d 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 4d ago edited 4d 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