Intel

AIKIDO-2026-433182

rubygems-update is vulnerable to Improper Input Validation

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jun 26, 2026
June 26, 2026

58

CVE Score

Medium

Improper Input Validation

Are you affected? Scan for Free

TL;DR

rubygems' gem installer was vulnerable to malicious executable/bin names being embedded into generated Ruby wrapper code, enabling Ruby code injection (leading to RCE) and also to bindir/executable path manipulation via insufficient validation. The patch escapes embedded filename characters and adds strict validation that bindir stays within the gem directory and executables are safe basenames. Bundler also includes a fix for cooldown filtering that could break dependency resolution (DoS), plus improved terminal/control-character sanitization.

How do I fix this?

Upgrade the rubygems-update library to the patch version.

Who does this affect?

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

Versions

2.2.0 - 4.0.13

Fixed in 4.0.14

Background info

rubygems-update is vulnerable to Improper Input Validation in versions 2.2.0 - 4.0.13.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea