Skip to content

Jenkins HashiCorp Vault Plugin has improper masking of credentials

Moderate severity GitHub Reviewed Published May 16, 2023 to the GitHub Advisory Database • Updated Nov 7, 2023

Package

maven com.datapipe.jenkins.plugins:hashicorp-vault-plugin (Maven)

Affected versions

<= 360.v0a

Patched versions

None

Description

Jenkins HashiCorp Vault Plugin 360.v0a_1c04cf807d and earlier does not properly mask (i.e., replace with asterisks) credentials printed in the build log from Pipeline steps like sh and bat, when both of the following conditions are met:

  • The credentials are printed in build steps executing on an agent (typically inside a node block).

  • Push mode for durable task logging is enabled. This is a hidden option in Pipeline: Nodes and Processes that can be enabled through the Java system property org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep.USE_WATCHING. It is also automatically enabled by some plugins, e.g., OpenTelemetry and Pipeline Logging over CloudWatch.

An improvement in Credentials Binding 523.525.vb_72269281873 implements a workaround that applies build log masking even in affected plugins. This workaround is temporary and potentially incomplete, so it is still recommended that affected plugins be updated to resolve this issue.

As of publication of this advisory, there is no fix.

References

Published by the National Vulnerability Database May 16, 2023
Published to the GitHub Advisory Database May 16, 2023
Reviewed May 17, 2023
Last updated Nov 7, 2023

Severity

Moderate
4.3
/ 10

CVSS base metrics

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

Weaknesses

CVE ID

CVE-2023-33001

GHSA ID

GHSA-v3fv-v9m6-26g3

Source code

No known source code
Checking history
See something to contribute? Suggest improvements for this vulnerability.