Unvalidated GitHub webhook requests can crash Stacklok Minder

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2024-34084?

CVE-2024-34084 is a vulnerability classified as Uncontrolled Resource Consumption, affecting minder (affected versions: < 0.0.48). This vulnerability is rated High, with a CVSS score of 7.5. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

Minder's HandleGithubWebhook is susceptible to a denial of service attack from an untrusted HTTP request. The vulnerability exists before the request has been validated, and as such the request is still untrusted at the point of failure. This allows an attacker with the ability to send requests to HandleGithubWebhook to crash the Minder controlplane and deny other users from using it. This vulnerability is fixed in 0.0.48.

Affected products and scope

  • The CNA record identifies stacklok/minder versions < 0.0.48 as affected and names 0.0.48 as the fixed release.
  • The GitHub advisory expresses the repository package boundary as affected < 0.20240507.2061_ref.ee05c7a and patched 0.20240507.2069_ref.78e58d8 for github.com/stacklok/minder.
  • These repository pseudo-version boundaries do not by themselves establish the status of every downstream package. Builds that cannot be mapped clearly to the stated boundaries require vendor or build-level verification; unverified parallel branches remain unknown.
  • The supplied record does not specify a default status.

Technical details

The flaw is in HandleGithubWebhook, which processes an HTTP request before validating its payload signature. The handler calls validatePayloadSignature, which obtains a reader through readerFromRequest; that helper reads the entire request body into memory before validation. A sufficiently large body can exhaust memory on the Minder host and cause the Go runtime to crash the controlplane. This is CWE-400: Uncontrolled Resource Consumption; the attack precondition is the ability to send a request to the handler. Actual exposure depends on the deployment's HTTP routing and ingress controls, which are not established by the record. The reviewed fix adds request-size middleware around HTTP handlers and sets RequestBodyMaxBytes to 2 MiB.

Exploitability

The issue is network reachable through requests sent to HandleGithubWebhook. The supplied record characterizes exploitation as requiring no authentication, no user interaction, and low complexity. It also marks a public exploit as available; returned vulnerability enrichment classifies exploitation as a PoC and automatable. The available evidence does not name a specific campaign, victim, or breach.

Technical impact

Successful exploitation can crash the Go runtime or Minder controlplane through excessive memory consumption. The direct technical outcome is loss of service availability within the affected controlplane scope. The record does not establish confidentiality or integrity impact, and it does not show that an attacker gains privileged access. Repeated requests could prolong disruption if the service repeatedly crashes after recovery, but recovery behavior and persistence are not established.

Business impact

The primary consequence is loss of availability for the Minder controlplane. While the controlplane is crashed, users may be unable to use services that depend on it, including related webhook processing flows. A malicious request may require operational response and service recovery, but the record does not establish a specific recovery time or recovery method. The evidence does not establish confidentiality, integrity, or privileged-access impact.

Remediation

  1. Upgrade Stacklok Minder to 0.0.48, the fixed release identified by the CNA record.
  2. For source or repository pseudo-version deployments, verify that the build contains patched package build 0.20240507.2069_ref.78e58d8; do not infer the status of another build solely because its version appears newer.
  3. If an immediate upgrade is not possible, enforce a request-body limit at the reverse proxy or ingress before traffic reaches the handler and restrict HandleGithubWebhook reachability to necessary sources. This is a compensating control, not a vendor-confirmed workaround in the record.
  4. Verify that the deployed fix applies a body-size limit to the webhook handler. The reviewed patch uses withMaxSizeMiddleware, http.MaxBytesReader, and a RequestBodyMaxBytes value of 2 MiB.

Detection

  • Inventory every Stacklok Minder deployment and record its release or build; flag versions in the < 0.0.48 affected range.
  • Identify deployments where an untrusted source can reach HandleGithubWebhook, including /api/v1/webhook/ where that route is used.
  • Check whether the reverse proxy, ingress, or application middleware limits request bodies before they reach the handler, and verify the presence of http.MaxBytesReader or an equivalent control.
  • Review controlplane logs, process or container events, and webhook-route telemetry for crashes, OOM termination, or runtime errors following unusually large request bodies. This is precautionary monitoring, not a confirmed IOC.
  • Do not treat the absence of crash logs or unusual requests as proof that a deployment is safe.
Sources (11)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.