Intel

AIKIDO-2026-290331

bundler is vulnerable to Path Traversal

Path Traversal Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 12, 2026

62

Medium Risk

This Affects:

RUBYbundler
1.17.2 - 4.0.17
Fixed in 4.0.18
Are you affected? Scan for Free

TL;DR

Bundler builds compact-index cache file paths by joining a gem name from remote index data into the local cache directory without checking that the name is a safe path component. A malicious or compromised index or mirror can supply a gem name that contains path traversal segments, so Bundler writes cache files outside the intended cache directory. The fix checks gem names before building those cache paths.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and Bundler fetches gem metadata from an untrusted or compromised index or mirror.

Background info

bundler is vulnerable to Path Traversal in versions 1.17.2 - 4.0.17.

How to fix this

Upgrade the bundler library to the patch version.