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.
History

Mon, 31 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

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

Updated: 2026-08-31T18:20:40.656Z

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

Link: CVE-2026-82455

cve-icon Vulnrichment

Updated: 2026-08-31T18:20:36.828Z

cve-icon NVD

Status : Received

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

Modified: 2026-08-31T19:17:19.880

Link: CVE-2026-82455

cve-icon Redhat

No data.