CVE-2020-25816 Token leases could outlive their TTL in HashiCorp Vault

Medium 6.8 Published Updated

Attackers can retain access via batch tokens beyond their intended expiration time due to incorrect lease scheduling in HashiCorp Vault.

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-2020-25816?

CVE-2020-25816 is a medium-severity vulnerability in Hashicorp Vault, published on 30 Sep 2020. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

HashiCorp Vault and Vault Enterprise versions 1.0 and newer allowed leases created with a batch token to outlive their TTL because expiration time was not scheduled correctly. Fixed in 1.4.7 and 1.5.4.

Which versions are affected by CVE-2020-25816?

4 open source packages ship an affected version, including github.com/hashicorp/vault and vault. It affects 1 product.

PackageAffectedFixed in
github.com/hashicorp/vault GoFrom 1.0.01.5.4
github.com/hashicorp/vault GoFrom 1.0.0-beta11.5.4
github.com/hashicorp/vault GoFrom 1.0.0-beta11.5.4
vault BitnamiFrom 1.0.01.4.7, 1.5.4

Products include Hashicorp Vault.

How do I fix CVE-2020-25816?

Upgrade github.com/hashicorp/vault to 1.5.4 or later.

Is CVE-2020-25816 being exploited?

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

All Hashicorp Vault vulnerabilities

Sources

Also known as BIT-vault-2020-25816, GHSA-57gg-cj55-q5g2, GO-2024-2514.

Is CVE-2020-25816 in your software?

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

Check your SBOMs for free