Critical ReDoS Vulnerability in GlobalID Package (CVE-2023-22799)

ruby-globalid Updated 02 Oct 2025

Summary

09/02/2023
N/A
No i
High
7.5

CVE-2023-22799: A ReDoS based DoS vulnerability in the GlobalID. Affects ruby-globalid versions >= cec187e600af9ed5639f099ffb272bcb02e817fb, < 574b99fb9a23a9c637e44c0970616dd32b68e93f. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

GlobalID is a Ruby library that provides a way to handle global identifiers in a Rails application. It is commonly used to manage relationships between models in a way that is both efficient and easy to understand. However, versions prior to 1.0.1 are susceptible to a ReDoS (Regular Expression Denial of Service) vulnerability, which can be exploited by attackers to degrade the performance of applications using this package.

Vulnerability Detail

CVE-2023-22799 is a ReDoS vulnerability found in the GlobalID package, specifically in versions earlier than 1.0.1. The vulnerability arises from the use of a regular expression that can be manipulated by an attacker through specially crafted input. This can lead to excessive processing time, causing the application to become unresponsive or crash. The potential ramifications include denial of service, where legitimate users are unable to access the application due to the overload caused by the attack.

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

If upgrading is not immediately possible, users can implement input validation to restrict the types of input that can be processed by the vulnerable regular expression. This may involve sanitizing user inputs or limiting the length of input strings to mitigate the risk of exploitation.

Conclusion

CVE-2023-22799 represents a significant risk for applications using the GlobalID package prior to version 1.0.1. Users are strongly advised to upgrade to the latest version to protect against potential denial of service attacks. Implementing input validation can serve as a temporary workaround while transitioning to a secure version.

See every vulnerability recorded for ruby-globalid →

Share this vulnerability

FAQ

A ReDoS vulnerability occurs when a regular expression takes an excessive amount of time to process certain inputs, potentially leading to denial of service.

You can check if your application is affected by using tools like Vulert, which monitors open-source vulnerabilities in your software using a manifest file.

The main consequence is denial of service, where attackers can exploit the vulnerability to make the application unresponsive, affecting legitimate users.

Yes, you should upgrade to GlobalID version 1.0.1 or later to mitigate the vulnerability.

Yes, Vulert allows you to monitor and alert for open-source vulnerabilities in real-time using just a manifest file like package-lock.json.

Related vulnerabilities

Recent vulnerabilities recorded for ruby-globalid.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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