CVE-2024-22871: High severity ibm cognos analytics vulnerability
An issue in Clojure versions 1.20 to 1.12.0-alpha5 allows an attacker to cause a denial of service (DoS) via the clojure.core$partial$fn5920 function.
Other sources
Any program on the JVM may read serialized objects via java.io.ObjectInputStream.readObject(). Reading serialized objects from an untrusted source is inherently unsafe (this affects any program running on any version of the JVM) and is a prerequisite for this vulnerability.
Clojure classes that represent infinite seqs (Cycle, infinite Repeat, and Iterate) do not define hashCode() and use the parent ASeq.hashCode(), which walks the seq to compute the hash, yielding an infinite loop. Classes like java.util.HashMap call hashCode() on keys during deserialization of a serialized map.
The exploit requires:
1. Crafting a serialized HashMap object with an infinite seq object as a key. 2. Sending that to a program that reads serialized objects via ObjectInputStream.readObject().
This will cause the program to enter an infinite loop on the reading thread and thus a denial of service (DoS).
The affected Clojure classes (Cycle, Repeat, Iterate) exist in Clojure 1.7.0-1.11.1, 1.12.0-alpha1-1.12.0-alpha8.
— GitHub
Clojure is vulnerable to a denial of service, caused by a flaw in the clojure.core$partial$fn5920 function. A remote attacker could exploit this vulnerability to cause a denial of service.
— IBM
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-22871?
CVE-2024-22871 has a severity rating that indicates it can cause a denial of service (DoS) in affected applications.
How do I fix CVE-2024-22871?
To fix CVE-2024-22871, you should upgrade to Clojure version 1.12.0-alpha9 or 1.11.2, or apply the appropriate patches for IBM Cognos Analytics.
Which versions of Clojure are affected by CVE-2024-22871?
CVE-2024-22871 affects Clojure versions 1.20 to 1.12.0-alpha5.
What functionalities are impacted by CVE-2024-22871?
CVE-2024-22871 impacts the functionality of the clojure.core$partial$fn__5920 function, potentially leading to DoS.
Is CVE-2024-22871 a remote vulnerability?
CVE-2024-22871 can be exploited locally or remotely, allowing attackers to affect any JVM-based application that uses the vulnerable versions.