CVE-2023-24422: OS Command Injection
A flaw was found in the script-security Jenkins Plugin. In affected versions of the script-security plugin, property assignments performed implicitly by the Groovy language runtime when invoking map constructors were not intercepted by the sandbox. This vulnerability 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.
Other sources
A sandbox bypass vulnerability involving map constructors in Jenkins Script Security Plugin 1228.vd93135a2fb25 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.
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. In Script Security Plugin 1228.vd93135a2fb25 and earlier, property assignments performed implicitly by the Groovy language runtime when invoking map constructors were not intercepted by the sandbox. This vulnerability 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.
https://www.jenkins.io/security/advisory/2023-01-24/#SECURITY-3016
— Red Hat
Affected Software
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2023-24422?
CVE-2023-24422 is classified as a high severity vulnerability due to its potential to allow attacker exploitation.
How do I fix CVE-2023-24422?
To fix CVE-2023-24422, upgrade the Jenkins Script Security Plugin to version 1229.v4880b or later.
Which versions of Jenkins are affected by CVE-2023-24422?
CVE-2023-24422 affects multiple versions of the Jenkins Script Security Plugin prior to 1229.v4880b.
What type of vulnerability is CVE-2023-24422?
CVE-2023-24422 is a script execution vulnerability that involves improper sandboxing in the Groovy language runtime.
Who is impacted by CVE-2023-24422?
Individuals or organizations that use the affected versions of the Jenkins Script Security Plugin may be impacted by CVE-2023-24422.