Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Viewcomponent | View Component | >= 3.0.0, < 4.9.0 |
Related Weaknesses (CWE)
References
- https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7ExploitMitigationVendor Advisory
- https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7ExploitMitigationVendor Advisory
FAQ
What is CVE-2026-44837?
CVE-2026-44837 is a vulnerability with a CVSS score of 5.9 (MEDIUM). 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 p...
How severe is CVE-2026-44837?
CVE-2026-44837 has been rated MEDIUM with a CVSS base score of 5.9/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-44837?
Check the references section above for vendor advisories and patch information. Affected products include: Viewcomponent View Component.