view_component: Preview Route Can Dispatch Inherited Helper Methods
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.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Viewcomponent | View Component |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-7f3r-gwc9-2995 | view_component: Preview Route Can Dispatch Inherited Helper Methods |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.343% probability within 30 days)
| 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 preview route derives an example name from the URL and calls it with public_send. The code does not verify that the requested method is one of the preview examples explicitly defined by the preview class. As a result, inherited public methods on ViewComponent::Preview are route-reachable. The most important one is render_with_template, which accepts template: and locals:. Those values can come from request params and are later passed to Rails as render template:. If previews are exposed, an attacker can render internal Rails templates that are not otherwise routable. This vulnerability is fixed in 4.9.0. | |
| Title | view_component: Preview Route Can Dispatch Inherited Helper Methods | |
| Weaknesses | CWE-749 | |
| References |
| |
| Metrics |
cvssV3_1
|