CVE-2021-32074: Vault GitHub Action did not correctly mask multi-line secrets in output
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.56496%
CWE
Published
5/24/2022
Updated
1/25/2024
KEV Status
No
Technology
GitHub Actions
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| hashicorp/vault-action | actions | < 2.2.0 | 2.2.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from how secrets were processed in exportSecrets. The pre-patch code (vulnerable versions <2.2.0) used a single command.issue('add-mask', value) call for entire secret values. The commit 3526e1b shows this was replaced with a loop that splits multi-line values, removes carriage returns, and masks each non-empty line. The added tests in action.test.js specifically verify multi-line masking behavior, confirming the vulnerability existed in the original exportSecrets implementation.