CVE-2021-32823: Potential Denial-of-Service in bindata
In the bindata RubyGem before version 2.4.10 there is a potential denial-of-service vulnerability. In affected versions it is very slow for certain classes in BinData to be created. For example BinData::Bit100000, BinData::Bit100001, BinData::Bit100002, BinData::Bit<N>. In combination with <userinput>.constantize there is a potential for a CPU-based DoS. In version 2.4.10, bindata improved the creation time of Bits and Integers.
Other sources
In the bindata RubyGem before version 2.4.10 there is a potential denial-of-service vulnerability. In affected versions it is very slow for certain classes in BinData to be created. For example BinData::Bit100000, BinData::Bit100001, BinData::Bit100002, BinData::Bit<N>. In combination with <userinput>.constantize there is a potential for a CPU-based DoS. In version 2.4.10 bindata improved the creation time of Bits and Integers.
— MITRE
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is CVE-2021-32823?
CVE-2021-32823 is a potential denial-of-service vulnerability in the bindata RubyGem before version 2.4.10.
How does CVE-2021-32823 impact affected versions of bindata?
In affected versions of bindata, certain classes in BinData, such as BinData::Bit100000 and BinData::Bit100001, are very slow to be created, resulting in a potential denial-of-service vulnerability.
Which software is affected by CVE-2021-32823?
The bindata RubyGem before version 2.4.10, as well as Gitlab versions 12.0 and above (both Community and Enterprise editions) are affected by CVE-2021-32823.
What is the severity of CVE-2021-32823?
CVE-2021-32823 has a severity rating of medium (3.7).
How can I fix CVE-2021-32823?
To fix CVE-2021-32823, update the bindata RubyGem to version 2.4.10 or higher.