CVE-2026-44837
HIGH 7.5CVSS 3.1view_component: System Test Entry Point Path Check Allows Sibling Directory Escape
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.
- Published
- 26 May 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-187CWE-22
- Also known as
- GHSA-hg3h-g7xc-f7vp
- Sources
- NVDJSONOSV GHSA-hg3h-g7xc-f7vpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | viewcomponent | view_componentcpe:2.3:a:viewcomponent:view_component:*:*:*:*:*:ruby:*:* |
>= 3.0.0, < 4.9.0 | 4.9.0 |
| OSV | RubyGems | view_component | >= 3.0.0, < 4.9.0 | 4.9.0 |
References
- https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7xc-f7vp · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-44837 · ADVISORY
- https://github.com/ViewComponent/view_component · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/view_component/CVE-2026-44837.yml · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 26 May 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 8 May 2026)