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.
Severity
MEDIUM
CVSS v3
5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N · source cna
Exploit chance (EPSS)
0.412%
chance of exploitation in the next 30 days
higher than 36% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-187: Partial String Comparison
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-05-28 |
Timeline
- 2026-05-08GitHub advisory published (GHSA-hg3h-g7xc-f7vp)18 days before publication
- 2026-05-26Published by the CNA19:40 UTC
- 2026-05-28CISA SSVC decision recorded2 days after publication
Exploit and advisory records
GitHub advisory GHSA-hg3h-g7xc-f7vp, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| RubyGems view_component | from 3.0.0 before 4.9.0 | 4.9.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| viewcomponent view_component | from 3.0.0 before 4.9.0fixed in 4.9.0 | 4.9.0 |
References
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-44837'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-44837'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-44837'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-44837'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).