RubySec

Providing security resources for the Ruby community

CVE-2026-44837 (view_component): view_component - System Test Entry Point Path Check Allows Sibling Directory Escape

view_component - System Test Entry Point Path Check Allows Sibling Directory Escape

Published: May 08, 2026

SECURITY IDENTIFIERS

GEM

view_component

SEVERITY

CVSS v3.x: 5.9 (Medium)

UNAFFECTED VERSIONS

< 3.0.0

PATCHED VERSIONS

>= 4.9.0

DESCRIPTION

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.

Severity: Medium; test-route scoped.

RELATED