{"answers":{"affected":"4 open source packages ship an affected version, including io.jenkins.plugins:pipeline-groovy-lib and org.jenkins-ci.plugins.workflow:workflow-cps-global-lib. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-43405 in the wild and no public exploit code.","fix":"Upgrade io.jenkins.plugins:pipeline-groovy-lib to 613.v9c41a_160233f or later.","what":"CVE-2022-43405 is a critical vulnerability in Jenkins Pipeline: Groovy Libraries Plugin, published on 19 Oct 2022. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-43405 and fix it if it is affected.\n\nWhat it is: CVE-2022-43405 is a critical vulnerability in Jenkins Pipeline: Groovy Libraries Plugin, published on 19 Oct 2022. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-43405 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- io.jenkins.plugins:pipeline-groovy-lib (Maven): affected all versions; fixed in 613.v9c41a_160233f\n- io.jenkins.plugins:pipeline-groovy-lib (Maven): affected all versions; fixed in 613.v9c41a_160233f\n- org.jenkins-ci.plugins.workflow:workflow-cps-global-lib (Maven): affected all versions; fixed in 588.v576c103a_ff86\n- org.jenkins-ci.plugins.workflow:workflow-cps-global-lib (Maven): affected all versions; fixed in 588.v576c103a_ff86\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-43405/ (Markdown: https://insights.sbomify.com/CVE-2022-43405/index.md)","id":"CVE-2022-43405","markdown":"https://insights.sbomify.com/CVE-2022-43405/index.md","name":"CVE-2022-43405","record":{"aliases":["GHSA-4hjj-9gp7-4frg"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Jenkins Groovy Libraries Plugin","requires_auth":"low_privilege","summary":"Attackers with library definition permissions can bypass the Groovy sandbox to execute arbitrary code on the Jenkins controller.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"jenkins","cpe":[{"product":"groovy_libraries","vendor":"jenkins"}],"cvss":{"score":9.9,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[],"description":"A sandbox bypass vulnerability in Jenkins Pipeline: Groovy Libraries Plugin 612.v84da_9c54906d and earlier allows attackers with permission to define untrusted Pipeline libraries and 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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Sandbox bypass vulnerability in Jenkins Pipeline: Groovy Libraries Plugin and Pipeline: Deprecated Groovy Libraries Plugin","id":"CVE-2022-43405","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"security_feature_bypass","year":"2022"},"n_packages":4,"n_references":2,"next":{"headline":"Sandbox bypass vulnerability in Jenkins Pipeline: Deprecated Groovy Libraries Plugin","id":"CVE-2022-43406"},"packages":[{"ecosystem":"Maven","fixed":["613.v9c41a_160233f"],"introduced":["0"],"last_affected":[],"package":"io.jenkins.plugins:pipeline-groovy-lib","purl":null,"source":"GHSA-4hjj-9gp7-4frg"},{"ecosystem":"Maven","fixed":["613.v9c41a_160233f"],"introduced":["0"],"last_affected":[],"package":"io.jenkins.plugins:pipeline-groovy-lib","purl":"pkg:maven/io.jenkins.plugins/pipeline-groovy-lib","source":"GHSA-4hjj-9gp7-4frg"},{"ecosystem":"Maven","fixed":["588.v576c103a_ff86"],"introduced":["0"],"last_affected":[],"package":"org.jenkins-ci.plugins.workflow:workflow-cps-global-lib","purl":null,"source":"GHSA-4hjj-9gp7-4frg"},{"ecosystem":"Maven","fixed":["588.v576c103a_ff86"],"introduced":["0"],"last_affected":[],"package":"org.jenkins-ci.plugins.workflow:workflow-cps-global-lib","purl":"pkg:maven/org.jenkins-ci.plugins.workflow/workflow-cps-global-lib","source":"GHSA-4hjj-9gp7-4frg"}],"prev":{"headline":"Sandbox bypass vulnerabilities in Jenkins Script Security Plugin and in Pipeline: Groovy Plugin","id":"CVE-2022-43404"},"products":["Jenkins Pipeline: Groovy Libraries Plugin"],"published":"2022-10-19","related":[{"cvss_score":9.9,"headline":"Sandbox bypass vulnerability in Jenkins Pipeline: Deprecated Groovy Libraries Plugin","id":"CVE-2022-43406","kev_date_added":null,"published":"2022-10-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["Jenkins project"]},"summary":"Attackers with library definition permissions can bypass the Groovy sandbox to execute arbitrary code on the Jenkins controller.","url":"https://insights.sbomify.com/CVE-2022-43405/"}