Exposed Dangerous Method or Function Affecting gitlab-rails-ce-18.11 package, versions <18.11.2-r1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.34% (26th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-GITLABRAILSCE1811-16641445
  • published12 May 2026
  • disclosed26 May 2026

Introduced: 12 May 2026

CVE-2026-44836  (opens in a new tab)
CWE-749  (opens in a new tab)

How to fix?

Upgrade Chainguard gitlab-rails-ce-18.11 to version 18.11.2-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream gitlab-rails-ce-18.11 package and not the gitlab-rails-ce-18.11 package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

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.