CVE-2023-6944
mediumpriority · track · 23EPSS 0.006 · 46 %ileEURUUSEPSS · scored 2026-10-27
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.
remediations
Vendor fix, mitigation, or workaround guidance, as published by each source.
A vendor fix is available.
- Fixedrhdh/rhdh-hub-rhel9@sha256:34da2c4b49b756d8e1eab4c2974aaf8f0f7eb2360574c51e91126e171fbcc355_amd64 as a component of RHDH 1.1 for RHEL 9redhat_csaf
The RHDH-1.1-RHEL-9 container images provided by this update can be downloaded from the Red Hat Container Registry at registry.access.redhat.com. Installation instructions for your platform are available at Red Hat Container Catalog (see References). Dockerfiles and scripts should be amended either to refer to this new image specifically, or to the latest image generally.
https://access.redhat.com/errata/RHBA-2024:5869 - Workaroundrhdh/rhdh-hub-rhel9@sha256:34da2c4b49b756d8e1eab4c2974aaf8f0f7eb2360574c51e91126e171fbcc355_amd64 as a component of RHDH 1.1 for RHEL 9redhat_csaf
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5.2–7.3
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (6)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- RHBA-2024:5869Red Hat Bug Fix Advisory: updated RHDH-1.1-RHEL-9 container images2024-08-26csaf · redhat_csafUS
Updated RHDH-1.1-RHEL-9 container images are now available
- GHSA-86rg-pf4c-5grg@backstage/backend-app-api leaks GitLab access tokens2024-01-04ghsa · osvUS
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.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (10)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2023-6944cnnvd
- https://cxsecurity.com/cveshow/CVE-2023-6944/cnnvd
- https://github.com/backstage/backstage/releases/tag/v1.21.0Patchcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2023-6944cnnvd
- https://access.redhat.com/errata/RHBA-2024:5869enisa_euvd
- https://access.redhat.com/security/cve/CVE-2023-6944enisa_euvd
- https://bugzilla.redhat.com/show_bug.cgi?id=2255204enisa_euvd
- https://access.redhat.com/errata/RHBA-2024:5869nvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan