CVE-2022-39273: Github.com/flyteorg/flyteadmin FlyteAdmin's Default OAuth Authorization Server Vulnerability

HIGH
Advisory Identifier: GHSA-67x4-qr35-qvrm
CVSS 7.5
CWE-798
Published
Advisory Summary

CVE-2022-39273 is a HIGH (CVSS 7.5) flyteadmin's default oauth authorization server vulnerability (CWE-798: Use of Hard-coded Credentials) affecting Github.com/flyteorg/flyteadmin libraries in the Go ecosystem. The issue involves flyteadmin's default oauth authorization server secret must be rotated. Remediation is available by upgrading affected packages to version 1.1.44.

CVE-2022-39273 at a Glance

CVE Identifier CVE-2022-39273
GHSA Identifier GHSA-67x4-qr35-qvrm
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-798: Use of Hard-coded Credentials
Affected Product Github.com/flyteorg/flyteadmin
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:U/C:H/I:N/A:N).

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

How to Fix CVE-2022-39273

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

github.com/flyteorg/flyteadmin fixed: 1.1.44
Upgrade github.com/flyteorg/flyteadmin to 1.1.44
Verify Direct and Transitive Dependencies

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

inspect dependencies for github.com/flyteorg/flyteadmin

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-39273, inspect your project dependencies for Github.com/flyteorg/flyteadmin:

inspect dependencies for github.com/flyteorg/flyteadmin

Analyze the terminal output to locate any version of Github.com/flyteorg/flyteadmin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.44), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-798: Use of Hard-coded Credentials, where the product contains hard-coded credentials, such as a password or cryptographic key. In Github.com/flyteorg/flyteadmin, 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

### Impact Users who enable the default [Flyte’s authorization server](https://docs.flyte.org/en/latest/deployment/cluster_config/auth_setup.html#oauth2-authorization-server) without changing the default clientid hashes will be exposed to the public internet. In an effort to make enabling authentication easier for Flyte administrators, the default configuration for Flyte Admin allows access for Flyte Propeller even after turning on authentication via a hardcoded hashed password. This password is also set on the default Flyte Propeller configmap in the various Flyte Helm charts. Users who enable auth but do not override this setting in Flyte Admin’s configuration may unknowingly allow public traffic in by way of this default password with attackers effectively impersonating propeller. This only applies to users who have not specified the ExternalAuthorizationServer setting. Using an external auth server automatically turns off this default configuration is not susceptible to this vulnerability. ### Patches 1.1.44 ### Workarounds Users should manually set the staticClients in the selfAuthServer section of their configuration if they intend to rely on Admin’s internal auth server. ### References https://github.com/flyteorg/flyteadmin/pull/478 https://docs.flyte.org/en/latest/deployment/cluster_config/auth_setup.html#oauth2-authorization-server ### For more information If you have any questions or comments about this advisory: * Open an issue in [Flyte](https://github.com/flyteorg/flyte/issues) * Email us [here](mailto:admin@flyte.org)

CVE-2022-39273 Affected Github.com/flyteorg/flyteadmin Versions

1 component(s)
Fixed Versions:
1.1.44
Product / Package Ecosystem Affected Versions Fixed Version
github.com/flyteorg/flyteadmin
Go
< 1.1.44
1.1.44

References

Frequently Asked Questions

What is CVE-2022-39273?
CVE-2022-39273 is a security vulnerability in Github.com/flyteorg/flyteadmin involving FlyteAdmin's Default OAuth Authorization Server secret must be rotated under CWE-798: Use of Hard-coded Credentials.
Which Github.com/flyteorg/flyteadmin versions are affected?
Affected versions include releases prior to 1.1.44 across affected packages: github.com/flyteorg/flyteadmin.
What version fixes CVE-2022-39273?
Upgrading to 1.1.44 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/flyteorg/flyteadmin affected?
Yes, github.com/flyteorg/flyteadmin is affected in releases prior to 1.1.44. Upgrade your dependency to 1.1.44 or later.
What is the CVSS score of CVE-2022-39273?
CVE-2022-39273 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2022-39273?
CVE-2022-39273 is classified under CWE-798: Use of Hard-coded Credentials (The product contains hard-coded credentials, such as a password or cryptographic key.).
How can I check Go dependencies for CVE-2022-39273?
Run the dependency tree command: 'inspect dependencies for github.com/flyteorg/flyteadmin'. 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-67x4-qr35-qvrm",
  "modified" : "2024-05-20T21:35:54Z",
  "published" : "2022-10-05T21:26:26Z",
  "aliases" : [ "CVE-2022-39273" ],
  "summary" : "FlyteAdmin's Default OAuth Authorization Server secret must be rotated",
  "details" : "### Impact\nUsers who enable the default [Flyte’s authorization server](https://docs.flyte.org/en/latest/deployment/cluster_config/auth_setup.html#oauth2-authorization-server) without changing the default clientid hashes will be exposed to the public internet.\n\nIn an effort to make enabling authentication easier for Flyte administrators, the default configuration for Flyte Admin allows access for Flyte Propeller even after turning on authentication via a hardcoded hashed password.  This password is also set on the default Flyte Propeller configmap in the various Flyte Helm charts.  Users who enable auth but do not override this setting in Flyte Admin’s configuration may unknowingly allow public traffic in by way of this default password with attackers effectively impersonating propeller.  This only applies to users who have not specified the ExternalAuthorizationServer setting.  Using an external auth server automatically turns off this default configuration is not susceptible to this vulnerability.\n\n### Patches\n1.1.44\n\n### Workarounds\nUsers should manually set the staticClients in the selfAuthServer section of their configuration if they intend to rely on Admin’s internal auth server.  \n\n### References\nhttps://github.com/flyteorg/flyteadmin/pull/478\nhttps://docs.flyte.org/en/latest/deployment/cluster_config/auth_setup.html#oauth2-authorization-server \n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Flyte](https://github.com/flyteorg/flyte/issues)\n* Email us [here](mailto:admin@flyte.org)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/flyteorg/flyteadmin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.44"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/flyteorg/flyteadmin/security/advisories/GHSA-67x4-qr35-qvrm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-39273"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/flyteorg/flyteadmin/pull/478"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/flyteorg/flyteadmin/commit/281172edf55fe6800959238fc128964ead6d9101"
  }, {
    "type" : "WEB",
    "url" : "https://docs.flyte.org/en/latest/deployment/cluster_config/auth_setup.html#oauth2-authorization-server"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/flyteorg/flyteadmin"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2022-1043"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-798" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-10-05T21:26:26Z",
    "nvd_published_at" : "2022-10-06T18:16:00Z"
  }
}