Vulnerability · Published Jun 23, 2021 · Assigned by GitHub_M
CVE-2021-32823Potential Denial-of-Service in bindata
Low 3.7
In plain English
A low-severity uncontrolled resource consumption in bindata from dmendel. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.9% (higher than 79% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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 <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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ruby-bindata | 2.4.14-1 | DEBIAN-CVE-2021-32823 |
| Debian:13 | ruby-bindata | 2.4.14-1 | DEBIAN-CVE-2021-32823 |
| Debian:14 | ruby-bindata | 2.4.14-1 | DEBIAN-CVE-2021-32823 |
| RubyGems | bindata | 2.4.10 | GHSA-hj56-84jw-67h6 |
| Ubuntu:22.04:LTS | ruby-bindata | no fix listed | UBUNTU-CVE-2021-32823 |
| Ubuntu:24.04:LTS | ruby-bindata | no fix listed | UBUNTU-CVE-2021-32823 |
| Ubuntu:25.10 | ruby-bindata | no fix listed | UBUNTU-CVE-2021-32823 |
| Ubuntu:26.04:LTS | ruby-bindata | no fix listed | UBUNTU-CVE-2021-32823 |
| Ubuntu:26.10 | ruby-bindata | no fix listed | UBUNTU-CVE-2021-32823 |
Affected products (as reported)
Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://github.com/dmendel/bindata/commit/d99f050b88337559be2cb35906c1f8da49531323 x_refsource_CONFIRM
- https://github.com/rubysec/ruby-advisory-db/issues/476 x_refsource_MISC
- https://about.gitlab.com/releases/2021/06/01/security-release-gitlab-13-12-2-released/#update-bindata-dependency x_refsource_MISC
- https://rubygems.org/gems/bindata x_refsource_MISC
- https://github.com/dmendel/bindata/blob/v2.4.10/ChangeLog.rdoc#version-2410-2021-05-18- x_refsource_MISC