Skip to content

Vault GitHub Action did not correctly mask multi-line secrets in output

High severity GitHub Reviewed Published May 24, 2022 to the GitHub Advisory Database • Updated Jan 25, 2024

Package

actions hashicorp/vault-action (GitHub Actions)

Affected versions

< 2.2.0

Patched versions

2.2.0

Description

HashiCorp vault-action (aka Vault GitHub Action) before 2.2.0 allows attackers to obtain sensitive information from log files because a multi-line secret was not correctly registered with GitHub Actions for log masking.

The vault-action implementation did not correctly handle the marking of multi-line variables. As a result, multi-line secrets were not correctly masked in vault-action output.

Remediation:
Customers using vault-action should evaluate the risk associated with this issue, and consider upgrading to vault-action 2.2.0 or newer. Please refer to https://github.com/marketplace/actions/hashicorp-vault for more information.

References

Published by the National Vulnerability Database May 7, 2021
Published to the GitHub Advisory Database May 24, 2022
Reviewed Jul 29, 2022
Last updated Jan 25, 2024

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Weaknesses

CVE ID

CVE-2021-32074

GHSA ID

GHSA-4mgv-m5cm-f9h7

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.