Information Exposure Affecting github.com/go-vela/cli/action/secret package, versions <0.23.2


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOVELACLIACTIONSECRET-6455611
  • published17 Mar 2024
  • disclosed15 Mar 2024
  • creditgdiepen

Introduced: 15 Mar 2024

CVE NOT AVAILABLE CWE-200  (opens in a new tab)

How to fix?

Upgrade github.com/go-vela/cli/action/secret to version 0.23.2 or higher.

Overview

Affected versions of this package are vulnerable to Information Exposure due to the handling of sensitive fields like parameters, image, and entrypoint for variable substitution. An attacker can expose secrets without the use of the commands block by manipulating common substitution strings to bypass log masking. This primarily impacts secrets restricted by the "no commands" option, leading to unintended use of the secret value and increased risk of exposing the secret during image execution.

Workaround

This vulnerability can be mitigated by not providing sensitive values to plugins that can potentially expose them, ensuring plugins follow best practices to avoid logging parameters expected to be sensitive, minimizing secrets with pull_request events enabled, making use of the build approval setting, and limiting use of shared secrets.

References

CVSS Scores

version 3.1