CVE-2026-44837
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Affected 3 releases
| Version | Status | Fixed in |
|---|---|---|
| sid | Affected | โ |
| forky | Affected | โ |
| bookworm | Affected | โ |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| RubyGems | view_component | !< 3.0.0||<>= 4.9.0 | >= 4.9.0 |
| RubyGems | view_component | >=3.0.0,<4.9.0 | 4.9.0 |
| RUBYGEMS | view_component | >= 3.0.0, < 4.9.0 | 4.9.0 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| viewcomponent | view_component | {"startIncluding":"3.0.0","endExcluding":"4.9.0"} | 4.9.0 |
References
- https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7xc-f7vp
- https://github.com/ViewComponent/view_component
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/view_component/CVE-2026-44837.yml
- https://github.com/advisories/GHSA-hg3h-g7xc-f7vp
- https://security-tracker.debian.org/tracker/CVE-2026-44837
CWEs
CWE-187
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.