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.
Advisories
No advisories yet.
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
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
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: VulnCheck
Published:
Updated: 2026-08-29T13:47:56.760Z
Reserved: 2026-08-29T13:22:59.614Z
Link: CVE-2026-82455
No data.
Status : Received
Published: 2026-08-29T14:16:38.623
Modified: 2026-08-29T14:16:38.623
Link: CVE-2026-82455
No data.
OpenCVE Enrichment
Updated: 2026-08-29T15:30:05Z
Weaknesses