CVE-2022-31145: Github.com/flyteorg/flyteadmin FlyteAdmin Insufficient AccessToken Expiration Check Vulnerability
MODERATECVE-2022-31145 is a MODERATE (CVSS 6.5) flyteadmin insufficient accesstoken expiration check vulnerability (CWE-613: Insufficient Session Expiration) affecting Github.com/flyteorg/flyteadmin libraries in the Go ecosystem. The issue involves flyteadmin insufficient accesstoken expiration check. Remediation is available by upgrading affected packages to version 1.1.31.
CVE-2022-31145 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2022-31145
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.
Upgrade github.com/flyteorg/flyteadmin to 1.1.31
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-31145, 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.31), 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-613: Insufficient Session Expiration, where according to wasc, "insufficient session expiration is when a web site permits an attacker to reuse old session credentials or session ids for authorization.". 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
CVE-2022-31145 Affected Github.com/flyteorg/flyteadmin Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/flyteorg/flyteadmin
|
Go |
< 1.1.31
|
1.1.31
|
References
Frequently Asked Questions
What is CVE-2022-31145?
Which Github.com/flyteorg/flyteadmin versions are affected?
What version fixes CVE-2022-31145?
Is github.com/flyteorg/flyteadmin affected?
What is the CVSS score of CVE-2022-31145?
What CWE is associated with CVE-2022-31145?
How can I check Go dependencies for CVE-2022-31145?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qwrj-9hmp-gpxh",
"modified" : "2023-02-09T20:22:10Z",
"published" : "2022-07-15T18:10:48Z",
"aliases" : [ "CVE-2022-31145" ],
"summary" : "FlyteAdmin Insufficient AccessToken Expiration Check",
"details" : "### Impact\nAuthenticated users using an external identity provider can continue to use Access Tokens and ID Tokens even after they expire.\nUsing flyteadmin as the OAuth2 Authorization Server is unaffected by this issue.\n\n### Patches\n1.1.30\n\n### Workarounds\nRotating signing keys immediately will:\n* Invalidate all open sessions,\n* Force all users to attempt to obtain new tokens.\n\nContinue to rotate keys until flyteadmin has been upgraded,\n\nHide flyteadmin deployment ingress url from the internet.\n\n### References\nhttps://github.com/flyteorg/flyteadmin/pull/455\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [flyte repo](https://github.com/flyteorg/flyte/issues)\n* Email us at [flyte](mailto:admin@flyte.org)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/flyteorg/flyteadmin"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.31"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/flyteorg/flyteadmin/security/advisories/GHSA-qwrj-9hmp-gpxh"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-31145"
}, {
"type" : "WEB",
"url" : "https://github.com/flyteorg/flyteadmin/pull/455"
}, {
"type" : "WEB",
"url" : "https://github.com/flyteorg/flyteadmin/commit/a1ec282d02706e074bc4986fd0412e5da3b9d00a"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/flyteorg/flyteadmin"
}, {
"type" : "WEB",
"url" : "https://github.com/flyteorg/flyteadmin/releases/tag/v1.1.31"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2022-0519"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-298", "CWE-613" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-15T18:10:48Z",
"nvd_published_at" : "2022-07-13T21:15:00Z"
}
}