CVE-2024-7594 Vault SSH Secrets Engine Configuration Did Not Restrict Valid Principals By Default

High 7.5 Published Updated

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.

PackageAffectedFixed in
github.com/hashicorp/vault GoFrom 1.7.71.17.6
github.com/hashicorp/vault GoFrom 1.7.71.17.6
github.com/hashicorp/vault GoFrom 1.7.71.17.6
openbao BitnamiAll versions2.0.2
vault BitnamiFrom 1.7.71.17.6
github.com/openbao/openbao GoAll versions0.0.0-20241003222810-d5b4e9224698
3 more packages
github.com/openbao/openbao GoAll versions0.0.0-20241003222810-d5b4e9224698
github.com/openbao/openbao GoFrom 0.1.0None
github.com/openbao/openbao GoFrom 0.1.0None

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.

All Hashicorp Vault vulnerabilities

Sources

Also known as BIT-openbao-2024-7594, BIT-vault-2024-7594, GHSA-jg74-mwgw-v6x3, GO-2024-3162.

Is CVE-2024-7594 in your software?

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

Check your SBOMs for free