CVE-2026-44837

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

State
Published
Severity
5.9 Medium
Published
May 26, 2026
Updated
May 28, 2026
Reserved
May 7, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NGitHub_M

Weaknesses

Affected Products

ProductVersions
view_componentViewComponent
  • >= 3.0.0, < 4.9.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.