geminabox is vulnerable to Path Traversal
60
CVE Score
Medium
Path Traversal
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.
Upgrade the geminabox library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.0.1 - 3.1.0
Fixed in 3.1.14.0.0 - 4.0.0
Fixed in 4.0.1geminabox is vulnerable to Path Traversal in versions 0.0.1 - 3.1.0 and 4.0.0 - 4.0.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.