Vulnerability · Published May 26, 2026 · Assigned by GitHub_M

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

Medium 5.9

In plain English

A medium-severity security flaw in view_component from ViewComponent. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.4%top 64.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ruby-view-componentno fix listedDEBIAN-CVE-2026-44837
Debian:14ruby-view-component4.12.0-1DEBIAN-CVE-2026-44837
RubyGemsview_component4.9.0GHSA-hg3h-g7xc-f7vp
Ubuntu:24.04:LTSruby-view-componentno fix listedUBUNTU-CVE-2026-44837
Ubuntu:26.10ruby-view-componentno fix listedUBUNTU-CVE-2026-44837

Affected products (as reported)

VendorProductVersions
ViewComponent view_component >= 3.0.0, < 4.9.0

Weakness: CWE-187 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

References