CVE-2026-136840 in Configuration as Code Plugininfo

Summary

by MITRE • 11/25/2026

Jenkins Configuration as Code Plugin 2134.ve13a_2fc90835 through 2147.v8a_8d38668c72 (both inclusive), except 2140.2142.v3836c98f1b_30, resolves variables, including references to files on the Jenkins controller file system, environment variables, system properties, and values from configured secret sources, in YAML documents submitted to its configuration validation endpoint, and returns resolved values in error responses, allowing attackers with Overall/SystemRead permission to read arbitrary files on the Jenkins controller file system, environment variables, system properties, and values from configured secret sources.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 11/28/2026

The Jenkins Configuration as Code plugin versions 2134.ve13a_2fc90835 through 2147.v8a_8d38668c72 contain a critical information disclosure vulnerability that allows authenticated attackers with Overall/SystemRead permissions to exfiltrate sensitive data from the Jenkins controller environment. This flaw resides in the configuration validation endpoint, which is designed to parse YAML documents and verify their syntax before applying them as system configurations. The core technical deficiency lies in how this endpoint handles variable resolution during the parsing process. When a maliciously crafted YAML document containing variable references is submitted for validation, the plugin attempts to resolve these variables immediately. This includes resolving references to files on the Jenkins controller file system, environment variables, system properties, and values stored in configured secret sources such as credential stores or external vaults.

The operational impact of this vulnerability stems from the fact that resolved values are inadvertently included in error responses generated by the validation endpoint. If a user submits a YAML document with an invalid structure or syntax error after a variable reference has been successfully resolved, the resulting error message contains the actual value retrieved during resolution rather than just indicating which part of the configuration is malformed. This behavior effectively turns the validation mechanism into an arbitrary file read and environment variable disclosure vector. An attacker possessing Overall/SystemRead permissions can exploit this by crafting specific YAML payloads that trigger syntax errors after resolving sensitive targets, thereby extracting secrets such as API keys, database passwords, or private key material directly from HTTP error responses without needing higher-level administrative privileges like Full Control or Administer rights.

From a classification perspective, this vulnerability aligns with CWE-209: Generation of Error Message Containing Sensitive Information and CWE-732: Incorrect Permission Assignment for Critical Resource. The attack vector is consistent with ATT&CK technique T1504.006: Configuration Repository Hijacking or more accurately in this context, it facilitates data exfiltration via misconfigured application logic similar to T1005: Data from Local System. Although the attacker requires authentication and a baseline level of read permission, which limits the scope compared to unauthenticated exploits, the ability to dump system properties and secret values significantly compromises the security posture of the Jenkins instance. This can lead to further lateral movement if those secrets are reused across other systems or services within the organization's infrastructure.

Mitigation for this issue requires immediate upgrading of the Configuration as Code plugin to version 2140.2142.v3836c98f1b_30 or any later release where the variable resolution logic has been corrected to prevent leakage in error messages. In addition to patching, administrators should audit their Jenkins instance for users with Overall/SystemRead permissions and ensure that these accounts are strictly limited to necessary personnel only. It is also advisable to review access control lists within Jenkins to enforce least privilege principles, ensuring that read-only roles cannot inadvertently trigger sensitive data exposure through API endpoints or web interfaces. Regular monitoring of HTTP error logs can help detect attempts at exploitation by identifying patterns where variable resolution errors correlate with specific YAML payloads submitted for validation.

Responsible

Jenkins

Reservation

11/25/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00862

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!