{"id":"CVE-2021-32823","published":"2021-06-23T23:40:12Z","modified":"2024-08-03T23:33:55Z","title":"Potential Denial-of-Service in bindata","vendor":"dmendel","product":"bindata","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01866,"percentile":0.79813,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/dmendel/bindata/commit/d99f050b88337559be2cb35906c1f8da49531323","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rubysec/ruby-advisory-db/issues/476","tags":["x_refsource_MISC"]},{"url":"https://about.gitlab.com/releases/2021/06/01/security-release-gitlab-13-12-2-released/#update-bindata-dependency","tags":["x_refsource_MISC"]},{"url":"https://rubygems.org/gems/bindata","tags":["x_refsource_MISC"]},{"url":"https://github.com/dmendel/bindata/blob/v2.4.10/ChangeLog.rdoc#version-2410-2021-05-18-","tags":["x_refsource_MISC"]}],"priority":{"score":18.6,"factors":[{"name":"EPSS percentile","points":15.96},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"dmendel","affectedVersions":[{"vendor":"dmendel","product":"bindata","versions":["< 2.4.10"]}],"affected":[{"ecosystem":"RubyGems","package":"bindata","vulnerableRanges":["<2.4.10"],"patched":["2.4.10"],"from":["GHSA-hj56-84jw-67h6"],"provenance":"source"}],"summary":{"text":"The flaw is an uncontrolled resource consumption issue in the bindata RubyGem (vendor dmendel), affecting versions before 2.4.10, where creating certain BinData classes such as Bit<N> types is very slow. An attacker with network access and no privileges or user interaction could cause CPU-based denial of service, but only when the application combines this with user-controlled input passed to constantize, and the attack is considered high complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:42:51Z"},"euvd":{"id":"EUVD-2021-1335","exploited":false,"provenance":"source"}}