{"id":"CVE-2022-25174","aliases":["CVE-2022-25174","GHSA-g9fx-6j5c-grmw"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Neutralization of Special Elements used in an OS Command in Jenkins Pipeline: Shared Groovy Libraries Plugin","summary":"Jenkins Pipeline: Shared Groovy Libraries Plugin 552.vd9cc05b8a2e1 and earlier uses the same checkout directories for distinct SCMs for Pipeline libraries, allowing attackers with Item/Configure permission to invoke arbitrary OS commands on the controller through crafted SCM contents.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Jenkins Pipeline: Shared Groovy Libraries Plugin 552.vd9cc05b8a2e1 and earlier uses the same checkout directories for distinct SCMs for Pipeline libraries, allowing attackers with Item/Configure permission to invoke arbitrary OS commands on the controller through crafted SCM contents.","source":"cvelist"},{"lang":"en","text":"Jenkins Pipeline: Shared Groovy Libraries Plugin prior to 561.va_ce0de3c2d69, 2.21.1, and 2.18.1 uses the same checkout directories for distinct SCMs for Pipeline libraries, allowing attackers with Item/Configure permission to invoke arbitrary OS commands on the controller through crafted SCM contents.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Jenkins Pipeline: Shared Groovy Libraries Plugin versiones 552.vd9cc05b8a2e1 y anteriores, usan los mismos directorios de checkout para distintos SCMs para las bibliotecas de Pipeline, permitiendo a atacantes con permiso Item/Configure invocar comandos arbitrarios del SO en el controlador mediante contenidos SCM diseñados","source":"nvd"}],"published":"2022-02-15T16:10:52.000Z","modified":"2026-06-17T04:33:09.067Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"552.vd9cc05b8a2e1","status":"affected"},{"version":"2.21.1","status":"unaffected"},{"version":"2.18.1","status":"unaffected"}],"vendor":"Jenkins project","product":"Jenkins Pipeline: Shared Groovy Libraries Plugin","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"544.vff04fa68714d","status":"affected","fixed":"561.va"}],"ecosystem":"Maven","package":"org.jenkins-ci.plugins.workflow:workflow-cps-global-lib","purl":"pkg:maven/org.jenkins-ci.plugins.workflow/workflow-cps-global-lib","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.19","status":"affected","fixed":"2.21.1"}],"ecosystem":"Maven","package":"org.jenkins-ci.plugins.workflow:workflow-cps-global-lib","purl":"pkg:maven/org.jenkins-ci.plugins.workflow/workflow-cps-global-lib","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.18.1"}],"ecosystem":"Maven","package":"org.jenkins-ci.plugins.workflow:workflow-cps-global-lib","purl":"pkg:maven/org.jenkins-ci.plugins.workflow/workflow-cps-global-lib","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"552.vd9cc05b8a2e1"}],"vendor":"jenkins","product":"pipeline:shared_groovy_libraries","cpe":"cpe:2.3:a:jenkins:pipeline\\:shared_groovy_libraries:*:*:*:*:*:jenkins:*:*","source":"nvd"}],"references":[{"url":"https://www.jenkins.io/security/advisory/2022-02-15/#SECURITY-2463","tags":["patch","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25174","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jenkinsci/workflow-cps-global-lib-plugin/commit/ace0de3c2d691662021ea10306eeb407da6b6365","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/CVEProject/cvelist/blob/e19344451ce1c4a4181b9f094b8fd38cd8d86c9f/2022/25xxx/CVE-2022-25174.json","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"jenkins","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-25174","url":"https://www.cve.org/CVERecord?id=CVE-2022-25174","licence":"CVE Terms of Use","modified":"2024-08-03T04:36:06.646Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g9fx-6j5c-grmw","url":"https://github.com/advisories/GHSA-g9fx-6j5c-grmw","licence":"CC-BY-4.0","modified":"2024-02-16T08:21:55.948Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-25174","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25174","licence":"Public domain","modified":"2026-06-17T04:33:09.067Z"}],"updatedAt":"2026-11-25T22:58:09.694Z","epss":{"score":0.01404,"percentile":0.73352,"date":"2026-12-01T12:00:22.000Z"}}