---
cve: "CVE-2022-39366"
severity: "CRITICAL"
cvss: 9.9
epss: "1.1%"
vendor: "datahub-project"
kev: false
exploited: false
published: "2022-10-28 17:15:23"
tags: [cve, security, critical]
source: tsecurity.de CVE-Dossier
exported: "2026-11-10T19:19:22+01:00"
---

# CVE-2022-39366

> 9.9 CRITICAL · 🧪 PoC

## Beschreibung

DataHub is an open-source metadata platform. Prior to version 0.8.45, the `StatelessTokenService` of the DataHub metadata service (GMS) does not verify the signature of JWT tokens. This allows an attacker to connect to DataHub instances as any user if Metadata Service authentication is enabled. This vulnerability occurs because the `StatelessTokenService` of the Metadata service uses the `parse` method of `io.jsonwebtoken.JwtParser`, which does not perform a verification of the cryptographic token signature. This means that JWTs are accepted regardless of the used algorithm. This issue may lead to an authentication bypass. Version 0.8.45 contains a patch for the issue. There are no known workarounds.

## CNA-Record (Kanon, cvelistV5)

- CNA: **GitHub_M**
- State: PUBLISHED
- Stand: 2025-04-22 17:16:53
- CNA-CVSS: **9.9** (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L`)

## CISA-Anreicherung (vulnrichment/ADP)

- CISA-SSVC (Coordinator, v2.0.3):
  - Exploitation: **poc**
  - Automatable: **yes**
  - Technical Impact: **partial**

## CVSS-Vektor

```
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Keine | bad |
| UI Interaktion | Keine | bad |
| S Scope | Verändert | bad |
| C Vertraulichkeit | Gering | warn |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Gering | warn |

## Schwachstellen-Klasse

- **CWE-287** — Improper Authentication
  When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.
- **CWE-303** — Incorrect Implementation of Authentication Algorithm
  The requirements for the product dictate the use of an established authentication algorithm, but the implementation of the algorithm is incorrect.

## Angriffsmuster (CAPEC)

- [CAPEC-22 — Exploiting Trust in Client](https://capec.mitre.org/data/definitions/22.html) _(Severity: High)_
- [CAPEC-57 — Utilizing REST's Trust in the System Resource to Obtain Sensitive Data](https://capec.mitre.org/data/definitions/57.html) _(Severity: Very High)_
- [CAPEC-114 — Authentication Abuse](https://capec.mitre.org/data/definitions/114.html) _(Severity: Medium)_
- [CAPEC-115 — Authentication Bypass](https://capec.mitre.org/data/definitions/115.html) _(Severity: Medium)_
- [CAPEC-151 — Identity Spoofing](https://capec.mitre.org/data/definitions/151.html) _(Severity: Medium)_
- [CAPEC-194 — Fake the Source of Data](https://capec.mitre.org/data/definitions/194.html) _(Severity: Medium)_
- [CAPEC-593 — Session Hijacking](https://capec.mitre.org/data/definitions/593.html) _(Severity: Very High)_
- [CAPEC-633 — Token Impersonation](https://capec.mitre.org/data/definitions/633.html) _(Severity: Medium)_

## ATT&CK-Techniken

- [T1040 — Network Sniffing](https://attack.mitre.org/techniques/T1040/)
- [T1548 — Abuse Elevation Control Mechanism](https://attack.mitre.org/techniques/T1548/)
- [T1185 — Browser Session Hijacking](https://attack.mitre.org/techniques/T1185/)
- [T1550.001 — Use Alternate Authentication Material:Application Access Tok](https://attack.mitre.org/techniques/T1550/001/)
- [T1563 — Remote Service Session Hijacking](https://attack.mitre.org/techniques/T1563/)
- [T1134 — Access Token Manipulation](https://attack.mitre.org/techniques/T1134/)

## Patch verfügbar (OSV)

- 39492eaa25fb5ef6c64a3bea9a4cb9bb44f351d5 (Commit)
- af6a423f9d39c1efe308c9722c338fa82e36a55f (Commit)

## Referenzen

- <https://github.com/datahub-project/datahub/security/advisories/GHSA-r8gm-v65f-c973>
- <https://codeql.github.com/codeql-query-help/java/java-missing-jwt-signature-check/>
- <https://github.com/datahub-project/datahub/blob/aa146db611e3a4ca3aa17bb740783f789d4444d3/metadata-service/auth-impl/src/main/java/com/datahub/authentication/token/StatelessTokenService.java#L134>
- <https://github.com/datahub-project/datahub/blob/aa146db611e3a4ca3aa17bb740783f789d4444d3/metadata-service/auth-impl/src/main/java/com/datahub/authentication/token/StatelessTokenService.java#L30>
- <https://github.com/datahub-project/datahub/releases/tag/v0.8.45>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/sicherheitsluecken/cve-2022-39366/) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI WID (CSAF)_
