CVE-2021-38553:
HashiCorp Vault underlying database had excessively broad filesystem permissions from v1.4.0 until v1.8.0
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.07813%
CWE
Published
8/30/2021
Updated
1/30/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/hashicorp/vault | go | >= 1.4.0, < 1.8.0 | 1.8.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper file permission handling during BoltDB
initialization for Vault
's Integrated Storage. The Raft backend setup in physical/raft/raft.go
would be responsible for creating the vault.db
file. Prior to 1.8.0, the code likely used default or overly broad file modes when calling bolt.Open()
, resulting in CWE-281. The fix in 1.8.0 would have adjusted the file mode parameter to enforce stricter permissions (e.g., 0600). While exact code diffs aren't provided, the described vulnerability pattern and HashiCorp
's remediation guidance strongly implicate the Raft storage initialization logic.