Vulnerabilities in pkg:pypi/acryl-datahub

PACKAGE
Advisory Identifier: GHSA-r8gm-v65f-c973
Advisory Summary

CVE-2022-39366 is a CRITICAL (CVSS 9.9) acryl-datahub missing jwt signature check vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Acryl datahub libraries in the PyPI ecosystem. The issue involves acryl-datahub missing jwt signature check. Remediation is available by upgrading affected packages to version 0.8.45.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/acryl-datahub

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/acryl-datahub. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-r8gm-v65f-c973 CVE-2022-39366 CRITICAL acryl-datahub missing JWT signature check

CVE-2022-39366 at a Glance

CVE Identifier CVE-2022-39366
GHSA Identifier GHSA-r8gm-v65f-c973
Severity CRITICAL
CVSS v3.1 Base Score 9.9
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Acryl datahub
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity High (I:H)
Availability Low (A:L)

How to Fix CVE-2022-39366

To remediate this vulnerability, upgrade all affected Acryl datahub dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

acryl-datahub fixed: 0.8.45
pip install acryl-datahub>=0.8.45
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show acryl-datahub

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2022-39366, inspect your installed packages using pip:

pip show acryl-datahub

Analyze the terminal output to locate any version of Acryl datahub in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.8.45), your application is affected.

Note: The pip show acryl-datahub command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Acryl datahub, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

# Missing JWT signature check (`GHSL-2022-078`) The [`StatelessTokenService`](https://github.com/datahub-project/datahub/blob/aa146db611e3a4ca3aa17bb740783f789d4444d3/metadata-service/auth-impl/src/main/java/com/datahub/authentication/token/StatelessTokenService.java#L30) 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`](https://github.com/datahub-project/datahub/blob/aa146db611e3a4ca3aa17bb740783f789d4444d3/metadata-service/auth-impl/src/main/java/com/datahub/authentication/token/StatelessTokenService.java#L134) 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. #### Impact This issue may lead to an authentication bypass. #### Resources * [CodeQL: Missing JWT signature check](https://codeql.github.com/codeql-query-help/java/java-missing-jwt-signature-check/)

CVE-2022-39366 Affected Acryl datahub Versions

1 component(s)
Fixed Versions:
0.8.45
Product / Package Ecosystem Affected Versions Fixed Version
acryl-datahub
PyPI
< 0.8.45
0.8.45

References

Frequently Asked Questions

What is CVE-2022-39366?
CVE-2022-39366 is a security vulnerability in Acryl datahub involving acryl-datahub missing JWT signature check under CWE-347: Improper Verification of Cryptographic Signature.
Which Acryl datahub versions are affected?
Affected versions include releases prior to 0.8.45 across affected packages: acryl-datahub.
What version fixes CVE-2022-39366?
Upgrading to 0.8.45 (or the latest patched release for your respective branch) resolves the vulnerability.
Is acryl-datahub affected?
Yes, acryl-datahub is affected in releases prior to 0.8.45. Upgrade your dependency to 0.8.45 or later.
What is the CVSS score of CVE-2022-39366?
CVE-2022-39366 has a CVSS v3.1 base score of 9.9 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L.
What CWE is associated with CVE-2022-39366?
CVE-2022-39366 is classified under CWE-347: Improper Verification of Cryptographic Signature (The product does not verify, or incorrectly verifies, the cryptographic signature for data.).
How can I check PyPI dependencies for CVE-2022-39366?
Run the dependency tree command: 'pip show acryl-datahub'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-r8gm-v65f-c973",
  "modified" : "2022-10-31T22:42:57Z",
  "published" : "2022-10-31T22:42:57Z",
  "aliases" : [ "CVE-2022-39366" ],
  "summary" : "acryl-datahub missing JWT signature check",
  "details" : "# Missing JWT signature check (`GHSL-2022-078`)\n\nThe [`StatelessTokenService`](https://github.com/datahub-project/datahub/blob/aa146db611e3a4ca3aa17bb740783f789d4444d3/metadata-service/auth-impl/src/main/java/com/datahub/authentication/token/StatelessTokenService.java#L30) 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`](https://github.com/datahub-project/datahub/blob/aa146db611e3a4ca3aa17bb740783f789d4444d3/metadata-service/auth-impl/src/main/java/com/datahub/authentication/token/StatelessTokenService.java#L134) 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.\n\n#### Impact\n\nThis issue may lead to an authentication bypass.\n\n#### Resources\n\n* [CodeQL: Missing JWT signature check](https://codeql.github.com/codeql-query-help/java/java-missing-jwt-signature-check/)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "acryl-datahub"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.8.45"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/datahub-project/datahub/security/advisories/GHSA-r8gm-v65f-c973"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-39366"
  }, {
    "type" : "WEB",
    "url" : "https://codeql.github.com/codeql-query-help/java/java-missing-jwt-signature-check"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/datahub-project/datahub"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/datahub-project/datahub/blob/aa146db611e3a4ca3aa17bb740783f789d4444d3/metadata-service/auth-impl/src/main/java/com/datahub/authentication/token/StatelessTokenService.java#L134"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/datahub-project/datahub/blob/aa146db611e3a4ca3aa17bb740783f789d4444d3/metadata-service/auth-impl/src/main/java/com/datahub/authentication/token/StatelessTokenService.java#L30"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/datahub-project/datahub/releases/tag/v0.8.45"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-347" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-10-31T22:42:57Z",
    "nvd_published_at" : "2022-10-28T17:15:00Z"
  }
}