Intel

AIKIDO-2025-10223

faraday is vulnerable to Race Condition

Race Condition Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Apr 9, 2025

18

Low Risk

This Affects:

RUBYfaraday
0.15.3 - 2.12.2
Fixed in 2.12.3
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to a thread safety issue in the proxy option of Faraday, where the provided hash is mutated by adding keys to it. In multi-threaded environments, this can lead to a RuntimeError. The fix avoids modifying the original hash by working with a duplicate instead and includes a test to ensure the original proxy option remains unchanged.

Who does this affect?

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

Background info

faraday is vulnerable to Race Condition in versions 0.15.3 - 2.12.2.

How to fix this

Upgrade the faraday library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform