Intel

AIKIDO-2024-10558

nats is vulnerable to Race Condition

Race Condition Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

25

Low Risk

This Affects:

Gonats
1.25.0 - 1.37.0
Fixed in 1.38.0

TL;DR

Affected versions of this package are affected by a race condition found in both the new and legacy JetStream APIs. This issue specifically arises in the Fetch APIs that return MessageBatch, where a race condition can occur when accessing errors. An attacker could potentially exploit this vulnerability to carry out a Denial-of-Service (DoS) attack.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

nats is vulnerable to Race Condition in versions 1.25.0 - 1.37.0.

How to fix this

Upgrade the nats library to the patch version.