Vulnerabilities in pkg:pypi/acryl-datahub
PACKAGECVE-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.
pkg:pypi/acryl-datahub
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
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).
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.
pip install acryl-datahub>=0.8.45
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
CVE-2022-39366 Affected Acryl datahub Versions
1 component(s)| 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?
Which Acryl datahub versions are affected?
What version fixes CVE-2022-39366?
Is acryl-datahub affected?
What is the CVSS score of CVE-2022-39366?
What CWE is associated with CVE-2022-39366?
How can I check PyPI dependencies for CVE-2022-39366?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}