Skip to content
Threat Feed
high advisory

CVE-2026-82455 - Path Traversal in RubyGems Extraction Process

A path traversal vulnerability in RubyGems allows maliciously crafted gems to write files outside the intended extraction directory by exploiting improper symlink validation.

CVE search metadata

CVE search record: CVE-2026-82455. Severity: high. CVSS: 7.1. KEV: no. Product: RubyGems. Brief: CVE-2026-82455 - Path Traversal in RubyGems Extraction Process. Brief link: https://feed.craftedsignal.io/briefs/2026-08-rubygems-path-traversal/

RubyGems is vulnerable to a path traversal flaw during the gem extraction process, tracked as CVE-2026-82455. The vulnerability arises because RubyGems fails to re-validate path containment after resolving filesystem symlinks during package installation. An attacker can craft a malicious gem containing a symlink that points to a location outside the designated extraction root. If this symlink is placed within the destination directory, subsequent file extraction operations may follow the link, allowing the attacker to overwrite or create files in arbitrary locations on the host filesystem with the privileges of the user running the gem installation command. This could lead to remote code execution (RCE) if an attacker can overwrite critical system binaries, configuration files, or startup scripts. Defenders should update their RubyGems environments immediately to ensure proper path validation and symlink checks are enforced.

Impact

The vulnerability allows for arbitrary file write on the host filesystem, potentially leading to privilege escalation or remote code execution. This impacts any user or CI/CD system that executes 'gem install' on untrusted or maliciously crafted gem files.

Recommendation

  • Update RubyGems to the patched version that incorporates the fix for CVE-2026-82455 to ensure that the real path of the parent directory is validated before file operations occur.
  • Implement sandboxing or containerization for gem installation processes to limit the scope of potential file system access.
  • Monitor build pipelines for unexpected file writes originating from gem installation processes.

Immediate actions

Update RubyGems software to the latest available version

IT Operations 48h

Mitigations

Patch RubyGems environment

immediate IT Operations

CVE-2026-82455