---
id: CVE-2024-7594
aliases:
  - GHSA-jg74-mwgw-v6x3
  - BIT-openbao-2024-7594
  - BIT-vault-2024-7594
  - GO-2024-3162
title: >-
  Vault SSH Secrets Engine Configuration Did Not Restrict Valid Principals By
  Default
summary: >-
  Vault SSH Secrets Engine Configuration Did Not Restrict Valid Principals By
  Default
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'
vendor: hashicorp
product: github.com/hashicorp/vault
ecosystem: go
affected:
  - 'github.com/hashicorp/vault >= 1.7.7, < 1.17.6'
  - github.com/openbao/openbao >= 0.1.0
  - github.com/openbao/openbao < 0.0.0-20241003222810-d5b4e9224698
patched:
  - github.com/hashicorp/vault 1.17.6
  - github.com/openbao/openbao 0.0.0-20241003222810-d5b4e9224698
published: '2024-09-26'
updated: '2026-07-27'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-jg74-mwgw-v6x3'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-7594'
  - url: 'https://github.com/openbao/openbao/pull/561'
  - url: >-
      https://github.com/openbao/openbao/commit/d5b4e922469830ac335b21dc0e8f9878c501a884
  - url: >-
      https://discuss.hashicorp.com/t/hcsec-2024-20-vault-ssh-secrets-engine-configuration-did-not-restrict-valid-principals-by-default/70251
  - url: 'https://github.com/hashicorp/vault'
  - url: 'https://openbao.org/docs/release-notes/2-0-0/#202'
  - url: 'https://pkg.go.dev/vuln/GO-2024-3162'
  - url: 'https://security.netapp.com/advisory/ntap-20250110-0007'
tags:
  - osv
  - go
epss: 0.00269
epssPercentile: 0.19317
ingestedAt: '2026-07-27T19:08:54.894Z'
---

## Overview

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 packages

- `github.com/hashicorp/vault >= 1.7.7, < 1.17.6`
- `github.com/openbao/openbao >= 0.1.0`
- `github.com/openbao/openbao < 0.0.0-20241003222810-d5b4e9224698`

## Remediation

Upgrade to a patched release:

- `github.com/hashicorp/vault 1.17.6`
- `github.com/openbao/openbao 0.0.0-20241003222810-d5b4e9224698`
