Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2024-34145

Опубликовано: 02 мая 2024
Источник: redhat
CVSS3: 8.8
EPSS Низкий

Описание

A sandbox bypass vulnerability involving sandbox-defined classes that shadow specific non-sandbox-defined classes in Jenkins Script Security Plugin 1335.vf07d9ce377a_e 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.

A sandbox bypass vulnerability was found in the Jenkins Script Security Plugin within the sandbox-defined classes, enabling the circumvention of security restrictions. This flaw allows authenticated attackers to define and execute sandboxed scripts, including Pipelines, bypassing sandbox protection mechanisms and executing arbitrary code within the context of the Jenkins controller JVM. The Script Security Plugin features a sandbox functionality designed to enable users with limited privileges to create scripts, including Pipelines, which are generally safe for execution. This security mechanism intercepts calls within sandboxed scripts, referencing various allowlists to decide whether these calls should be permitted. The vulnerabilities that allow for sandbox bypass have been identified in versions up to 1335.vf07d9ce377a_e of the Script Security Plugin. These vulnerabilities include:

  • Exploiting crafted constructor bodies that trigger other constructors, thereby allowing the construction of any subclassable type through implicit casts.
  • Utilizing Groovy classes defined within the sandbox that overshadow certain non-sandboxed classes, facilitating the creation of any subclassable type. These vulnerabilities enable attackers, who have the permission to create and execute sandboxed scripts including Pipelines, to circumvent sandbox protections and execute arbitrary code within the context of the Jenkins controller JVM. The fixed version of this script incorporates enhanced restrictions and sanity checks. These improvements ensure that calls to super constructors are intercepted by the sandbox, including:
  • Ensuring that calls to other constructors via 'this' are now appropriately managed within the sandbox.
  • No longer overlooking classes in packages that may be overshadowed by Groovy-defined classes when intercepting super constructor calls.

Отчет

Red Hat rates the security impact of this vulnerability as Important due to the worst case scenario resulting in a process being able to access resources outside an assigned sandbox. The vulnerabilities that allow for sandbox bypass have been identified in versions up to 1335.vf07d9ce377a_e of the Script Security Plugin. These vulnerabilities include exploiting specially crafted constructor bodies, utilizing certain groovy classes.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat OpenShift Container Platform 3.11jenkinsOut of support scope
Red Hat OpenShift Container Platform 3.11jenkins-2-pluginsOut of support scope
OCP-Tools-4.12-RHEL-8jenkinsFixedRHSA-2024:363505.06.2024
OCP-Tools-4.12-RHEL-8jenkins-2-pluginsFixedRHSA-2024:363505.06.2024
OCP-Tools-4.13-RHEL-8jenkinsFixedRHSA-2024:363605.06.2024
OCP-Tools-4.13-RHEL-8jenkins-2-pluginsFixedRHSA-2024:363605.06.2024
OCP-Tools-4.14-RHEL-8jenkinsFixedRHSA-2024:363405.06.2024
OCP-Tools-4.14-RHEL-8jenkins-2-pluginsFixedRHSA-2024:363405.06.2024
OCP-Tools-4.15-RHEL-8jenkinsFixedRHSA-2024:459717.07.2024
OCP-Tools-4.15-RHEL-8jenkins-2-pluginsFixedRHSA-2024:459717.07.2024

Показывать по

Дополнительная информация

Статус:

Important
Дефект:
CWE-693
https://bugzilla.redhat.com/show_bug.cgi?id=2278821jenkins-plugin/script-security: sandbox bypass via sandbox-defined classes

EPSS

Процентиль: 6%
0.00027
Низкий

8.8 High

CVSS3

Связанные уязвимости

CVSS3: 8.8
nvd
больше 1 года назад

A sandbox bypass vulnerability involving sandbox-defined classes that shadow specific non-sandbox-defined classes in Jenkins Script Security Plugin 1335.vf07d9ce377a_e 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.

CVSS3: 8.8
github
больше 1 года назад

Jenkins Script Security Plugin sandbox bypass vulnerability

EPSS

Процентиль: 6%
0.00027
Низкий

8.8 High

CVSS3