GHSA-vwq9-cmqr-3c8c

Suggest an improvement
Source
https://github.com/advisories/GHSA-vwq9-cmqr-3c8c
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-vwq9-cmqr-3c8c/GHSA-vwq9-cmqr-3c8c.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vwq9-cmqr-3c8c
Aliases
Published
2022-05-24T16:51:50Z
Modified
2024-02-16T08:16:26.356098Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Insertion of Sensitive Information into Log File in Jenkins Configuration as Code Plugin
Details

Configuration as Code Plugin logs the changes it applies to the Jenkins system log. Secrets such as passwords should be masked (i.e. replaced with asterisks) in that log to prevent accidental disclosure.

Between Configuration as Code Plugin 0.8-alpha and 1.0, log messages contained values if the values were specified using properties in the YAML file (SECURITY-929).

Since Configuration as Code Plugin 1.1, log messages in Configuration as Code Plugin instead mask values of type Secret, which is used in Jenkins to store the values encrypted on disk. This did not work in many instances, as plugins could use the Secret type to store credentials encrypted on disk while not having the Secret type appear in their Java API.

Configuration as Code Plugin now inspects the type and looks for a field, getter, or constructor argument corresponding to the property, making the secret detection much more robust for the purpose of log message masking. As a workaround, administrators can configure the logging level of the logger io.jenkins.plugins.casc.Attribute to a level that does not include INFO messages. See the logging documentation for details.

Database specific
{
    "nvd_published_at": "2019-07-31T13:15:00Z",
    "cwe_ids": [
        "CWE-532"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2022-06-28T23:08:40Z"
}
References

Affected packages

Maven / io.jenkins:configuration-as-code

Package

Name
io.jenkins:configuration-as-code
View open source insights on deps.dev
Purl
pkg:maven/io.jenkins/configuration-as-code

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.25

Affected versions

0.*

0.6-alpha
0.7-alpha
0.8-alpha
0.9-alpha
0.10-alpha
0.11-alpha

1.*

1.0-rc1
1.0-rc2
1.0-rc3
1.0
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
1.9
1.10
1.11
1.12
1.13
1.14
1.15
1.16
1.17
1.18
1.19
1.20
1.21
1.22
1.23
1.24

Database specific

{
    "last_known_affected_version_range": "<= 1.24"
}