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.

Project Subscriptions

Vendors Products
Rubygems Subscribe
Rubygems Subscribe
Advisories

No advisories yet.

Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Sat, 29 Aug 2026 14:00:00 +0000

Type Values Removed Values Added
Description 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.
Title RubyGems before 4.0.13 Path Traversal via Symlink Resolution
First Time appeared Rubygems
Rubygems rubygems
Weaknesses CWE-59
CPEs cpe:2.3:a:rubygems:rubygems:*:*:*:*:*:*:*:*
Vendors & Products Rubygems
Rubygems rubygems
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H'}

cvssV4_0

{'score': 6.9, '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'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-29T13:47:56.760Z

Reserved: 2026-08-29T13:22:59.614Z

Link: CVE-2026-82455

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-29T14:16:38.623

Modified: 2026-08-29T14:16:38.623

Link: CVE-2026-82455

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-29T15:30:05Z

Weaknesses