CVE-2024-7594: Vault SSH Secrets Engine Configuration Did Not Restrict Valid Principals By Default
Vault’s SSH secrets engine did not require the validprincipals list to contain a value by default. If the validprincipals and defaultuser 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.
Published Sep 26, 2024 · Updated Aug 12, 2025
Affected packages
github.com/hashicorp/vault
- Ecosystem
- Go
- Affected
- >= 1.7.7, < 1.17.6
- Fixed in
- 1.17.6
- Check
go list -m github.com/hashicorp/vault
github.com/openbao/openbao
- Ecosystem
- Go
- Affected
- >= 0.1.0, < 2.0.2
- Fixed in
- No patched version yet
- Check
go list -m github.com/openbao/openbao
github.com/openbao/openbao
- Ecosystem
- Go
- Affected
- < 0.0.0-20241003222810-d5b4e9224698
- Fixed in
- 0.0.0-20241003222810-d5b4e9224698
- Check
go list -m github.com/openbao/openbao
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to westonsteimel, cipherboy.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-7594
- https://discuss.hashicorp.com/t/hcsec-2024-20-vault-ssh-secrets-engine-configuration-did-not-restrict-valid-principals-by-default/70251
- https://pkg.go.dev/vuln/GO-2024-3162
- https://security.netapp.com/advisory/ntap-20250110-0007
- https://openbao.org/docs/release-notes/2-0-0/#202
- https://github.com/openbao/openbao/pull/561
- https://github.com/openbao/openbao/commit/d5b4e922469830ac335b21dc0e8f9878c501a884
- https://github.com/advisories/GHSA-jg74-mwgw-v6x3
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-63131
OpenBao Skips Stricter Deny Policy for LIST operations
medium6.0No fixSep 22, 2026CVE-2026-63132
OpenBao's Recovery Mode Vulnerable To Token Leakage via Timing Attack
critical9.1No fixSep 22, 2026CVE-2026-71543
OpenBao's Templated Policies Allow Privilege Escalation via Wildcard Characters
high7.5No fixSep 22, 2026CVE-2026-77285
OpenBao Agent Writes Secrets to Stdout
low2.4No fixSep 22, 2026CVE-2026-55770
OpenBao: LDAPi ldaputil (wrong escape func)
medium6.8No fixJun 19, 2026CVE-2026-55774
OpenBao: Cross-namespace lease revocation/renewal via canonical sys/leases/{revoke,renew} — incomplete fix of CVE-2026-45808
low2.1No fixJun 19, 2026
