Alta

Sandbox bypass vulnerabilities in Jenkins Script Security Plugin and in Pipeline: Groovy Plugin

  • Publicada: 19.10.2022
  • Actualizado: 11.10.2026 11:21

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.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Java / Kotlin (Maven) org.jenkins-ci.plugins:script-security < 1184.v85d16b_d851b_3 1184.v85d16b_d851b_3
Java / Kotlin (Maven) org.jenkins-ci.plugins.workflow:workflow-cps < 2803.v1a_f77ffcc773 2803.v1a_f77ffcc773

Referencias

Puntuación CVSS 8.8/10
Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Debilidad (CWE)
CWE-693
Plataforma
Java / Kotlin (Maven)
Paquete
org.jenkins-ci.plugins:script-security, org.jenkins-ci.plugins.workflow:workflow-cps
Publicada
19.10.2022
Actualizado
11.10.2026 11:21

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-27rf-8mjp-r363 - CC BY 4.0

Historial de vulnerabilidades: org.jenkins-ci.plugins.workflow:workflow-cps

Todas las vulnerabilidades publicadas de este paquete (Java / Kotlin (Maven)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Todas (13) en el archivo
Entradas en total
13
Primera → última
02.2022 11.2024
Sin corrección
0
Explotada en ataques
1

Distribución por gravedad

  • Crítica 3
  • Alta 8
  • Media 2

Divulgaciones por año

  1. 2022: 12
  2. 2023: 0
  3. 2024: 1
  4. 2025: 0
  5. 2026: 0
Gravedad:
  1. Sandbox bypass vulnerabilities in Jenkins Script Security Plugin and in Pipeline: Groovy Plugin esta entrada
    Alta · 8.8 CVE-2022-43404 < 2803.v1a_f77ffcc773 2803.v1a_f77ffcc773
  2. Crítica · 9.9 CVE-2022-43402 < 2803.v1a_f77ffcc773 2803.v1a_f77ffcc773
  3. Alta · 8.8 CVE-2022-43401 < 2803.v1a_f77ffcc773 2803.v1a_f77ffcc773
  4. Alta · 8.8 CVE-2020-2109 < 2.79 2.79
  5. Crítica · 9.8 CVE-2019-1003041 < 2.65 2.65
  6. Crítica · 9.9 Explotada en ataques CVE-2019-1003030 < 2.64 2.64
  7. Alta · 8.8 CVE-2022-25173 >= 2646.v6ed3b5b01ff1, < 2656.vf7a, >= 2.93, < 2.94.1, < 2.92.1 2656.vf7a, 2.94.1, 2.92.1

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.