CVE-2026-82455 MEDIUM

CVE-2026-82455: RubyGems before 4.0.13 Path Traversal via Symlink Resolution

Vendor Ruby
Product rubygems
Weakness CWE-59
Published August 29, 2026
Last update August 29, 2026

CVSS base score

6.9/10
Attack vector Local
Attack complexity Low
Privileges required None
User interaction
Confidentiality
Integrity

CVSS vector

CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

What the vulnerability does

01Description

RubyGems fails to re-validate path containment after filesystem symlink resolution during gem extraction. When a pre-existing symlink inside the destination directory points outside the extraction root, extracted files that appear to be written under the destination directory can instead be written outside of it, breaking the extraction safety boundary. The fix resolves the real path of the parent directory before writing and raises Gem::Package::PathError if it escapes the destination directory.

Key dates

02Disclosure timeline

August 29, 2026 CVE published