CVE-2022-43404
Sandbox bypass vulnerabilities in Jenkins Script Security Plugin and in Pipeline: Groovy Plugin
A sandbox bypass vulnerability involving crafted constructor bodies and calls to sandbox-generated synthetic constructors in Jenkins Script Security Plugin 1183.v774b_0b_0a_a_451 and earlier allows attackers with permission to define and run sandboxed scripts, including Pipelines, to bypass the sandbox protection and execute arbitrary code in the context of the Jenkins controller JVM.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.9
A sandbox bypass vulnerability involving crafted constructor bodies and calls to sandbox-generated synthetic constructors in Jenkins Script Security Plugin 1183.v774b_0b_0a_a_451 and earlier allows attackers with permission to define and run sandboxed scripts, including Pipelines, to bypass the sandbox protection and execute arbitrary code in the context of the Jenkins controller JVM.
- Record
CVE-2022-43404- CVSS 3.1
- 9.9 Critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
CVE List No score
A sandbox bypass vulnerability involving crafted constructor bodies and calls to sandbox-generated synthetic constructors in Jenkins Script Security Plugin 1183.v774b_0b_0a_a_451 and earlier allows attackers with permission to define and run sandboxed scripts, including Pipelines, to bypass the sandbox protection and execute arbitrary code in the context of the Jenkins controller JVM.
- Record
CVE-2022-43404- Updated
- 2026-11-02
EUVDEUVD-2022-6986 No score
A sandbox bypass vulnerability involving crafted constructor bodies and calls to sandbox-generated synthetic constructors in Jenkins Script Security Plugin 1183.v774b_0b_0a_a_451 and earlier allows attackers with permission to define and run sandboxed scripts, including Pipelines, to bypass the sandbox protection and execute arbitrary code in the context of the Jenkins controller JVM.
- Record
EUVD-2022-6986- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-27rf-8mjp-r363
8.8
Sandbox bypass vulnerabilities in Jenkins Script Security Plugin and in Pipeline: Groovy Plugin
Script Security Plugin provides a sandbox feature that allows low privileged users to define scripts, including Pipelines, that are generally safe to execute. Calls to code defined inside a sandboxed script are intercepted, and various allowlists are checked to determine whether the call is to be allowed.
Multiple sandbox bypass vulnerabilities exist in Script Security Plugin and Pipeline: Groovy Plugin:
- In Script Security Plugin 1183.v774b_0b_0a_a_451 and earlier and in Pipeline: Groovy Plugin 2802.v5ea_628154b_c2 and earlier, various casts performed implicitly by the Groovy language runtime were not intercepted by the sandbox. This includes casts performed when returning values from methods, when assigning local variables, fields, properties, and when defining default arguments for closure, constructor, and method parameters (CVE-2022-43401 in Script Security Plugin and CVE-2022-43402 in Pipeline: Groovy Plugin).
- In Script Security Plugin 1183.v774b_0b_0a_a_451 and earlier, when casting an array-like value to an array type, per-element casts to the component type of the array are not intercepted by the sandbox (CVE-2022-43403).
- In Script Security Plugin 1183.v774b_0b_0a_a_451 and earlier, crafted constructor bodies and calls to sandbox-generated synthetic constructors can be used to construct any subclassable type (due to an incomplete fix for SECURITY-1754 in the 2020-03-09 security advisory) (CVE-2022-43404).
These vulnerabilities allow attackers with permission to define and run sandboxed scripts, including Pipelines, to bypass the sandbox protection and execute arbitrary code in the context of the Jenkins controller JVM.
These vulnerabilities have been fixed:
- Script Security Plugin 1184.v85d16b_d851b_3 and Pipeline: Groovy Plugin 2803.v1a_f77ffcc773 intercept Groovy casts performed implicitly by the Groovy language runtime (CVE-2022-43401 in Script Security Plugin and CVE-2022-43402 in Pipeline: Groovy Plugin).
- Script Security Plugin 1184.v85d16b_d851b_3 intercepts per-element casts when casting array-like values to array types (CVE-2022-43403).
- Script Security Plugin 1184.v85d16b_d851b_3 rejects improper calls to sandbox-generated synthetic constructors (CVE-2022-43404).
Both plugins, Script Security Plugin and Pipeline: Groovy Plugin must be updated simultaneously. While Script Security Plugin could be updated independently, doing so would cause errors in Pipeline: Groovy Plugin due to an incompatible API change.
- Record
GHSA-27rf-8mjp-r363- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-693
- Updated
- 2026-11-02
OSV
9.9
A sandbox bypass vulnerability involving crafted constructor bodies and calls to sandbox-generated synthetic constructors in Jenkins Script Security Plugin 1183.v774b_0b_0a_a_451 and earlier allows attackers with permission to define and run sandboxed scripts, including Pipelines, to bypass the sandbox protection and execute arbitrary code in the context of the Jenkins controller JVM.
- Record
CVE-2022-43404- CVSS 3.1
- 9.9 Critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-27rf-8mjp-r363
8.8
Sandbox bypass vulnerabilities in Jenkins Script Security Plugin and in Pipeline: Groovy Plugin
Script Security Plugin provides a sandbox feature that allows low privileged users to define scripts, including Pipelines, that are generally safe to execute. Calls to code defined inside a sandboxed script are intercepted, and various allowlists are checked to determine whether the call is to be allowed.
Multiple sandbox bypass vulnerabilities exist in Script Security Plugin and Pipeline: Groovy Plugin:
- In Script Security Plugin 1183.v774b_0b_0a_a_451 and earlier and in Pipeline: Groovy Plugin 2802.v5ea_628154b_c2 and earlier, various casts performed implicitly by the Groovy language runtime were not intercepted by the sandbox. This includes casts performed when returning values from methods, when assigning local variables, fields, properties, and when defining default arguments for closure, constructor, and method parameters (CVE-2022-43401 in Script Security Plugin and CVE-2022-43402 in Pipeline: Groovy Plugin).
- In Script Security Plugin 1183.v774b_0b_0a_a_451 and earlier, when casting an array-like value to an array type, per-element casts to the component type of the array are not intercepted by the sandbox (CVE-2022-43403).
- In Script Security Plugin 1183.v774b_0b_0a_a_451 and earlier, crafted constructor bodies and calls to sandbox-generated synthetic constructors can be used to construct any subclassable type (due to an incomplete fix for SECURITY-1754 in the 2020-03-09 security advisory) (CVE-2022-43404).
These vulnerabilities allow attackers with permission to define and run sandboxed scripts, including Pipelines, to bypass the sandbox protection and execute arbitrary code in the context of the Jenkins controller JVM.
These vulnerabilities have been fixed:
- Script Security Plugin 1184.v85d16b_d851b_3 and Pipeline: Groovy Plugin 2803.v1a_f77ffcc773 intercept Groovy casts performed implicitly by the Groovy language runtime (CVE-2022-43401 in Script Security Plugin and CVE-2022-43402 in Pipeline: Groovy Plugin).
- Script Security Plugin 1184.v85d16b_d851b_3 intercepts per-element casts when casting array-like values to array types (CVE-2022-43403).
- Script Security Plugin 1184.v85d16b_d851b_3 rejects improper calls to sandbox-generated synthetic constructors (CVE-2022-43404).
Both plugins, Script Security Plugin and Pipeline: Groovy Plugin must be updated simultaneously. While Script Security Plugin could be updated independently, doing so would cause errors in Pipeline: Groovy Plugin due to an incompatible API change.
- Record
GHSA-27rf-8mjp-r363- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-693
- Updated
- 2026-11-02
Show 4 moreShow less
OSVRHSA-2023:0560
9.9
Red Hat Security Advisory: OpenShift Container Platform 4.10.51 security update
- Record
RHSA-2023:0560- CVSS 3.1
- 9.9 Critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2023:0777
9.9
Red Hat Security Advisory: OpenShift Container Platform 4.9.56 security update
- Record
RHSA-2023:0777- CVSS 3.1
- 9.9 Critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2023:1064
9.9
Red Hat Security Advisory: OpenShift Developer Tools and Services for OCP 4.12 security update
- Record
RHSA-2023:1064- CVSS 3.1
- 9.9 Critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2023:3198
9.9
Red Hat Security Advisory: jenkins and jenkins-2-plugins security update
- Record
RHSA-2023:3198- CVSS 3.1
- 9.9 Critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
org.jenkins-ci.plugins:script-securityMaven |
before 1184.v85d16b | 1184.v85d16b |
org.jenkins-ci.plugins.workflow:workflow-cpsMaven |
through 2802.v5ea | 2803.v1a_f77ffcc773 |
org.jenkins-ci.plugins:script-securityMaven |
before 1184.v85d16b_d851b_3, plus listed versions 1.01.0-beta-11.0-beta-21.0-beta-31.0-beta-4 Show 45 moreShow less1.0-beta-51.0-beta-61.11.101.111.121.131.141.151.161.171.181.18.11.191.21.201.211.221.231.241.251.261.271.281.291.29.11.31.301.311.331.341.351.361.371.381.391.41.401.411.421.431.441.44.11.451.46 |
1184.v85d16b_d851b_3 |
org.jenkins-ci.plugins.workflow:workflow-cpsMaven |
before 2803.v1a_f77ffcc773, plus listed versions 0.1-beta-10.1-beta-20.1-beta-30.1-beta-40.1-beta-5 Show 45 moreShow less0.1-beta-60.1-beta-70.1-beta-81.01.0-beta-11.11.101.10-beta-11.10.11.111.11-beta-11.11-beta-21.11-beta-31.11-beta-41.121.12-beta-11.12-beta-21.12-beta-31.131.141.14-beta-11.14.11.14.1-beta-11.14.21.151.15-beta-11.21.31.41.4.11.4.21.4.31.4.3-beta-11.51.61.6-alpha-11.71.7-alpha-11.81.91.9-beta-12.02.12.102.11 |
2803.v1a_f77ffcc773 |
jenkins-2-pluginsRed Hat:openshift:4.10::el8 From an advisory covering 23 CVEs |
before 0:4.10.1675144701-1.el8 | 0:4.10.1675144701-1.el8 |
jenkins-2-pluginsRed Hat:openshift:4.9::el8 From an advisory covering 26 CVEs |
before 0:4.9.1675668922-1.el8 | 0:4.9.1675668922-1.el8 |
jenkinsRed Hat:openshift:4.9::el8 From an advisory covering 26 CVEs |
before 0:2.361.1.1675668150-1.el8 | 0:2.361.1.1675668150-1.el8 |
jenkins-2-pluginsRed Hat:ocp_tools:4.12::el8 From an advisory covering 15 CVEs |
before 0:4.12.1675702407-1.el8 | 0:4.12.1675702407-1.el8 |
jenkins-2-pluginsRed Hat:ocp_tools:4.11::el8 From an advisory covering 22 CVEs |
before 0:4.11.1683009941-1.el8 | 0:4.11.1683009941-1.el8 |
jenkinsRed Hat:ocp_tools:4.11::el8 From an advisory covering 22 CVEs |
before 0:2.387.1.1683009763-3.el8 | 0:2.387.1.1683009763-3.el8 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-43404 is a critical vulnerability (CVSS 9.9) in Jenkins Script Security, published October 19, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.40%, the 72nd percentile. Fixed in org.jenkins-ci.plugins:script-security 1184.v85d16b.
References
jenkins.io/security/advisory/2022-10-19
openwall.com/lists/oss-security/2022/10/19/3
nvd.nist.gov/vuln/detail/CVE-2022-43404
github.com/advisories/GHSA-27rf-8mjp-r363
access.redhat.com/errata/RHSA-2023:0560
access.redhat.com/security/updates/classification
Show 176 moreShow less
bugzilla.redhat.com/show_bug.cgi?id=1856376
bugzilla.redhat.com/show_bug.cgi?id=2116840
bugzilla.redhat.com/show_bug.cgi?id=2119643
bugzilla.redhat.com/show_bug.cgi?id=2119645
bugzilla.redhat.com/show_bug.cgi?id=2119646
bugzilla.redhat.com/show_bug.cgi?id=2119647
bugzilla.redhat.com/show_bug.cgi?id=2119656
bugzilla.redhat.com/show_bug.cgi?id=2119657
bugzilla.redhat.com/show_bug.cgi?id=2119658
bugzilla.redhat.com/show_bug.cgi?id=2126789
bugzilla.redhat.com/show_bug.cgi?id=2136370
bugzilla.redhat.com/show_bug.cgi?id=2136374
bugzilla.redhat.com/show_bug.cgi?id=2136379
bugzilla.redhat.com/show_bug.cgi?id=2136381
bugzilla.redhat.com/show_bug.cgi?id=2136382
bugzilla.redhat.com/show_bug.cgi?id=2136383
bugzilla.redhat.com/show_bug.cgi?id=2136386
bugzilla.redhat.com/show_bug.cgi?id=2136388
bugzilla.redhat.com/show_bug.cgi?id=2136391
bugzilla.redhat.com/show_bug.cgi?id=2143086
bugzilla.redhat.com/show_bug.cgi?id=2143089
bugzilla.redhat.com/show_bug.cgi?id=2143090
bugzilla.redhat.com/show_bug.cgi?id=2145194
security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_0560.json
access.redhat.com/security/cve/CVE-2020-7692
cve.org/CVERecord?id=CVE-2020-7692
nvd.nist.gov/vuln/detail/CVE-2020-7692
access.redhat.com/security/cve/CVE-2022-25857
cve.org/CVERecord?id=CVE-2022-25857
nvd.nist.gov/vuln/detail/CVE-2022-25857
bitbucket.org/snakeyaml/snakeyaml/issues/525
access.redhat.com/security/cve/CVE-2022-30946
cve.org/CVERecord?id=CVE-2022-30946
nvd.nist.gov/vuln/detail/CVE-2022-30946
jenkins.io/security/advisory/2022-05-17
access.redhat.com/security/cve/CVE-2022-30952
cve.org/CVERecord?id=CVE-2022-30952
nvd.nist.gov/vuln/detail/CVE-2022-30952
access.redhat.com/security/cve/CVE-2022-30953
cve.org/CVERecord?id=CVE-2022-30953
nvd.nist.gov/vuln/detail/CVE-2022-30953
access.redhat.com/security/cve/CVE-2022-30954
cve.org/CVERecord?id=CVE-2022-30954
nvd.nist.gov/vuln/detail/CVE-2022-30954
access.redhat.com/security/cve/CVE-2022-36882
cve.org/CVERecord?id=CVE-2022-36882
nvd.nist.gov/vuln/detail/CVE-2022-36882
jenkins.io/security/advisory/2022-07-27
access.redhat.com/security/cve/CVE-2022-36883
cve.org/CVERecord?id=CVE-2022-36883
nvd.nist.gov/vuln/detail/CVE-2022-36883
access.redhat.com/security/cve/CVE-2022-36884
cve.org/CVERecord?id=CVE-2022-36884
nvd.nist.gov/vuln/detail/CVE-2022-36884
access.redhat.com/security/cve/CVE-2022-36885
cve.org/CVERecord?id=CVE-2022-36885
nvd.nist.gov/vuln/detail/CVE-2022-36885
access.redhat.com/security/cve/CVE-2022-43401
cve.org/CVERecord?id=CVE-2022-43401
nvd.nist.gov/vuln/detail/CVE-2022-43401
access.redhat.com/security/cve/CVE-2022-43402
cve.org/CVERecord?id=CVE-2022-43402
nvd.nist.gov/vuln/detail/CVE-2022-43402
access.redhat.com/security/cve/CVE-2022-43403
cve.org/CVERecord?id=CVE-2022-43403
nvd.nist.gov/vuln/detail/CVE-2022-43403
access.redhat.com/security/cve/CVE-2022-43404
cve.org/CVERecord?id=CVE-2022-43404
access.redhat.com/security/cve/CVE-2022-43405
cve.org/CVERecord?id=CVE-2022-43405
nvd.nist.gov/vuln/detail/CVE-2022-43405
access.redhat.com/security/cve/CVE-2022-43406
cve.org/CVERecord?id=CVE-2022-43406
nvd.nist.gov/vuln/detail/CVE-2022-43406
access.redhat.com/security/cve/CVE-2022-43407
cve.org/CVERecord?id=CVE-2022-43407
nvd.nist.gov/vuln/detail/CVE-2022-43407
access.redhat.com/security/cve/CVE-2022-43408
cve.org/CVERecord?id=CVE-2022-43408
nvd.nist.gov/vuln/detail/CVE-2022-43408
access.redhat.com/security/cve/CVE-2022-43409
cve.org/CVERecord?id=CVE-2022-43409
nvd.nist.gov/vuln/detail/CVE-2022-43409
access.redhat.com/security/cve/CVE-2022-45047
cve.org/CVERecord?id=CVE-2022-45047
nvd.nist.gov/vuln/detail/CVE-2022-45047
mail-archive.com/[email protected]/msg39312.html
access.redhat.com/security/cve/CVE-2022-45379
cve.org/CVERecord?id=CVE-2022-45379
nvd.nist.gov/vuln/detail/CVE-2022-45379
jenkins.io/security/advisory/2022-11-15
access.redhat.com/security/cve/CVE-2022-45380
cve.org/CVERecord?id=CVE-2022-45380
nvd.nist.gov/vuln/detail/CVE-2022-45380
access.redhat.com/security/cve/CVE-2022-45381
cve.org/CVERecord?id=CVE-2022-45381
nvd.nist.gov/vuln/detail/CVE-2022-45381
access.redhat.com/errata/RHSA-2023:0777
docs.openshift.com/container-platform/4.9/release_notes/ocp-4-9-release-notes.html
bugzilla.redhat.com/show_bug.cgi?id=2116952
bugzilla.redhat.com/show_bug.cgi?id=2119653
bugzilla.redhat.com/show_bug.cgi?id=2150009
security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_0777.json
access.redhat.com/security/cve/CVE-2022-1471
cve.org/CVERecord?id=CVE-2022-1471
nvd.nist.gov/vuln/detail/CVE-2022-1471
github.com/google/security-research/security/advisories/GHSA-mjmj-j48q-9wg2
access.redhat.com/security/cve/CVE-2022-2048
cve.org/CVERecord?id=CVE-2022-2048
nvd.nist.gov/vuln/detail/CVE-2022-2048
github.com/eclipse/jetty.project/security/advisories/GHSA-wgmr-mf83-7x4j
access.redhat.com/security/cve/CVE-2022-34174
cve.org/CVERecord?id=CVE-2022-34174
nvd.nist.gov/vuln/detail/CVE-2022-34174
jenkins.io/security/advisory/2022-06-22
access.redhat.com/errata/RHSA-2023:1064
bugzilla.redhat.com/show_bug.cgi?id=2074855
bugzilla.redhat.com/show_bug.cgi?id=2135244
bugzilla.redhat.com/show_bug.cgi?id=2135247
bugzilla.redhat.com/show_bug.cgi?id=2136369
security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_1064.json
access.redhat.com/security/cve/CVE-2022-29047
cve.org/CVERecord?id=CVE-2022-29047
nvd.nist.gov/vuln/detail/CVE-2022-29047
jenkins.io/security/advisory/2022-04-12
access.redhat.com/security/cve/CVE-2022-42003
cve.org/CVERecord?id=CVE-2022-42003
nvd.nist.gov/vuln/detail/CVE-2022-42003
access.redhat.com/security/cve/CVE-2022-42004
cve.org/CVERecord?id=CVE-2022-42004
nvd.nist.gov/vuln/detail/CVE-2022-42004
access.redhat.com/security/cve/CVE-2022-43410
cve.org/CVERecord?id=CVE-2022-43410
nvd.nist.gov/vuln/detail/CVE-2022-43410
access.redhat.com/errata/RHSA-2023:3198
docs.openshift.com/container-platform/4.11/cicd/jenkins/important-changes-to-openshift-jenkins-images.html
bugzilla.redhat.com/show_bug.cgi?id=1955739
bugzilla.redhat.com/show_bug.cgi?id=2066479
bugzilla.redhat.com/show_bug.cgi?id=2135435
bugzilla.redhat.com/show_bug.cgi?id=2164278
bugzilla.redhat.com/show_bug.cgi?id=2170039
bugzilla.redhat.com/show_bug.cgi?id=2170041
bugzilla.redhat.com/show_bug.cgi?id=2177632
bugzilla.redhat.com/show_bug.cgi?id=2177634
security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_3198.json
access.redhat.com/security/cve/CVE-2021-26291
cve.org/CVERecord?id=CVE-2021-26291
nvd.nist.gov/vuln/detail/CVE-2021-26291
maven.apache.org/docs/3.8.1/release-notes.html
access.redhat.com/security/cve/CVE-2022-29599
cve.org/CVERecord?id=CVE-2022-29599
nvd.nist.gov/vuln/detail/CVE-2022-29599
access.redhat.com/security/cve/CVE-2022-42889
cve.org/CVERecord?id=CVE-2022-42889
nvd.nist.gov/vuln/detail/CVE-2022-42889
blogs.apache.org/security/entry/cve-2022-42889
lists.apache.org/thread/n2bd4vdsgkqh2tm14l1wyc3jyol7s1om
seclists.org/oss-sec/2022/q4/22
access.redhat.com/security/cve/CVE-2023-24422
cve.org/CVERecord?id=CVE-2023-24422
nvd.nist.gov/vuln/detail/CVE-2023-24422
jenkins.io/security/advisory/2023-01-24
access.redhat.com/security/cve/CVE-2023-25761
cve.org/CVERecord?id=CVE-2023-25761
nvd.nist.gov/vuln/detail/CVE-2023-25761
jenkins.io/security/advisory/2023-02-15
access.redhat.com/security/cve/CVE-2023-25762
cve.org/CVERecord?id=CVE-2023-25762
nvd.nist.gov/vuln/detail/CVE-2023-25762
access.redhat.com/security/cve/CVE-2023-27903
cve.org/CVERecord?id=CVE-2023-27903
nvd.nist.gov/vuln/detail/CVE-2023-27903
jenkins.io/security/advisory/2023-03-08
access.redhat.com/security/cve/CVE-2023-27904
cve.org/CVERecord?id=CVE-2023-27904
nvd.nist.gov/vuln/detail/CVE-2023-27904
Left out here: 218 versions. The JSON record has them.