{"id":"UBUNTU-CVE-2021-32823","details":"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\u003cN\u003e. In combination with \u003cuser_input\u003e.constantize there is a potential for a CPU-based DoS. In version 2.4.10 bindata improved the creation time of Bits and Integers.","modified":"2026-05-20T16:04:59.500766334Z","published":"2021-06-24T00:15:00Z","upstream":["CVE-2021-32823"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-32823"},{"type":"REPORT","url":"https://about.gitlab.com/releases/2021/06/01/security-release-gitlab-13-12-2-released/#update-bindata-dependency"},{"type":"REPORT","url":"https://github.com/rubysec/ruby-advisory-db/issues/476"},{"type":"REPORT","url":"https://github.com/dmendel/bindata/commit/d99f050b88337559be2cb35906c1f8da49531323"},{"type":"REPORT","url":"https://github.com/dmendel/bindata/blob/v2.4.10/ChangeLog.rdoc#version-2410-2021-05-18-"},{"type":"REPORT","url":"https://rubygems.org/gems/bindata"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-32823"}],"affected":[{"package":{"name":"ruby-bindata","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ruby-bindata?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.5-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-bindata","binary_version":"2.3.5-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32823.json"}},{"package":{"name":"ruby-bindata","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ruby-bindata?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.5-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-bindata","binary_version":"2.3.5-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32823.json"}},{"package":{"name":"ruby-bindata","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ruby-bindata?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.8-1","2.4.8-2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.4.8-2","binary_name":"ruby-bindata"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32823.json"}},{"package":{"name":"ruby-bindata","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/ruby-bindata?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.14-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-bindata","binary_version":"2.4.14-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32823.json"}},{"package":{"name":"ruby-bindata","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/ruby-bindata?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.14-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-bindata","binary_version":"2.4.14-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32823.json"}},{"package":{"name":"ruby-bindata","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/ruby-bindata?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.14-1","2.5.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-bindata","binary_version":"2.5.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32823.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"type":"Ubuntu","score":"medium"}]}