Potential Denial-of-Service in bindata
Published: May 18, 2021
SECURITY IDENTIFIERS
- CVE: CVE-2021-32823 (NVD)
- GHSA: GHSA-hj56-84jw-67h6
- Vendor Advisory: https://github.com/rubysec/ruby-advisory-db/issues/476
GEM
SEVERITY
CVSS v3.x: 3.7 (Low)
PATCHED VERSIONS
>= 2.4.10
DESCRIPTION
In bindata 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 <user_input>.constantize there is a potential
for a CPU-based DoS. In version 2.4.10, bindata improved the creation time of Bits
and Integers.
