Path Traversal Vulnerability in RubyGems Affected by Symlink Resolution
CVE-2026-82455

6.9MEDIUM

Key Information:

Vendor

Ruby

Status
Vendor
CVE Published:
29 August 2026

What is CVE-2026-82455?

A serious vulnerability has been identified in RubyGems where improper handling of filesystem symlinks during gem extraction allows files to be extracted outside the designated directory. This flaw occurs when a symlink within the destination directory points to a location outside of it, potentially compromising the safety of the extraction process. The issue arises from RubyGems failing to re-validate path containment after resolving the symlink. To address this, the fix implemented ensures that the real path of the parent directory is verified before writing files, thus raising an error if the extraction attempts to escape the intended directory boundaries.

Affected Version(s)

rubygems 3.2.30 < 4.0.13

References

CVSS V4

Score:
6.9
Severity:
MEDIUM
Confidentiality:
None
Integrity:
High
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Ali Firas
.