view_component: System Test Entry Point Path Check Allows Sibling Directory Escape
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| ViewComponent | view_component | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Viewcomponent | View Component |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-hg3h-g7xc-f7vp | view_component: System Test Entry Point Path Check Allows Sibling Directory Escape |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.412% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:2.3:a:viewcomponent:view_component:*:*:*:*:*:ruby:*:* |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Viewcomponent
Viewcomponent view Component |
|
| Vendors & Products |
Viewcomponent
Viewcomponent view Component |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | view_component: System Test Entry Point Path Check Allows Sibling Directory Escape | |
| Weaknesses | CWE-187 | |
| References |
| |
| Metrics |
cvssV3_1
|