Jenkins reveals encrypted values of secrets stored in agent configuration to users with Agent/Extended Read permission
Date: 2025-03
Affected: maven/org.jenkins-ci.main:jenkins-core, maven/org.jenkins-ci.main:jenkins-core
Attack vector: other
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2025-27622
CVE-2025-27623
CWE: CWE-312
CVSS: 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N)

Jenkins 2.499 and earlier, LTS 2.492.1 and earlier does not redact encrypted values of secrets when accessing `config.xml` of views via REST API or CLI. This allows attackers with View/Read permission to view encrypted values of secrets. Jenkins 2.500, LTS 2.492.2 redacts the encrypted values of secrets stored in view `config.xml` accessed via REST API or CLI for users lacking View/Configure permission.


Mitigations:

Architectural layers (MAESTRO):