CVE Catalog

CVE-2026-44837

MediumCVSS 5.9
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.41%

34th percentile - higher than 34% of all known CVEs

Summary

Vulnerability in the view_component framework (Ruby on Rails) versions 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. Fixed in version 4.9.0.

Risk Assessment

An attacker can bypass access controls for temporary files, potentially accessing files in other directories, leading to data disclosure or privilege escalation.

Recommendation

Upgrade view_component to version 4.9.0 or later. Avoid relying on path prefix comparisons for security.

Other vulnerabilities in view_component

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS