Intel

AIKIDO-2026-652269

rbs is vulnerable to Denial of Service (DoS)

Denial of Service (DoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 5 days ago

59

Medium Risk

This Affects:

RUBYrbs
4.0.0 - 4.0.3
Fixed in 4.1.0
Are you affected? Scan for Free

TL;DR

The RBS parser's C lexer walks its input one character at a time and uses the active encoding's width lookup to decide how many bytes to advance. When the input contains a byte that is not valid for the encoding, the width lookup returns zero and the cursor never advances, so parsing a signature that includes an invalid byte enters a non-terminating loop while the global VM lock is held, and an invalid byte reached at the top level trips an internal assertion that aborts the process. Parsing untrusted or externally supplied signature text can therefore be forced to hang indefinitely or crash. The fix makes the lexer consume one byte when it meets an invalid sequence so parsing always makes progress, and surfaces the invalid byte as a normal parsing error instead of silently swallowing it or looping.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application parses RBS signature text that comes from an untrusted or externally controlled source.

Background info

rbs is vulnerable to Denial of Service (DoS) in versions 4.0.0 - 4.0.3.

How to fix this

Upgrade the rbs library to the patch version.