CVE-2022-23106: Configuration as code Observable Discrepancy And Observable Timing Vulnerability

LOW
Advisory Identifier: GHSA-fpj7-9xm6-8hgr
CVSS 3.7
CWE-203 CWE-208
Published
Advisory Summary

CVE-2022-23106 is a LOW (CVSS 3.7) observable discrepancy and observable timing vulnerability (CWE-203: Observable Discrepancy) affecting Configuration as code libraries in the Maven ecosystem. The issue involves observable discrepancy and observable timing discrepancy in jenkins configuration as code plugin. Remediation is available by upgrading affected packages to version 1.55.1, 1.54.1, 1.53.1, 1.47.1.

CVE-2022-23106 at a Glance

CVE Identifier CVE-2022-23106
GHSA Identifier GHSA-fpj7-9xm6-8hgr
Severity LOW
CVSS v3.1 Base Score 3.7
CWE Classification CWE-203: Observable Discrepancy
Affected Product Configuration as code
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 3.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2022-23106

To remediate this vulnerability, upgrade all affected Configuration as code dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

io.jenkins:configuration-as-code fixed: 1.55.1
<dependency>
    <groupId>io.jenkins</groupId>
    <artifactId>configuration-as-code</artifactId>
    <version>1.55.1</version>
</dependency>
io.jenkins:configuration-as-code fixed: 1.54.1
<dependency>
    <groupId>io.jenkins</groupId>
    <artifactId>configuration-as-code</artifactId>
    <version>1.54.1</version>
</dependency>
io.jenkins:configuration-as-code fixed: 1.53.1
<dependency>
    <groupId>io.jenkins</groupId>
    <artifactId>configuration-as-code</artifactId>
    <version>1.53.1</version>
</dependency>
io.jenkins:configuration-as-code fixed: 1.47.1
<dependency>
    <groupId>io.jenkins</groupId>
    <artifactId>configuration-as-code</artifactId>
    <version>1.47.1</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=io.jenkins

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2022-23106, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=io.jenkins

Analyze the terminal output to locate any version of Configuration as code in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.55.1), your application is affected.

Note: The mvn dependency:tree -Dincludes=io.jenkins command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-203: Observable Discrepancy, where the product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor. In Configuration as code, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Jenkins Configuration as Code Plugin prior to 1.55.1, 1.54.1, 1.53.1, and 1.47.1 does not use a constant-time comparison when checking whether two authentication tokens are equal. This could potentially allow attackers to use statistical methods to obtain a valid authentication token. Configuration as Code Plugin 1.55.1, 1.54.1, 1.53.1, and 1.47.1 now uses a constant-time comparison when validating authentication tokens.

CVE-2022-23106 Affected Configuration as code Versions

4 component(s)
Fixed Versions:
1.55.11.54.11.53.11.47.1
Product / Package Ecosystem Affected Versions Fixed Version
io.jenkins:configuration-as-code
Maven
≥ 1.55
< 1.55.1
All 1 versions
1.55
1.55.1
io.jenkins:configuration-as-code
Maven
≥ 1.54
< 1.54.1
All 1 versions
1.54
1.54.1
io.jenkins:configuration-as-code
Maven
≥ 1.48
< 1.53.1
1.53.1
io.jenkins:configuration-as-code
Maven
< 1.47.1
1.47.1

References

Frequently Asked Questions

What is CVE-2022-23106?
CVE-2022-23106 is a security vulnerability in Configuration as code involving Observable Discrepancy and Observable Timing Discrepancy in Jenkins Configuration as Code Plugin under CWE-203: Observable Discrepancy.
Which Configuration as code versions are affected?
Affected versions include releases prior to 1.55.1, 1.54.1, 1.53.1, 1.47.1 across affected packages: io.jenkins:configuration-as-code.
What version fixes CVE-2022-23106?
Upgrading to 1.55.1, 1.54.1, 1.53.1, 1.47.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is configuration-as-code affected?
Yes, io.jenkins:configuration-as-code is affected in releases prior to 1.55.1, 1.54.1, 1.53.1, 1.47.1. Upgrade your dependency to 1.55.1, 1.54.1, 1.53.1, 1.47.1 or later.
What is the CVSS score of CVE-2022-23106?
CVE-2022-23106 has a CVSS v3.1 base score of 3.7 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2022-23106?
CVE-2022-23106 is classified under CWE-203: Observable Discrepancy (The product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor.).
How can I check Maven dependencies for CVE-2022-23106?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.jenkins'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-fpj7-9xm6-8hgr",
  "modified" : "2023-05-24T14:00:21Z",
  "published" : "2022-01-21T23:38:30Z",
  "aliases" : [ "CVE-2022-23106" ],
  "summary" : "Observable Discrepancy and Observable Timing Discrepancy in Jenkins Configuration as Code Plugin",
  "details" : "Jenkins Configuration as Code Plugin prior to 1.55.1, 1.54.1, 1.53.1, and 1.47.1 does not use a constant-time comparison when checking whether two authentication tokens are equal.\n\nThis could potentially allow attackers to use statistical methods to obtain a valid authentication token.\n\nConfiguration as Code Plugin 1.55.1, 1.54.1, 1.53.1, and 1.47.1 now uses a constant-time comparison when validating authentication tokens.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.jenkins:configuration-as-code"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.55"
      }, {
        "fixed" : "1.55.1"
      } ]
    } ],
    "versions" : [ "1.55" ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.jenkins:configuration-as-code"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.54"
      }, {
        "fixed" : "1.54.1"
      } ]
    } ],
    "versions" : [ "1.54" ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.jenkins:configuration-as-code"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.48"
      }, {
        "fixed" : "1.53.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.jenkins:configuration-as-code"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.47.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-23106"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jenkinsci/configuration-as-code-plugin/commit/4f425675edf77d382a6fd10890f1a704ff3b2277"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/CVEProject/cvelist/blob/00bfb5abeecc9f553a2f42954ee540e493498ee9/2022/23xxx/CVE-2022-23106.json"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jenkinsci/configuration-as-code-plugin"
  }, {
    "type" : "WEB",
    "url" : "https://www.jenkins.io/security/advisory/2022-01-12/#SECURITY-2141"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2022/01/12/6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-203", "CWE-208" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-01-20T14:42:40Z",
    "nvd_published_at" : "2022-01-12T20:15:00Z"
  }
}