Live threats

All CVEs / Viewcomponent

CVE-2026-44837Viewcomponent View Component

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
May 26, 2026
Updated
Jul 24, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-187
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for View Component.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems view_component ≥ 3.0.0 < 4.9.0 4.9.0 gem "view_component", ">= 4.9.0"

Per OSV / GitHub Advisories (GHSA-hg3h-g7xc-f7vp). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
viewcomponentview_component≥ 3.0.0 < 4.9.0

Official sources

References

Links published by the sources. Open them with care.