CVE-2026-44837

Source
https://cve.org/CVERecord?id=CVE-2026-44837
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-44837.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-44837
Aliases
Downstream
Related
Published
2026-05-26T19:40:47.661Z
Modified
2026-06-18T03:54:34.369208734Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
view_component: System Test Entry Point Path Check Allows Sibling Directory Escape
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/44xxx/CVE-2026-44837.json",
    "cwe_ids": [
        "CWE-187"
    ],
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/viewcomponent/view_component

Affected ranges

Type
GIT
Repo
https://github.com/viewcomponent/view_component
Events
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE"
    ],
    "cpe": "cpe:2.3:a:viewcomponent:view_component:*:*:*:*:*:ruby:*:*",
    "extracted_events": [
        {
            "introduced": "3.0.0"
        },
        {
            "fixed": "4.9.0"
        },
        {
            "introduced": "3.0.0"
        },
        {
            "fixed": "4.9.0"
        }
    ]
}

Affected versions

4.*
4.0.0.rc1
v3.*
v3.0.0
v3.1.0
v3.10.0
v3.11.0
v3.12.0
v3.12.1
v3.13.0
v3.14.0
v3.15.0
v3.15.1
v3.16.0
v3.17.0
v3.18.0
v3.19.0
v3.2.0
v3.20.0
v3.21.0
v3.22.0
v3.23.0
v3.23.1
v3.23.2
v3.3.0
v3.5.0
v3.6.0
v3.7.0
v3.8.0
v3.9.0
v4.*
v4.0.0
v4.0.0.rc1
v4.0.0.rc2
v4.0.0.rc3
v4.0.0.rc4
v4.0.0.rc5
v4.0.1
v4.0.2
v4.1.0
v4.1.1
v4.2.0
v4.3.0
v4.4.0
v4.5.0
v4.6.0
v4.7.0
v4.8.0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-44837.json"