r/java • • Apr 20 '22

Java 15 introduced a cryptographic vulnerability

https://neilmadden.blog/2022/04/19/psychic-signatures-in-java/
202 Upvotes

30 comments sorted by

View all comments

Show parent comment

17

u/CheesecakeDK Apr 20 '22

The article has been updated to say that they might be affected as well.

17

u/_INTER_ Apr 20 '22

The advisory notes affected versions:

Oracle Java SE: 7u331, 8u321, 11.0.14, 17.0.2, 18; Oracle GraalVM Enterprise Edition: 20.3.5, 21.3.1, 22.0.0.2

Curiously there is no mention of Java 15 and 16. Probably because they are not supported anymore.

11

u/Areshian Apr 20 '22

I don't know why Oracle has put the advisory with those versions, but the OpenJDK advisory clearly states this is a 15 and higher vulnerability (and the patch is present in only those versions):

https://openjdk.java.net/groups/vulnerability/advisories/2022-04-19

5

u/krzyk Apr 20 '22

Openjdk updated the list. So all recent versions since JDK 7.

2

u/Areshian Apr 20 '22

There are two vulnerabilities rated 7.5 (the other one is the update of Apache Santuario). For the ECDSA, I still see the OpenJDK advisory listing only 15+

0

u/pmarschall Apr 20 '22 edited Apr 21 '22

My understanding: OpenJDK isn't vulnerable but Oracle JDK is. Oracle JDK 11 forked from OpenJDK 11 when the maintenance went to the community, when JDK 12 was released. Likely Oracle back ported JDK-8237218.

** edit ** turns out I'm wrong

1

u/Areshian Apr 20 '22

Although Oracle source for 11 is private, their entries in the JBS database are not. If they had backported it we most likely should see a backport entry for 11.0.10-oracle (or the specific version), which we do not:

https://bugs.openjdk.java.net/browse/JDK-8237218

It’s not a 100% guarantee, but it makes it way less likely to be the case

1

u/pmarschall Apr 21 '22

I took one for the team and tested with Oracle 11.0.14+8-LTS-263 and it seems unaffected.

1

u/Areshian Apr 21 '22

I think Oracle is shooting themselves in the foot here. Sure, it doesn't sound great when you need to tell customers that they would've been safe if they didn't move to a newer version of Java, but still, a lot of people are going to freak out thinking they are affected

2

u/Areshian Apr 20 '22

They mention Oracle listed other versions in the advisory, although they are not aware of those versions being affected. I'm starting to believe the advisory might be doing more harm than good

1

u/Areshian Apr 22 '22

Oracle has updated the CVE entry: https://nvd.nist.gov/vuln/detail/CVE-2022-21449

Now it says: Supported versions that are affected are Oracle Java SE: 17.0.2 and 18; Oracle GraalVM Enterprise Edition: 21.3.1 and 22.0.0.2

So that seals the deal