{"id":"CVE-2021-32823","state":"PUBLISHED","title":"Potential Denial-of-Service in bindata","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.","publishedAt":"2021-06-23T23:40:12.000Z","updatedAt":"2024-08-03T23:33:55.878Z","severity":{"score":3.7,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["dmendel bindata"],"affected":[{"vendor":"dmendel","product":"bindata","versions":[{"version":"< 2.4.10","status":"affected"}]}],"references":["https://github.com/dmendel/bindata/commit/d99f050b88337559be2cb35906c1f8da49531323","https://github.com/rubysec/ruby-advisory-db/issues/476","https://about.gitlab.com/releases/2021/06/01/security-release-gitlab-13-12-2-released/#update-bindata-dependency","https://rubygems.org/gems/bindata","https://github.com/dmendel/bindata/blob/v2.4.10/ChangeLog.rdoc#version-2410-2021-05-18-"],"weaknesses":["CWE-400"],"ingestedAt":"2026-10-29T19:48:33.225Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/32xxx/CVE-2021-32823.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-32823","state":"PUBLISHED","datePublished":"2021-06-23T23:40:12.000Z","dateUpdated":"2024-08-03T23:33:55.878Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2021-05-12T00:00:00.000Z"},"containers":{"cna":{"title":"Potential Denial-of-Service in bindata","descriptions":[{"lang":"en","value":"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":[{"vendor":"dmendel","product":"bindata","versions":[{"version":"< 2.4.10","status":"affected"}]}],"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"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":3.7,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-400","description":"CWE-400 Uncontrolled Resource Consumption","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2021-06-23T23:40:11.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-hj56-84jw-67h6","discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-32823","STATE":"PUBLIC","TITLE":"Potential Denial-of-Service in bindata"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"bindata","version":{"version_data":[{"version_value":"< 2.4.10"}]}}]},"vendor_name":"dmendel"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":3.7,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-400 Uncontrolled Resource Consumption"}]}]},"references":{"reference_data":[{"name":"https://github.com/dmendel/bindata/commit/d99f050b88337559be2cb35906c1f8da49531323","refsource":"CONFIRM","url":"https://github.com/dmendel/bindata/commit/d99f050b88337559be2cb35906c1f8da49531323"},{"name":"https://github.com/rubysec/ruby-advisory-db/issues/476","refsource":"MISC","url":"https://github.com/rubysec/ruby-advisory-db/issues/476"},{"name":"https://about.gitlab.com/releases/2021/06/01/security-release-gitlab-13-12-2-released/#update-bindata-dependency","refsource":"MISC","url":"https://about.gitlab.com/releases/2021/06/01/security-release-gitlab-13-12-2-released/#update-bindata-dependency"},{"name":"https://rubygems.org/gems/bindata","refsource":"MISC","url":"https://rubygems.org/gems/bindata"},{"name":"https://github.com/dmendel/bindata/blob/v2.4.10/ChangeLog.rdoc#version-2410-2021-05-18-","refsource":"MISC","url":"https://github.com/dmendel/bindata/blob/v2.4.10/ChangeLog.rdoc#version-2410-2021-05-18-"}]},"source":{"advisory":"GHSA-hj56-84jw-67h6","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/dmendel/bindata/commit/d99f050b88337559be2cb35906c1f8da49531323","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/rubysec/ruby-advisory-db/issues/476","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://about.gitlab.com/releases/2021/06/01/security-release-gitlab-13-12-2-released/#update-bindata-dependency","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://rubygems.org/gems/bindata","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/dmendel/bindata/blob/v2.4.10/ChangeLog.rdoc#version-2410-2021-05-18-","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T23:33:55.878Z"}}]}}}