{"id":"CVE-2026-44837","published":"2026-05-26T19:40:47Z","modified":"2026-05-28T14:04:27Z","title":"view_component: System Test Entry Point Path Check Allows Sibling Directory Escape","vendor":"ViewComponent","product":"view_component","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00412,"percentile":0.36341,"provenance":"source"},"cwes":[{"id":"CWE-187","name":"Partial String Comparison"}],"references":[{"url":"https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7xc-f7vp","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.4,"factors":[{"name":"EPSS percentile","points":7.27},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"viewcomponent","affectedVersions":[{"vendor":"ViewComponent","product":"view_component","versions":[">= 3.0.0, < 4.9.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-28T14:03:17.325766Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"view_component","vulnerableRanges":[">=3.0.0, <4.9.0"],"patched":["4.9.0"],"from":["GHSA-hg3h-g7xc-f7vp"],"provenance":"source"}],"summary":{"text":"The view_component framework's system test entrypoint, in versions 3.0.0 through 4.9.0, validates a user-controlled file path by checking whether its resolved form begins with the temp directory path, a string-prefix comparison that does not confine the path to that directory. An attacker who can influence that path can reach sibling directories whose names share the temp directory's prefix, and the attack is practical over the network with no privileges or user interaction, though it depends on a high-complexity condition in the attack setup.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:57:48Z"},"euvd":{"id":"EUVD-2026-31971","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-24722","published":"2022-03-02","fixed":"2.49.1","kev":false},{"cve":"CVE-2024-21636","published":"2024-01-04","fixed":"3.9.0","kev":false},{"cve":"CVE-2026-44836","published":"2026-05-26","fixed":"4.9.0","kev":false},{"cve":"CVE-2026-44837","published":"2026-05-26","fixed":"4.9.0","kev":false},{"cve":"CVE-2026-54497","published":"2026-07-17","fixed":"4.12.0","kev":false,"link":{"from":"CVE-2026-44837","to":"CVE-2026-54497","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:view_component","fromFixed":"4.9.0","toFixed":"4.12.0","daysApart":52}]}},{"cve":"CVE-2026-54498","published":"2026-07-17","fixed":"4.12.0","kev":false,"link":{"from":"CVE-2026-44837","to":"CVE-2026-54498","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:view_component","fromFixed":"4.9.0","toFixed":"4.12.0","daysApart":52}]}}],"package":"RubyGems:view_component"}}