CVE-2026-44837
view_component: System Test Entry Point Path Check Allows Sibling Directory Escape
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.
INFO
Published Date :
May 26, 2026, 9:16 p.m.
Last Modified :
July 24, 2026, 11:10 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | HIGH | [email protected] |
Solution
- Update the view_component gem to version 4.9.0 or later.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-44837.
| URL | Resource |
|---|---|
| https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7xc-f7vp | Exploit Mitigation Vendor Advisory |
| https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7xc-f7vp | Exploit Mitigation Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-44837 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-44837
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-44837 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-44837 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Jul. 24, 2026
Action Type Old Value New Value Changed Translation Title: view_component de ViewComponent, Description: view_component es un framework para construir componentes de vista reutilizables, testeables y encapsulados en Ruby on Rails. Desde 3.0.0 hasta 4.9.0, el punto de entrada de la prueba del sistema canoniza una ruta de archivo controlada por el usuario con File.realpath, luego verifica si la ruta resuelta comienza con la ruta del directorio temporal. Esta no es una verificación de contención segura porque los directorios hermanos pueden compartir el mismo prefijo de cadena. Esta vulnerabilidad está corregida en 4.9.0. Title: view_component de ViewComponent, Description: view_component es un framework para construir componentes de vista reutilizables, testeables y encapsulados en Ruby on Rails. Desde 3.0.0 hasta 4.9.0, el punto de entrada de la prueba del sistema canoniza una ruta de archivo controlada por el usuario con File.realpath, luego verifica si la ruta resuelta comienza con la ruta del directorio temporal. Esta no es una verificación de contención segura porque los directorios hermanos pueden compartir el mismo prefijo de cadena. Esta vulnerabilidad está corregida en 4.9.0. -
CVE Translated by [email protected]
Jul. 23, 2026
Action Type Old Value New Value Added Translation Title: view_component de ViewComponent, Description: view_component es un framework para construir componentes de vista reutilizables, testeables y encapsulados en Ruby on Rails. Desde 3.0.0 hasta 4.9.0, el punto de entrada de la prueba del sistema canoniza una ruta de archivo controlada por el usuario con File.realpath, luego verifica si la ruta resuelta comienza con la ruta del directorio temporal. Esta no es una verificación de contención segura porque los directorios hermanos pueden compartir el mismo prefijo de cadena. Esta vulnerabilidad está corregida en 4.9.0. -
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'ViewComponent', 'product': 'view_component', 'versions': [{'status': 'affected', 'version': '>= 3.0.0, < 4.9.0'}]}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-44837', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-05-28T14:03:17.325766Z'} -
Initial Analysis by [email protected]
Jun. 02, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Added CPE Configuration OR *cpe:2.3:a:viewcomponent:view_component:*:*:*:*:*:ruby:*:* versions from (including) 3.0.0 up to (excluding) 4.9.0 Added Reference Type CISA-ADP: https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7xc-f7vp Types: Exploit, Mitigation, Vendor Advisory Added Reference Type GitHub, Inc.: https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7xc-f7vp Types: Exploit, Mitigation, Vendor Advisory -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
May. 28, 2026
Action Type Old Value New Value Added Reference https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7xc-f7vp -
New CVE Received by [email protected]
May. 26, 2026
Action Type Old Value New Value Added 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. Added CVSS V3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N Added CWE CWE-187 Added Reference https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7xc-f7vp