r/Clojure • • 14d ago

Upgrade to 1.12.7 to fix Deserialization of Untrusted Data Allows Remote Code Execution

https://github.com/clojure/clojure/security/advisories/GHSA-x4c4-68gp-vrhc
46 Upvotes

4 comments sorted by

11

u/totemo 14d ago

Mitigate this via one of the following:

  • Do not deserialize data from untrusted sources, this is inherently dangerous.

...

Any application that calls ObjectInputStream.readObject on attacker-controlled bytes with clojure.jar on the classpath is exposed to remote code execution, ...

Not to downplay this, but duh - don't do that!

12

u/jbiserkov 14d ago
  • And don't use any dependencies that do that.

    • or whose dependencies do that

      • or whose dependencies do that

        • or whose dependencies do that

          • or whose dependencies do that

            • ...

3

u/totemo 13d ago

*checks calendar*

Yes. It is still part of the job to have trusted dependencies.

2

u/jbiserkov 12d ago

Trusted and updated to a version with no known security vulnerabilities ;-)