CVE-2026-44837

5.9 MEDIUM
Published: May 26, 2026 Modified: June 02, 2026
View on NVD

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7xc-f7vp
Source: security-advisories@github.com
Exploit Mitigation Vendor Advisory
https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7xc-f7vp
Source: 134c704f-9b21-4f2e-91b3-4a467353bcc0
Exploit Mitigation Vendor Advisory

2 reference(s) from NVD

Quick Stats

CVSS v3 Score
5.9 / 10.0
EPSS (Exploit Probability)
0.4%
28th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

viewcomponent