CVE-2026-82455
Received Received - Intake

RubyGems Symlink Path Traversal During Gem Extraction

Vulnerability report for CVE-2026-82455, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-29

Last updated on: 2026-08-29

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-29
Last Modified
2026-08-29
Generated
2026-08-29
AI Q&A
2026-08-29
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
ruby rubygems From 3.2.30 (inc) to 4.0.13 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-59 The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in RubyGems involves a failure to re-validate path containment after resolving symlinks during gem extraction. If a pre-existing symlink inside the destination directory points outside the extraction root, files can be written outside the intended directory, breaking the safety boundary. The fix checks the real path of the parent directory before writing and raises an error if it escapes the destination.

Detection Guidance

To detect this vulnerability, check your RubyGems version with `gem --version`. If it is below 4.0.13, the system is vulnerable. Additionally, review gem extraction logs for `Gem::Package::PathError` exceptions which may indicate failed extraction attempts due to symlink escapes.

Impact Analysis

An attacker could craft a malicious gem package that uses symlinks to write files outside the intended extraction directory. This could allow unauthorized file writes, potentially overwriting system files, installing malware, or gaining elevated privileges on the affected system.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating confidentiality and integrity requirements in GDPR and HIPAA. It may result in non-compliance due to potential exposure of sensitive data or system compromise, leading to regulatory penalties or loss of trust.

Mitigation Strategies

Upgrade RubyGems to version 4.0.13 or later using `gem update --system`. Avoid reusing directories for gem extraction and ensure no pre-existing symlinks point outside intended paths. Monitor extraction logs for errors.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-82455. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart