GHSA-7c3v-vc3x-x789

Suggest an improvement
Source
https://github.com/advisories/GHSA-7c3v-vc3x-x789
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-7c3v-vc3x-x789/GHSA-7c3v-vc3x-x789.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-7c3v-vc3x-x789
Aliases
Published
2022-05-24T16:52:44Z
Modified
2023-12-06T14:16:11.621207Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/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. Configuration as Code Plugin 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. This was implemented in the fix for SECURITY-1279 in the 2019-07-31 security advisory.

That fix was incomplete and did not cover a log message written to the logger io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator.

Configuration as Code Plugin now uses the same secret detection for these log messages.

As a workaround, administrators can configure the logging level of the logger io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator to a level that does not include these messages. Configuration as Code Plugin 1.25 and earlier logs these messages at the INFO level, Configuration as Code Plugin 1.26 logs them at FINE. See the logging documentation for details.

Database specific
{
    "nvd_published_at": "2019-08-07T15:15:00Z",
    "cwe_ids": [
        "CWE-532"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2022-06-28T22:36:48Z"
}
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.27

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
1.25
1.26

Database specific

{
    "last_known_affected_version_range": "<= 1.26"
}