Intel

AIKIDO-2026-390588

geminabox is vulnerable to Path Traversal

Path TraversalGHSA-rxr4-84rf-f47h Published 2 days ago

60

Medium Risk

This Affects:

RUBYgeminabox
0.0.1 - 3.1.0
Fixed in 3.1.1
4.0.0 - 4.0.0
Fixed in 4.0.1
Are you affected? Scan for Free

TL;DR

geminabox builds the filename on disk for an uploaded gem from the name field inside the gem's own spec, without validating that name. A gem whose spec declares a name containing ../ writes a file outside the gems directory, and the shipped config.ru runs without authentication so both POST /api/v1/gems and POST /upload accept this by default. The fix rejects uploads whose name does not match RubyGems' own VALID_NAME_PATTERN or does not equal its own basename.

Who does this affect?

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

Background info

geminabox is vulnerable to Path Traversal in versions 0.0.1 - 3.1.0 and 4.0.0 - 4.0.0.

How to fix this

Upgrade the geminabox 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