Back

HIGH

Rhdh: catalog-import function leaks credentials to frontend

Published Jan 4, 2024

Description

A flaw was found in the Red Hat Developer Hub (RHDH). The catalog-import function leaks GitLab access tokens on the frontend when the base64 encoded GitLab token includes a newline at the end of the string. The sanitized error can display on the frontend, including the raw access token. Upon gaining access to this token and depending on permissions, an attacker could push malicious code to repositories, delete resources in Git, revoke or generate new keys, and sign code illegitimately.

Affected products

Remediation

Vendor solution

To mitigate this vulnerability until you can update to RHDH 1.1, ensure that the base64 encoded GitLab token does not contain a newline character at the end. Removing the newline from the token prevents the unintended disclosure of the access token through the frontend.

Red Hat statement

The vulnerability is assessed with a Moderate impact rating since its exploitation necessitates the user inputting an invalid token. Red Hat Developer Hub contains the fix for this vulnerability with Backstage 1.22.

Red Hat mitigation

To mitigate this vulnerability until you can update to RHDH 1.1, ensure that the base64 encoded GitLab token does not contain a newline character at the end. Removing the newline from the token prevents the unintended disclosure of the access token through the frontend.

References (11)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner redhat
Published Jan 4, 2024
Updated Nov 20, 2025
Reserved Dec 19, 2023
CISA Vulnrichment
Updated Jan 9, 2024
NVD
Status Modified
Modified Jun 17, 2026
Red Hat
Severity Moderate
Public date Dec 19, 2023
ENISA EUVD
Assigner redhat
Published Jan 4, 2024
Updated Nov 20, 2025
Exploited since n/a
EUVD-2024-0292 GHSA-86RG-PF4C-5GRG