CVE-2022-30945: Workflow cps Groovy Plugin Vulnerability
HIGHCVE-2022-30945 is a HIGH (CVSS 7.5) groovy plugin vulnerability (CWE-552: Files or Directories Accessible to External Parties) affecting Workflow cps libraries in the Maven ecosystem. The issue involves groovy plugin. Remediation is available by upgrading affected packages to version 2692.v76b.
CVE-2022-30945 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2022-30945
To remediate this vulnerability, upgrade all affected Workflow cps dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-cps</artifactId>
<version>2692.v76b</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.jenkins-ci.plugins.workflow
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2022-30945, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.jenkins-ci.plugins.workflow
Analyze the terminal output to locate any version of Workflow cps in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2692.v76b), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.jenkins-ci.plugins.workflow 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-552: Files or Directories Accessible to External Parties, where the product makes files or directories accessible to unauthorized actors, even though they should not be. In Workflow cps, 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
CVE-2022-30945 Affected Workflow cps Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.jenkins-ci.plugins.workflow:workflow-cps
|
Maven |
< 2692.v76b
|
2692.v76b
|
References
Frequently Asked Questions
What is CVE-2022-30945?
Which Workflow cps versions are affected?
What version fixes CVE-2022-30945?
Is workflow-cps affected?
What is the CVSS score of CVE-2022-30945?
What CWE is associated with CVE-2022-30945?
How can I check Maven dependencies for CVE-2022-30945?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2xvx-rw9p-xgfc",
"modified" : "2022-12-02T21:10:55Z",
"published" : "2022-05-18T00:00:39Z",
"aliases" : [ "CVE-2022-30945" ],
"summary" : "Sandbox bypass vulnerability through implicitly allowlisted platform Groovy files in Jenkins Pipeline: Groovy Plugin",
"details" : "Pipeline: Groovy Plugin allows pipelines to load Groovy source files. This is intended to be used to allow Global Shared Libraries to execute without sandbox protection.\n\nIn Pipeline: Groovy Plugin 2689.v434009a_31b_f1 and earlier, any Groovy source files bundled with Jenkins core and plugins could be loaded this way and their methods executed. If a suitable Groovy source file is available on the classpath of Jenkins, sandbox protections can be bypassed.\n\nThe Jenkins security team has been unable to identify any Groovy source files in Jenkins core or plugins that would allow attackers to execute dangerous code. While the severity of this issue is declared as High due to the potential impact, successful exploitation is considered very unlikely.\n\nPipeline: Groovy Plugin 2692.v76b_089ccd026 restricts which Groovy source files can be loaded in Pipelines.\n\nGroovy source files in public plugins intended to be executed in sandboxed pipelines have been identified and added to an allowlist. The new extension point `org.jenkinsci.plugins.workflow.cps.GroovySourceFileAllowlist` allows plugins to add specific Groovy source files to that allowlist if necessary, but creation of plugin-specific Pipeline DSLs is strongly discouraged.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.jenkins-ci.plugins.workflow:workflow-cps"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2692.v76b"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2689.v434009a"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-30945"
}, {
"type" : "WEB",
"url" : "https://github.com/jenkinsci/workflow-cps-plugin/commit/76a7681702f42d65f77bbaa5463f146876ea62db"
}, {
"type" : "WEB",
"url" : "https://github.com/jenkinsci/workflow-cps-plugin/commit/76b089ccd026b68012b0deb30c217395f7ca7dc2"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jenkinsci/workflow-cps-plugin"
}, {
"type" : "WEB",
"url" : "https://www.jenkins.io/security/advisory/2022-05-17/#SECURITY-359"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2022/05/17/8"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-434", "CWE-552" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-12-02T21:10:55Z",
"nvd_published_at" : "2022-05-17T15:15:00Z"
}
}