CVE-2023-6944

Rhdh: catalog-import function leaks credentials to frontend

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.

Remediation

Workaround:

  • 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.

Category

5.7
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.11%
Vendor Advisory redhat.com Vendor Advisory redhat.com
Affected: Red Hat Red Hat Developer Hub
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-6944?
CVE-2023-6944 has been scored as a medium severity vulnerability.
How to fix CVE-2023-6944?
As a workaround for remediating CVE-2023-6944: 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.
Is CVE-2023-6944 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2023-6944 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-6944?
CVE-2023-6944 affects Red Hat Red Hat Developer Hub.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.