CVE-2024-7594 Vault SSH Secrets Engine Configuration Did Not Restrict Valid Principals By Default
Attackers with authorized access can authenticate as any user on SSH hosts if Vault's SSH engine lacks valid_principals 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-2024-7594?
CVE-2024-7594 is a high-severity missing authorization vulnerability in Hashicorp Vault, published on 26 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Vault’s SSH secrets engine did not require the valid_principals list to contain a value by default. If the valid_principals and default_user fields of the SSH secrets engine configuration are not set, an SSH certificate requested by an authorized user to Vault’s SSH secrets engine could be used to authenticate as any user on the host. Fixed in Vault Community Edition 1.17.6, and in Vault Enterprise 1.17.6, 1.16.10, and 1.15.15.
Weakness: CWE-732
Which versions are affected by CVE-2024-7594?
9 open source packages ship an affected version, including github.com/hashicorp/vault, openbao and vault. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
github.com/hashicorp/vault Go | From 1.7.7 | 1.17.6 |
github.com/hashicorp/vault Go | From 1.7.7 | 1.17.6 |
github.com/hashicorp/vault Go | From 1.7.7 | 1.17.6 |
openbao Bitnami | All versions | 2.0.2 |
vault Bitnami | From 1.7.7 | 1.17.6 |
github.com/openbao/openbao Go | All versions | 0.0.0-20241003222810-d5b4e9224698 |
3 more packages
github.com/openbao/openbao Go | All versions | 0.0.0-20241003222810-d5b4e9224698 |
github.com/openbao/openbao Go | From 0.1.0 | None |
github.com/openbao/openbao Go | From 0.1.0 | None |
Products include Hashicorp Vault, Openbao Openbao.
How do I fix CVE-2024-7594?
Upgrade github.com/hashicorp/vault to 1.17.6 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2024-7594 being exploited?
There is no known exploitation of CVE-2024-7594 in the wild and no public exploit code.
Other vulnerabilities in Hashicorp Vault
Sources
Also known as BIT-openbao-2024-7594, BIT-vault-2024-7594, GHSA-jg74-mwgw-v6x3, GO-2024-3162.