CVE-2026-44837
published medium CVSS 3.1 · 5.9view_component: System Test Entry Point Path Check Allows Sibling Directory Escape
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ViewComponent | — | view_component>= 3.0.0, < 4.9.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ViewComponent | view_component | >= 3.0.0, < 4.9.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-187 CWE-187: Partial String Comparison
References
1Provider assertions
2GitHub_M · cna
view_component: System Test Entry Point Path Check Allows Sibling Directory Escape
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 845bc397f23227739a2e6864d83107e606725f524500f5b6feaafda187b51b56
- Ingested
- 23 Sep 2026, 09:15:36 UTC
- Source record
- Official CVE record