CVE-2020-25816 Token leases could outlive their TTL in HashiCorp Vault
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.
| Package | Affected | Fixed in |
|---|---|---|
github.com/hashicorp/vault Go | From 1.0.0 | 1.5.4 |
github.com/hashicorp/vault Go | From 1.0.0-beta1 | 1.5.4 |
github.com/hashicorp/vault Go | From 1.0.0-beta1 | 1.5.4 |
vault Bitnami | From 1.0.0 | 1.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.
Other vulnerabilities in Hashicorp Vault
Sources
Also known as BIT-vault-2020-25816, GHSA-57gg-cj55-q5g2, GO-2024-2514.