Intel

AIKIDO-2026-981028

pubnub is vulnerable to Denial of Service (DoS)

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

59

Medium Risk

This Affects:

RUBYpubnub
4.7.0 - 6.1.0
Fixed in 6.1.1
Are you affected? Scan for Free

TL;DR

Pubnub::Cbor decodes CBOR-encoded PubNub access tokens without bounding recursion depth, per-container element counts, or total input size. When a malformed or attacker-crafted token is passed to Pubnub::Client#parse_token, the decoder can recurse until it raises SystemStackError, spin on truncated input, or attempt very large allocations, hanging or crashing the caller. An attacker who can supply token input to the parser can therefore trigger a denial of service. The fix caps recursion depth, per-container length, and total input size, adds bounded byte consumption, and raises Pubnub::Cbor::DecodeError on malformed input.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application passes externally supplied or otherwise untrusted tokens to Pubnub::Client#parse_token.

Background info

pubnub is vulnerable to Denial of Service (DoS) in versions 4.7.0 - 6.1.0.

How to fix this

Upgrade the pubnub library to the patch version.