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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.48% (percentile 34, 2026-11-26)
- **CWE:** CWE-732
- **Aliases:** BIT-openbao-2024-7594, BIT-vault-2024-7594, GHSA-jg74-mwgw-v6x3, GO-2024-3162
- **Published:** 2024-09-26T19:52:55.652Z
- **Modified:** 2026-09-10T03:50:18.937Z

## Who should check

- Projects that depend on Go package github.com/hashicorp/vault (\>= 1.7.7, \< 1.17.6)
- Projects that depend on Go package github.com/openbao/openbao (\>= 0.1.0)
- Anyone running HashiCorp Vault \>= 1.7.7, \< 1.17.6
- Anyone running HashiCorp Vault Enterprise \>= 1.7.7, \< 1.17.6

## 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.

## Affected and fixed versions

- Go `github.com/hashicorp/vault`: affected \>= 1.7.7, \< 1.17.6; fixed 1.17.6 (osv)
- Go `github.com/openbao/openbao`: affected \>= 0.1.0; fixed 0.0.0-20241003222810-d5b4e9224698 (osv)
- HashiCorp Vault: \>= 1.7.7, \< 1.17.6 (cvelist)
- HashiCorp Vault Enterprise: \>= 1.7.7, \< 1.17.6 (cvelist)

## Mitigation

- Upgrade github.com/hashicorp/vault to 1.17.6 or later.
- Upgrade github.com/openbao/openbao to 0.0.0-20241003222810-d5b4e9224698 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-7594. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-7594.md
Affected: github.com/hashicorp/vault >= 1.7.7, < 1.17.6; github.com/openbao/openbao >= 0.1.0
Fixed in: 1.17.6, 0.0.0-20241003222810-d5b4e9224698

Steps:
1. Search this machine and project for github.com/hashicorp/vault (Go), github.com/openbao/openbao (Go), HashiCorp Vault, HashiCorp Vault Enterprise: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-7594 being exploited?

There is no confirmed exploitation: CVE-2024-7594 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.48% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-7594?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-7594?

github.com/hashicorp/vault \>= 1.7.7, \< 1.17.6; github.com/openbao/openbao \>= 0.1.0.

### Is there a fix for CVE-2024-7594?

Yes. Fixed in 1.17.6, 0.0.0-20241003222810-d5b4e9224698. Upgrade github.com/hashicorp/vault to 1.17.6 or later. Upgrade github.com/openbao/openbao to 0.0.0-20241003222810-d5b4e9224698 or later.

### How do I check if I'm affected by CVE-2024-7594?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://discuss.hashicorp.com/t/hcsec-2024-20-vault-ssh-secrets-engine-configuration-did-not-restrict-valid-principals-by-default/70251>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-7594>
- vendor: <https://github.com/advisories/GHSA-jg74-mwgw-v6x3>
- patch: <https://github.com/openbao/openbao/pull/561>
- patch: <https://github.com/openbao/openbao/commit/d5b4e922469830ac335b21dc0e8f9878c501a884>
- other: <https://security.netapp.com/advisory/ntap-20250110-0007/>
- other: <https://github.com/hashicorp/vault>
- other: <https://openbao.org/docs/release-notes/2-0-0/#202>
- other: <https://pkg.go.dev/vuln/GO-2024-3162>
- other: <https://security.netapp.com/advisory/ntap-20250110-0007>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-7594>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-jg74-mwgw-v6x3> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-3162> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-7594> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-7594>
