{"id":"CVE-2024-7594","published":"2024-09-26T19:52:55Z","modified":"2025-01-10T13:06:49Z","title":"Vault SSH Secrets Engine Configuration Did Not Restrict Valid Principals By Default","vendor":"HashiCorp","product":"Vault","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00269,"percentile":0.19467,"provenance":"source"},"cwes":[{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource"}],"references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2024-20-vault-ssh-secrets-engine-configuration-did-not-restrict-valid-principals-by-default/70251","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20250110-0007/","tags":[]}],"priority":{"score":9.1,"factors":[{"name":"EPSS percentile","points":3.89},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"hashicorp","affectedVersions":[{"vendor":"HashiCorp","product":"Vault","versions":[">= 1.7.7, < 1.17.6"]},{"vendor":"HashiCorp","product":"Vault Enterprise","versions":[">= 1.7.7, < 1.17.6"]}],"fixedVersions":[{"vendor":"HashiCorp","product":"Vault Enterprise","versions":["1.16.10","1.15.15"]}],"capec":[{"id":"CAPEC-1","name":"Accessing Functionality Not Properly Constrained by ACLs"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-09-26T20:24:40.797176Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/hashicorp/vault","vulnerableRanges":[">=1.7.7, <1.17.6"],"patched":["1.17.6"],"from":["GHSA-jg74-mwgw-v6x3","GO-2024-3162"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/openbao/openbao","vulnerableRanges":[">=0.1.0, <2.0.2","<0.0.0-20241003222810-d5b4e9224698"],"patched":["0.0.0-20241003222810-d5b4e9224698"],"from":["GHSA-jg74-mwgw-v6x3"],"provenance":"source"}],"summary":{"text":"Vault's SSH secrets engine did not require the valid_principals list to contain a value by default, so when the valid_principals and default_user fields are left unset in its configuration, the flaw lies in that default handling. An attacker who holds an SSH certificate that an authorized user requested from the engine, and who has access to the host, could use it to log in as any user on that host, provided those configuration fields are unset.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:15Z"},"euvd":{"id":"EUVD-2024-2820","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-openbao-cve-2024-7594","children":[{"from":"CVE-2024-7594","to":"CVE-2026-71543","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["builtin/logical/ssh/path_issue_sign.go","builtin/logical/ssh/path_roles.go","website/content/api-docs/secret/ssh.mdx"],"commits":["https://github.com/openbao/openbao/commit/d5b4e922469830ac335b21dc0e8f9878c501a884","https://github.com/openbao/openbao/commit/2d4ebafec5c524408b3d4ac1198df909cb7ac8c1","https://github.com/openbao/openbao/commit/e516ce508e1481504cadbfbf62052364339093bc"],"basis":"shared function","functions":["calculateValidPrincipals","createCARole","parseRole","pathRoles"]}]}],"packageHistory":[{"cve":"CVE-2024-5798","published":"2024-06-12","fixed":"1.17.0","kev":false},{"cve":"CVE-2024-6468","published":"2024-07-11","fixed":"1.17.2","kev":false},{"cve":"CVE-2024-8365","published":"2024-09-02","fixed":"1.17.5","kev":false,"link":{"from":"CVE-2024-8365","to":"CVE-2024-7594","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/hashicorp/vault","fromFixed":"1.17.5","toFixed":"1.17.6","daysApart":24}]}},{"cve":"CVE-2024-7594","published":"2024-09-26","fixed":"1.17.6","kev":false},{"cve":"CVE-2024-9180","published":"2024-10-10","fixed":"1.18.0","kev":false,"link":{"from":"CVE-2024-7594","to":"CVE-2024-9180","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/hashicorp/vault","fromFixed":"1.17.6","toFixed":"1.18.0","daysApart":14},{"kind":"version-step","provenance":"source","package":"Go:github.com/openbao/openbao","fromFixed":"2.0.2","toFixed":"2.0.3","daysApart":14}]}},{"cve":"CVE-2024-8185","published":"2024-10-31","fixed":"1.18.1","kev":false,"link":{"from":"CVE-2024-7594","to":"CVE-2024-8185","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/openbao/openbao","fromFixed":"2.0.2","toFixed":"2.0.3","daysApart":35}]}},{"cve":"CVE-2025-3879","published":"2025-05-02","fixed":"1.19.1","kev":false}],"package":"Go:github.com/hashicorp/vault"}}