{
  "id": "CVE-2026-44837",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-44837",
  "published_at": "2026-05-26T19:40:47.661Z",
  "title": "view_component: System Test Entry Point Path Check Allows Sibling Directory Escape",
  "vendor": "ViewComponent",
  "product": "view_component",
  "cvss": {
    "score": 7.5,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-187",
  "cpes": [
    "cpe:2.3:a:viewcomponent:view_component:*:*:*:*:*:ruby:*:*"
  ],
  "cvss_by_source": {
    "cna": 5.9,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "ViewComponent",
        "product": "view_component",
        "ranges": [
          "\u003e= 3.0.0, \u003c 4.9.0"
        ],
        "fixed_in": [
          "4.9.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade view_component to 4.9.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7xc-f7vp"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
