Fork me on GitHub
#announcements
<
2022-04-21
>
plexus05:04:21

New Java releases are out which fix a critical security vulnerability. https://neilmadden.blog/2022/04/19/psychic-signatures-in-java/

👍 9
❤️ 2
plexus05:04:09

I'm not really sure yet to what extent widely used Clojure libaries are impacted by this, but I do see that buddy uses some of the affected classes. If you're using buddy, especially with JWT, I would not wait to upgrade. In general if you're running an app exposed to the internet I would not wait to upgrade.

plexus05:04:18

Note that this impacts Java 15 and later, if you're still on 8 or 11 (as many are) then you are not currently vulnerable.

seancorfield06:04:28

Not all of the JDK providers have updated binaries yet...

jumar07:04:28

I played with it a bit here: https://github.com/jumarko/clojure-experiments/blob/master/src/clojure_experiments/security/signing.clj#L1 I wasn't able to reproduce the problem when using buddy-sign but that's probably just because of the lack of skill. As others said, I wouldn't wait with the upgrade.

javahippie06:04:44

The Temurin Build and Release Process is really taking its time 😕

Cora (she/her)07:04:44

@U06BE1L6T buddy uses bouncy castle which isn't vulnerable to this

plexus08:04:27

That's for buddy-hashers, how about buddy-sign?

plexus08:04:55

:ecdsa+sha256         #(Signature/getInstance "SHA256withECDSA" "BC")
   :ecdsa+sha256         #(Signature/getInstance "SHA256withECDSA" "BC")
   :ecdsa+sha384         #(Signature/getInstance "SHA384withECDSA" "BC")
   :ecdsa+sha512         #(Signature/getInstance "SHA512withECDSA" "BC")
   :ecdsa+sha384         #(Signature/getInstance "SHA384withECDSA" "BC")
   :ecdsa+sha512         #(Signature/getInstance "SHA512withECDSA" "BC")

jumar08:04:35

Thanks plexus, a good reminder to not to accept quick answers without checking 🙂 It may still be that buddy isn't vulnerable at all but I wouldn't trust myself to claim that.

plexus08:04:16

yeah same here, I have not dug deep enough to confirm that it's vulnerable or not, but at a cursory glance it could be