view_component: System Test Entry Point Path Check Allows Sibling Directory Escape
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ViewComponent | view_component | 3.0.0 to before 4.9.0 | 4.9.0 | Patch available | CNA |
| — | view_component (RubyGems) | 3.0.0 to before 4.9.0 | 4.9.0 | Patch available | GHSA-hg3h-g7xc-f7vp |
- view_component VendorViewComponent Affected 3.0.0 to before 4.9.0 Fixed in 4.9.0 Patch available CNA
- view_component (RubyGems) Vendor— Affected 3.0.0 to before 4.9.0 Fixed in 4.9.0 Patch available GHSA-hg3h-g7xc-f7vp
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:viewcomponent:view_component:*:*:*:*:*:ruby:*:* | 3.0.0 to before 4.9.0 | Vulnerable | ViewComponent |
- cpe:2.3:a:viewcomponent:view_component:*:*:*:*:*:ruby:*:* Versions 3.0.0 to before 4.9.0 Vulnerable ·ViewComponent
Remediation
- Fix · CNA view_component (ViewComponent) Fixed in 4.9.0
- Fix · GHSA-hg3h-g7xc-f7vp view_component (RubyGems) Fixed in 4.9.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-44837
- 2026-10-03 Alias added: GHSA-hg3h-g7xc-f7vp
References
More ViewComponent View Component vulnerabilities
- TI-2026-39344 view_component: around_render HTML-Safety Bypass CVSS 3.1HIGH 8.7
- TI-2026-39343 view_component: Reused Component Instances Retain Stale Render Context CVSS 3.1MEDIUM 6.8
- TI-2024-14361 view_component Cross-site Scripting vulnerability CVSS 3.1MEDIUM 6.1
Sources
- CVE-2026-44837 · CVE Program
- CVE-2026-44837 · NVD
- FIRST EPSS
- GHSA-hg3h-g7xc-f7vp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences