CVE-2022-31145 Insufficient AccessToken Expiration Check in FlyteAdmin

Medium 6.5 Published Updated

Authenticated users can bypass token expiration checks to maintain access, requiring external identity provider configuration.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-31145?

CVE-2022-31145 is a medium-severity authentication bypass vulnerability in flyteorg flyteadmin, published on 13 Jul 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

FlyteAdmin is the control plane for Flyte responsible for managing entities and administering workflow executions. In versions 1.1.30 and prior, authenticated users using an external identity provider can continue to use Access Tokens and ID Tokens even after they expire. Users who use FlyteAdmin as the OAuth2 Authorization Server are unaffected by this issue. A patch is available on the `master` branch of the repository. As a workaround, rotating signing keys immediately will invalidate all open sessions and force all users to attempt to obtain new tokens. Those who use this workaround should continue to rotate keys until FlyteAdmin has been upgraded and hide FlyteAdmin deployment ingress URL from the internet.

Weakness: CWE-613

Which versions are affected by CVE-2022-31145?

3 open source packages ship an affected version, including github.com/flyteorg/flyteadmin. It affects 1 product.

PackageAffectedFixed in
github.com/flyteorg/flyteadmin GoAll versions1.1.31
github.com/flyteorg/flyteadmin GoAll versions1.1.31
github.com/flyteorg/flyteadmin GoAll versions1.1.31

Products include Flyte Flyteadmin.

How do I fix CVE-2022-31145?

Upgrade github.com/flyteorg/flyteadmin to 1.1.31 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2022-31145 being exploited?

There is no known exploitation of CVE-2022-31145 in the wild and no public exploit code.

Sources

Also known as GHSA-qwrj-9hmp-gpxh, GO-2022-0519.

Is CVE-2022-31145 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free