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

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-08T23:33:58.000Z
- Modified: 2026-09-10T03:50:47.065Z
- Also known as: GHSA-hg3h-g7xc-f7vp
- Weaknesses: CWE-22, CWE-187
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- ViewComponent view_component: >= 3.0.0, < 4.9.0; from 3.0.0 before 4.9.0
- view_component (RubyGems): from 3.0.0 before 4.9.0

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## 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)

## Sources

- CVE List: [CVE-2026-44837](https://www.cve.org/CVERecord?id=CVE-2026-44837), CVE Terms of Use, modified 2026-05-28
- GitHub Advisory Database: [GHSA-hg3h-g7xc-f7vp](https://github.com/advisories/GHSA-hg3h-g7xc-f7vp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-44837](https://nvd.nist.gov/vuln/detail/CVE-2026-44837), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-44837 · Whole record: https://cve.day/CVE-2026-44837.json · Rebuilt by cve.day 2026-11-25T22:59:22.381Z
