Denial-of-Service Vulnerability in ruby-bindata Package

ruby-bindata Updated 02 Oct 2025

Summary

24/06/2021
N/A
No i
Low
3.7

UBUNTU-CVE-2021-32823: In the bindata RubyGem before version 2.4.10 there is a potential denial-of-service vulnerability. Affects ruby-bindata versions 2.3.5-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The ruby-bindata package is a RubyGem that provides a way to define binary data structures in Ruby. It allows developers to easily create and manipulate binary data formats. However, certain versions of this package are vulnerable to a denial-of-service (DoS) attack due to inefficient handling of specific classes, which can lead to performance degradation.

Vulnerability Detail

In the bindata RubyGem before version 2.4.10, there exists a potential denial-of-service vulnerability. This issue arises from the slow creation of certain classes in BinData, such as BinData::Bit100000 and BinData::Bit<N>. When combined with user input that triggers the constantization of these classes, it can result in excessive CPU usage, effectively causing a DoS. The vulnerability is identified as CVE-2021-32823 and has a CVSS score of 3.7, indicating a medium severity level.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, avoid using the vulnerable classes in your application until you can update to a patched version. If you must use them, consider implementing input validation to prevent excessive CPU usage.

Conclusion

The ruby-bindata package has a significant vulnerability that can lead to denial-of-service attacks. It is crucial for developers to update to the latest version to ensure their applications remain secure. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for ruby-bindata →

Share this vulnerability

FAQ

CVE-2021-32823 is a vulnerability in the ruby-bindata package that can lead to a denial-of-service attack due to inefficient class creation.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The vulnerability can lead to high CPU usage, causing applications to slow down or become unresponsive, which can affect user experience.

Yes, the patch is available in version 2.4.10 and later of the ruby-bindata package.

If you cannot update immediately, avoid using the vulnerable classes and implement input validation to mitigate the risk of a DoS attack.

Related vulnerabilities

Recent vulnerabilities recorded for ruby-bindata.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback