{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:viewcomponent:view_component:*:*:*:*:*:ruby:*:*",
            "extracted_events": [
              {
                "introduced": "3.0.0"
              },
              {
                "fixed": "4.9.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "CPE_RANGE"
            ]
          },
          "events": [
            {
              "introduced": "c696930250b696fb5528be08edea13a0c78b8325"
            },
            {
              "fixed": "458281bc49851e3090638cf6d011e84fcd49f2da"
            }
          ],
          "repo": "https://github.com/viewcomponent/view_component",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-hg3h-g7xc-f7vp"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-187"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/44xxx/CVE-2026-44837.json"
  },
  "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.",
  "id": "CVE-2026-44837",
  "modified": "2026-07-15T01:49:09.505861780Z",
  "published": "2026-05-26T19:40:47.661Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/44xxx/CVE-2026-44837.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7xc-f7vp"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-44837"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "view_component: System Test Entry Point Path Check Allows Sibling Directory Escape"
}