Hi Clojure friends. As a courtesy heads up, I'm going to leave this here. Looks like a nasty one. https://calif.io/java4shell/
Oracle has .1 releases available addressing this: https://www.oracle.com/java/technologies/downloads/
OpenJDK 27 has the .1 posted: https://jdk.java.net/27/ (I’m not sure where the downloads are for the various LTS versions).
For those of you using Temurin, here’s their tracking issue for the .1 updates: https://github.com/adoptium/temurin/issues/326
Note there are two easy ways to disable this with options at startup and also it requires specific capabilities of the cpu
Maybe it would have been better to provide options to enable it on startup and leave it disabled by default.
Thanks for the heads-up, @lambeauxworks. I checked my prod servers and thankfully none of the CPUs are affected. Not gonna update the JVMs because of this.
None of our servers are affected either.
If you disable the option, and your app is heavy on base64 decoding, you may see performance issues. Caveat: programmer! Temurin 27 Linux installer has been updated (I have that on dev right now). Docker images won’t get updated until all installers are available (that’s a Docker restriction, apparently).
yes. but as far as remediation for unauthed RCE it’s pretty good, and then you can upgrade the jvm in a bit more leisurely pace.
This may be a useful check for folks:
$ java -XX:+PrintFlagsFinal -version | grep -E 'UseAVX|UseBASE64Intrinsics'
int UseAVX = 3 {ARCH product} {default}
bool UseBASE64Intrinsics = true {product} {default}
openjdk version "27.0.1.0.2" 2026-10-21
OpenJDK Runtime Environment Temurin-27.0.1.0.2+1 (build 27.0.1.0.2+1)
OpenJDK 64-Bit Server VM Temurin-27.0.1.0.2+1 (build 27.0.1.0.2+1, mixed mode, sharing)
(vulnerable)None of our instances on AWS have all the 4 CPU flags
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'
The output must include all four flags.
Hmm, I didn’t see that in the article I was reading, but that shows only 3 flags for the server I ran that java/`grep` on… will double-check. Thanks.
Ah, right, the article I was reading specifically only checked for avx512vmbi which is missing on that server. That’s good news!
we also didn’t have any aws machines with all flags on. I saw someone on twitter say that only the more expensive machines have this enabled right now. So impact is not as bad as php2shell and others.
My ancient Dell desktop has all four flags and it was cheap, even many years ago 🙂
anyone out there relying on serializing Clojure functions, for example as a Spark UDF or something?
thanks, that avoids using Java serialization, which is what I’m primarily interested in
https://github.com/ngrunwald/datasplash (Apache Beam wrapper) also does serialization via nippy.
are you thinking of making fns value types or something?
no, we’re going to make fns non-serializable by default
any particular reason?
from the “we can’t have nice things dept” aka CVEs
Not a question. But an interesting observation. I realised that this is not possible:
(defmacro say [code]
`(println "Code:" ~@code))
(say (list "Hello" "World!"))
; prints Message: #function[clojure.lang.PersistentList/Primordial] Hello World!
It would require fine grained control over the evaluation process. The argument
code should be evaluated first, then spliced into println, which is then also
evaluated. So with eval, it work.
(defmacro say [code]
(let [code (eval code)]
`(println "Message:" ~@code)))
(say (list "Hello" "World!"))
; prints Message: Hello World!are you sure you want to use a macro for that?
(defn say2 [code]
(apply println "Code:" code))
(say2 (list "Hello" "World!"))