{"id":"GHSA-hj56-84jw-67h6","summary":"Potential Denial-of-Service in bindata","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.\n\n","aliases":["BIT-gitlab-2021-32823","CVE-2021-32823"],"modified":"2024-11-21T05:24:40.410364Z","published":"2021-06-23T23:42:04Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2021-06-23T23:41:30Z","nvd_published_at":"2021-06-24T00:15:00Z","cwe_ids":["CWE-400"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32823"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/issues/476"},{"type":"WEB","url":"https://github.com/dmendel/bindata/commit/d99f050b88337559be2cb35906c1f8da49531323"},{"type":"WEB","url":"https://about.gitlab.com/releases/2021/06/01/security-release-gitlab-13-12-2-released/#update-bindata-dependency"},{"type":"PACKAGE","url":"https://github.com/dmendel/bindata"},{"type":"WEB","url":"https://github.com/dmendel/bindata/blob/master/ChangeLog.rdoc#version-2410-2021-05-18-"},{"type":"WEB","url":"https://github.com/dmendel/bindata/blob/v2.4.10/ChangeLog.rdoc#version-2410-2021-05-18-"},{"type":"WEB","url":"https://rubygems.org/gems/bindata"}],"affected":[{"package":{"name":"bindata","ecosystem":"RubyGems","purl":"pkg:gem/bindata"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.10"}]}],"versions":["0.10.0","0.11.0","0.11.1","0.5.0","0.5.1","0.6.0","0.7.0","0.8.0","0.8.1","0.9.0","0.9.1","0.9.2","0.9.3","1.0.0","1.1.0","1.2.0","1.2.1","1.2.2","1.3.1","1.4.0","1.4.1","1.4.2","1.4.3","1.4.4","1.4.5","1.5.0","1.5.1","1.6.0","1.8.0","1.8.1","1.8.2","1.8.3","2.0.0","2.1.0","2.2.0","2.3.0","2.3.1","2.3.2","2.3.3","2.3.4","2.3.5","2.4.0","2.4.1","2.4.2","2.4.3","2.4.4","2.4.5","2.4.6","2.4.7","2.4.8","2.4.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/06/GHSA-hj56-84jw-67h6/GHSA-hj56-84jw-67h6.json"}}],"schema_version":"1.9.0","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_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"}]}