CVE-2026-57280: Jenkins Script Security Plugin Sandbox Bypass (CVSS 8.8)
Jenkins Script Security Plugin versions up to 1402.v94c9ce464861 contain a sandbox bypass vulnerability that allows authenticated attackers to execute arbitrary code. The flaw stems from incomplete type-cast handling in Groovy for-each loops, which permits attackers to invoke constructors that should be restricted by the sandbox. An attacker with script-execution privileges can exploit this to escape the plugin's security controls and run arbitrary Java constructors on the Jenkins server.
Source data · NVD / CISA · public domain
- 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
- Weaknesses (CWE)
- CWE-693
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-24 / 2026-06-26
NVD description (verbatim)
Jenkins Script Security Plugin 1402.v94c9ce464861 and earlier does not intercept the implicit type casts applied to the elements of typed for-each loops in sandboxed Groovy scripts, allowing attackers able to provide such scripts to invoke arbitrary constructors and bypass the sandbox protection.
1 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The Script Security Plugin applies sandboxing to user-supplied Groovy scripts to restrict dangerous operations. However, when typed for-each loops apply implicit type casts to their elements, the plugin fails to intercept these casts. This allows an attacker to invoke arbitrary constructors that bypass the normal sandbox checks. The vulnerability is rooted in incomplete AST transformation logic—the plugin does not properly instrument implicit casts in for-each loop contexts, creating a gap in the security perimeter. The issue affects all versions up to and including 1402.v94c9ce464861.
Business impact
This vulnerability poses a significant risk to Jenkins installations that use the Script Security Plugin and permit scripted pipelines or script console access to untrusted users or service accounts. A successful exploit enables remote code execution with the privileges of the Jenkins process, potentially leading to lateral movement, credential theft, or infrastructure compromise. Organizations relying on Jenkins for CI/CD with multi-tenant or shared-user environments face elevated exposure.
Affected systems
The vulnerability affects Jenkins Script Security Plugin version 1402.v94c9ce464861 and all earlier versions. Any Jenkins instance using this plugin is potentially vulnerable if it executes Groovy scripts from untrusted sources or grants script-execution privileges to low-privileged users. Systems that restrict script access only to highly trusted administrators may have reduced exposure.
Exploitability
Exploitation requires the attacker to have permission to submit or execute Groovy scripts in Jenkins (e.g., through pipeline jobs, declarative pipelines, or the Script Console). No interaction or special network conditions are required. The attack is reliable and deterministic once the attacker can inject a malicious script containing a typed for-each loop with an implicit type cast to trigger an arbitrary constructor invocation. The CVSS score of 8.8 (HIGH) reflects the low attack complexity and high impact when access conditions are met.
Remediation
Upgrade the Jenkins Script Security Plugin to a patched version released after 1402.v94c9ce464861. Verify the specific patch version against the official Jenkins advisories and your Jenkins management interface. Additionally, enforce strict access controls on script-execution features: limit Script Console access to trusted administrators, audit and approve pipeline definitions before execution, and consider using Jenkins configuration-as-code to audit all scripted pipeline changes.
Patch guidance
Check the Jenkins Security Advisory for Script Security Plugin for the patched release version. Apply the update through Jenkins's plugin manager or by manual WAR deployment, depending on your installation method. After patching, restart Jenkins and verify that the plugin version is correct in Manage Jenkins > Plugins. For large deployments, test the patch in a non-production environment first to ensure compatibility with existing pipelines.
Detection guidance
Monitor Jenkins execution logs for unusual Groovy script submissions, particularly those containing for-each loops with explicit type declarations followed by constructor invocations. Review Script Console history and pipeline job definitions for suspicious patterns. Implement Jenkins audit logging if not already enabled. Consider deploying Jenkins security scanning tools or SAST solutions that can detect sandbox-bypass patterns in Groovy code before execution.
Why prioritize this
This vulnerability merits prompt patching due to its high CVSS score (8.8), the trivial access requirements (authenticated user with script-execution permission), and the severity of the impact (arbitrary code execution). In multi-tenant Jenkins environments or instances accessible to developers outside your organization, this should be treated as a critical priority. Even in restricted environments, the ease of exploitation and the power of the resulting code execution justify expedited remediation.
Risk score, explained
The CVSS 3.1 score of 8.8 reflects: (1) Network-accessible attack vector, (2) Low attack complexity—no special conditions or tools required, (3) Low privilege requirement—attacker needs script-execution permission but not Jenkins admin rights, (4) High impact across confidentiality, integrity, and availability—arbitrary code execution permits data theft, system modification, and denial of service. The absence of user interaction and lack of scope change prevent a critical (9.0+) rating, but the overall risk remains severe.
Frequently asked questions
What permissions does an attacker need to exploit this vulnerability?
The attacker must have permission to submit and execute Groovy scripts in Jenkins. This typically includes users with Pipeline Job creation/edit permissions, access to the Script Console, or the ability to modify shared library scripts. Jenkins administrators and trusted developers fall into this category, but the risk is highest in multi-tenant environments where script access is granted more broadly.
Can this vulnerability be exploited remotely without authentication?
No. The CVSS vector specifies PR:L (low privilege required), meaning the attacker must authenticate to Jenkins and obtain script-execution privileges. However, in organizations where Jenkins is internally accessible and script permissions are delegated to many users, the practical attack surface is broader than 'highly privileged admins only.'
Does upgrading the plugin prevent all sandbox bypasses?
This patch specifically fixes the type-cast handling in for-each loops. While it closes this particular bypass vector, no sandbox is foolproof. Continue to follow principle-of-least-privilege for script access, audit pipeline definitions, and keep Jenkins and all plugins up to date.
Should I disable the Script Security Plugin to avoid this vulnerability?
No. Disabling the plugin removes all sandboxing protections, making Jenkins far less secure. The plugin is essential for safe multi-tenant or untrusted-script environments. Instead, apply the patch promptly and tighten access controls on script-execution features.
This analysis is based on publicly available vulnerability data current as of the publication date. Specific patch version numbers should be verified against the official Jenkins Security Advisory before deployment. The exploitation scenarios described are theoretical and based on the vulnerability description; actual exploitability may vary based on Jenkins configuration and network access controls. This content is provided for informational purposes and does not constitute legal or professional security advice. Organizations should conduct their own risk assessment and consult with their security teams before taking remediation actions. Source: NVD (public-domain), retrieved 2026-07-30. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-57281HIGHJenkins Script Security Plugin Sandbox Escape (CVSS 7.5)
- CVE-2025-24284HIGHmacOS Sandbox Escape Vulnerability – Sequoia 15.4 Patch Required
- CVE-2025-48649HIGHAndroid Local Privilege Escalation via Permission Bypass
- CVE-2025-48652HIGHAndroid MDM Bypass Logic Flaw – HIGH Severity Privilege Escalation
- CVE-2025-71322HIGHPickleScan Unsafe Globals Bypass – pty.spawn RCE Vulnerability
- CVE-2026-0045HIGHAndroid Bluetooth Bonding Bypass Privilege Escalation
- CVE-2026-0077HIGHAndroid ActivityRecord Privilege Escalation Vulnerability
- CVE-2026-0087HIGHAndroid App Link Hijacking via Domain Verification Logic Error