Intel

AIKIDO-2026-11048

rubygems-update is vulnerable to Path Traversal

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

46

Medium Risk

This Affects:

RUBYrubygems-update
0.0.1 - 4.0.12
Fixed in 4.0.13
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to a path traversal during gem extraction. RubyGems rejected absolute paths and .. segments but still followed a pre-existing symlink inside the extraction destination, allowing files written under destination_dir to land outside the intended root. The fix resolves the real path of each extracted file's parent directory and raises a Gem::Package::PathError when the resolved path escapes the destination.

Who does this affect?

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

Background info

rubygems-update is vulnerable to Path Traversal in versions 0.0.1 - 4.0.12.

How to fix this

Upgrade the rubygems-update 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