CVE-2026-44837 Details
Description
view_component is a framework for building reusable, testable, and encapsulated view components in Ruby on Rails. From 3.0.0 to 4.9.0, the system test entrypoint canonicalizes a user-controlled file path with File.realpath, then checks whether the resolved path starts with the temp directory path. This is not a safe containment check because sibling directories can share the same string prefix. This vulnerability is fixed in 4.9.0.
A path traversal vulnerability has been identified in the View Component framework for Ruby on Rails, affecting versions 3.0.0 through 4.9.0. The issue arises in the system test entrypoint, where user-controlled file paths are canonicalized using File.realpath. The subsequent containment check, which verifies if the resolved path begins with the temporary directory path, is flawed. This is because sibling directories can share the same prefix, allowing for unauthorized file access.
Users are advised to update to View Component version 4.9.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 28, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7xc-f7vp | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7xc-f7vp | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-187 | Partial String Comparison | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| viewcomponent view component | >= 3.0.0, < 4.9.0 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 2, 2026 | Initial Analysis | [email protected] |
| May 28, 2026 | CVE Modified | CISA-ADP |
| May 26, 2026 | New CVE Received | [email protected] |